OpenFOAM: API Guide
v2112
The open source CFD toolbox
createFieldRefs.H
Go to the documentation of this file.
1
volScalarField
&
p
=
thermo
.p();
2
const
volScalarField
&
T
=
thermo
.T();
3
const
volScalarField
&
psi
=
thermo
.psi();
4
const
volScalarField
&
mu
=
thermo
.mu();
5
6
bool
inviscid
(
true
);
7
if
(
max
(
mu
.primitiveField()) > 0.0)
8
{
9
inviscid
=
false
;
10
}
p
volScalarField & p
Definition:
createFieldRefs.H:8
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
inviscid
bool inviscid(true)
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition:
volFieldsFwd.H:57
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition:
hashSets.C:47
T
const volScalarField & T
Definition:
createFieldRefs.H:2
mu
const volScalarField & mu
Atomic mass unit.
Definition:
createFieldRefs.H:4
psi
const volScalarField & psi
Definition:
createFieldRefs.H:1
applications
solvers
compressible
rhoCentralFoam
createFieldRefs.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.