31 template<
class ThermoType>
34 const ThermoType& thermo =
37 const PtrList<volScalarField>& Y = thermo.composition().Y();
47 thermo.composition().W(i)
57 template<
class ThermoType>
65 fvMeshFunctionObject(name, runTime, dict)
69 const ThermoType& thermo =
86 mesh_.time().timeName(),
97 calculateMoleFractions();
102 <<
"Cannot find thermodynamics model of type " 103 << ThermoType::typeName
111 template<
class ThermoType>
118 template<
class ThermoType>
128 template<
class ThermoType>
131 calculateMoleFractions();
136 template<
class ThermoType>
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual ~moleFractions()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A class for handling words, derived from string.
virtual bool write()
The mole-fraction fields auto-write.
const word dictName("particleTrackDict")
This function object calculates mole-fraction fields from the mass-fraction fields of the psi/rhoReac...
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
const dimensionSet dimMoles(0, 0, 0, 0, 1, 0, 0)
word name(const complex &)
Return a string representation of a complex.
virtual bool execute()
Calculate the mole-fraction fields.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const scalarList W(::W(thermo))
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool read(const dictionary &)
Read the moleFractions data.