OpenFOAM
dev
The OpenFOAM Foundation
hEqn.H
Go to the documentation of this file.
1
if
(constProp !=
"temperature"
)
2
{
3
volScalarField
&
h
=
thermo
.he();
4
5
if
(constProp ==
"volume"
)
6
{
7
h
[0] =
u0
+
p
[0]/
rho
[0] +
integratedHeat
;
8
}
9
else
10
{
11
h
[0] =
h0
+
integratedHeat
;
12
}
13
14
thermo
.correct();
15
}
rho
rho
Definition:
pEqn.H:1
Foam::constant::universal::h
const dimensionedScalar h
Planck constant.
Foam::volScalarField
VolField< scalar > volScalarField
Definition:
volFieldsFwd.H:62
p
volScalarField & p
Definition:
createFieldRefs.H:4
integratedHeat
scalar integratedHeat
Definition:
createFieldRefs.H:22
h0
const scalar h0
Definition:
createFieldRefs.H:16
u0
scalar u0
Definition:
createFieldRefs.H:18
thermo
fluidMulticomponentThermo & thermo
Definition:
createFields.H:15
applications
solvers
chemFoam
hEqn.H
Generated by
1.9.1