OpenFOAM
v2412
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
5
bool
inviscid
(
true
);
6
if
(
max
(
thermo
.mu().cref().primitiveField()) > 0.0)
7
{
8
inviscid
=
false
;
9
}
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition:
hashSets.C:40
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition:
volFieldsFwd.H:72
thermo
psiReactionThermo & thermo
Definition:
createFields.H:28
T
const volScalarField & T
Definition:
createFieldRefs.H:2
inviscid
bool inviscid(true)
psi
const volScalarField & psi
Definition:
createFieldRefs.H:1
p
volScalarField & p
Definition:
createFieldRefs.H:8
applications
solvers
compressible
rhoCentralFoam
createFieldRefs.H
Generated by
1.8.14