31 template<
class ThermoType>
34 const ThermoType& thermo =
37 const PtrList<volScalarField>& Y = thermo.composition().Y();
43 X_[i] = W*Y[i]/thermo.composition().W(i);
50 template<
class ThermoType>
58 fvMeshFunctionObject(name, runTime, dict)
62 const ThermoType& thermo =
79 mesh_.time().timeName(),
90 calculateMoleFractions();
95 <<
"Cannot find thermodynamics model of type " 96 << ThermoType::typeName
104 template<
class ThermoType>
111 template<
class ThermoType>
121 template<
class ThermoType>
124 calculateMoleFractions();
129 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.
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...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool read(const dictionary &)
Read the moleFractions data.