Go to the documentation of this file.
33 template<
class ThermoType>
39 const PtrList<volScalarField>&
Y =
thermo.composition().Y();
59 template<
class ThermoType>
88 mesh_.time().timeName(),
99 calculateMoleFractions();
104 <<
"Cannot find thermodynamics model of type "
105 << ThermoType::typeName
113 template<
class ThermoType>
120 template<
class ThermoType>
130 template<
class ThermoType>
133 calculateMoleFractions();
138 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)
virtual ~moleFractions()
Destructor.
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)
virtual bool write()
The mole-fraction fields auto-write.
virtual bool execute()
Calculate the mole-fraction fields.
This function object calculates mole-fraction fields from the mass-fraction fields of the psi/rhoReac...
#define forAll(list, i)
Loop across all elements in list.
word name(const complex &c)
Return string representation of complex.
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.
virtual bool read(const dictionary &)
Read the moleFractions data.