OpenFOAM: API Guide
v2112
The open source CFD toolbox
hEqn.H
Go to the documentation of this file.
1
{
2
volScalarField
&
h
=
thermo
.he();
3
4
if
(
constProp
==
"volume"
)
5
{
6
h
[0] =
u0
+
p
[0]/
rho
[0] +
integratedHeat
;
7
}
8
else
9
{
10
h
[0] =
h0
+
integratedHeat
;
11
}
12
13
thermo
.correct();
14
}
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
p
volScalarField & p
Definition:
createFieldRefs.H:8
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition:
volFieldsFwd.H:82
integratedHeat
scalar integratedHeat
Definition:
readInitialConditions.H:94
h0
scalar h0
Definition:
readInitialConditions.H:78
u0
scalar u0
Definition:
readInitialConditions.H:90
rho
rho
Definition:
readInitialConditions.H:88
constProp
word constProp(initialConditions.get< word >("constantProperty"))
h
volScalarField & h
Definition:
setRegionSolidFields.H:33
applications
solvers
combustion
chemFoam
hEqn.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.