Go to the documentation of this file.
34 template<
class ThermoType>
38 mesh_.lookupObject<ThermoType>
43 const PtrList<volScalarField>&
Y =
thermo.composition().Y();
62 template<
class ThermoType>
71 phaseName_(
dict.getOrDefault<
word>(
"phase", word::null))
78 if (mesh_.foundObject<ThermoType>(
dictName))
96 mesh_.time().timeName(),
111 if (phaseName_ != word::null)
114 <<
"Cannot find thermodynamics model of type "
115 << ThermoType::typeName
116 <<
" for phase " << phaseName_
121 <<
"Cannot find thermodynamics model of type "
122 << ThermoType::typeName
130 template<
class ThermoType>
138 phaseName_ =
dict.getOrDefault<
word>(
"phase", word::null);
148 template<
class ThermoType>
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
const word dictName("blockMeshDict")
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
const dimensionSet dimMoles(0, 0, 0, 0, 1, 0, 0)
moleFractions(const word &name, const Time &t, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Calculate the mole-fraction fields.
Calculates mole-fraction fields from the mass-fraction fields of the psi/rhoReactionThermo and caches...
#define forAll(list, i)
Loop across all elements in list.
word name(const complex &c)
Return string representation of complex.
virtual bool read(const dictionary &dict)
Read the moleFractions data.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
PtrList< volScalarField > & Y
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.