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
ca00cf24
Commit
ca00cf24
authored
Feb 15, 2010
by
Andrew Heather
Browse files
ENH Updated rhoPisoTwinParcelFoam tutorial solver to use sensible enthalpy
parent
dc3a6f4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
tutorials/lagrangian/rhoPisoTwinParcelFoam/rhoPisoTwinParcelFoam/createFields.H
View file @
ca00cf24
...
...
@@ -7,7 +7,7 @@
basicPsiThermo
&
thermo
=
pThermo
();
volScalarField
&
p
=
thermo
.
p
();
volScalarField
&
h
=
thermo
.
h
();
volScalarField
&
h
s
=
thermo
.
h
s
();
const
volScalarField
&
psi
=
thermo
.
psi
();
volScalarField
rho
...
...
tutorials/lagrangian/rhoPisoTwinParcelFoam/rhoPisoTwinParcelFoam/hEqn.H
→
tutorials/lagrangian/rhoPisoTwinParcelFoam/rhoPisoTwinParcelFoam/h
s
Eqn.H
View file @
ca00cf24
{
fvScalarMatrix
hEqn
fvScalarMatrix
h
s
Eqn
(
fvm
::
ddt
(
rho
,
h
)
+
fvm
::
div
(
phi
,
h
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
h
)
fvm
::
ddt
(
rho
,
h
s
)
+
fvm
::
div
(
phi
,
h
s
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
h
s
)
==
DpDt
+
thermoCloud1
.
Sh
()
);
hEqn
.
relax
();
h
s
Eqn
.
relax
();
hEqn
.
solve
();
h
s
Eqn
.
solve
();
thermo
.
correct
();
}
tutorials/lagrangian/rhoPisoTwinParcelFoam/rhoPisoTwinParcelFoam/rhoPisoTwinParcelFoam.C
View file @
ca00cf24
...
...
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
// --- PISO loop
for
(
int
corr
=
1
;
corr
<=
nCorr
;
corr
++
)
{
#include
"hEqn.H"
#include
"h
s
Eqn.H"
#include
"pEqn.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