Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
ad124651
Commit
ad124651
authored
Dec 10, 2012
by
andy
Browse files
ENH: Updated sources for heatTransfer solvers
parent
e86258bc
Changes
10
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/buoyantPimpleFoam/EEqn.H
View file @
ad124651
...
...
@@ -21,8 +21,12 @@
);
EEqn
.
relax
();
sources
.
constrain
(
EEqn
);
EEqn
.
solve
();
sources
.
correct
(
he
);
thermo
.
correct
();
}
applications/solvers/heatTransfer/buoyantPimpleFoam/UEqn.H
View file @
ad124651
...
...
@@ -27,5 +27,7 @@
)
*
mesh
.
magSf
()
)
);
sources
.
correct
(
U
);
K
=
0
.
5
*
magSqr
(
U
);
}
applications/solvers/heatTransfer/buoyantSimpleFoam/EEqn.H
View file @
ad124651
...
...
@@ -21,6 +21,8 @@
EEqn
.
solve
();
sources
.
correct
(
he
);
thermo
.
correct
();
radiation
->
correct
();
}
applications/solvers/heatTransfer/buoyantSimpleFoam/UEqn.H
View file @
ad124651
...
...
@@ -26,4 +26,6 @@
)
*
mesh
.
magSf
()
)
);
sources
.
correct
(
U
);
}
applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/fluid/EEqn.H
View file @
ad124651
...
...
@@ -21,6 +21,8 @@
EEqn
.
solve
();
sources
.
correct
(
he
);
thermo
.
correct
();
rad
.
correct
();
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/fluid/UEqn.H
View file @
ad124651
...
...
@@ -23,3 +23,5 @@
)
*
mesh
.
magSf
()
)
);
sources
.
correct
(
U
);
applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/solid/solveSolid.H
View file @
ad124651
...
...
@@ -6,8 +6,14 @@
-
fvm
::
laplacian
(
betav
*
alpha
,
h
,
"laplacian(alpha,h)"
)
+
sources
(
rho
,
h
)
);
hEqn
.
relax
();
sources
.
constrain
(
hEqn
);
hEqn
.
solve
();
sources
.
correct
(
h
);
}
}
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/EEqn.H
View file @
ad124651
...
...
@@ -22,8 +22,13 @@
);
EEqn
.
relax
();
sources
.
constrain
(
EEqn
);
EEqn
.
solve
(
mesh
.
solver
(
he
.
select
(
finalIter
)));
sources
.
correct
(
he
);
thermo
.
correct
();
rad
.
correct
();
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/UEqn.H
View file @
ad124651
...
...
@@ -9,6 +9,8 @@
UEqn
().
relax
();
sources
.
constrain
(
UEqn
());
// Add porous resistance
pZones
.
addResistance
(
UEqn
());
...
...
@@ -21,11 +23,13 @@
fvc
::
reconstruct
(
(
-
ghf
*
fvc
::
snGrad
(
rho
)
-
fvc
::
snGrad
(
p_rgh
)
-
ghf
*
fvc
::
snGrad
(
rho
)
-
fvc
::
snGrad
(
p_rgh
)
)
*
mesh
.
magSf
()
),
mesh
.
solver
(
U
.
select
(
finalIter
))
);
sources
.
correct
(
U
);
K
=
0
.
5
*
magSqr
(
U
);
}
applications/solvers/heatTransfer/chtMultiRegionFoam/solid/solveSolid.H
View file @
ad124651
...
...
@@ -19,6 +19,8 @@ if (finalIter)
sources
.
constrain
(
hEqn
());
hEqn
().
solve
(
mesh
.
solver
(
h
.
select
(
finalIter
)));
sources
.
correct
(
h
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment