31 template<
class ThermoType>
34 const ThermoType& thermo =
37 IOobject::groupName(physicalProperties::typeName, phaseName_)
40 const PtrList<volScalarField>& Y = thermo.composition().Y();
50 thermo.composition().Wi(i)
60 template<
class ThermoType>
68 fvMeshFunctionObject(name, runTime, dict),
73 IOobject::groupName(physicalProperties::typeName, phaseName_)
76 if (mesh_.foundObject<ThermoType>(dictName))
78 const ThermoType& thermo = mesh_.lookupObject<ThermoType>(
dictName);
94 mesh_.time().timeName(),
103 calculateMoleFractions();
107 if (phaseName_ != word::null)
110 <<
"Cannot find thermodynamics model of type " 111 << ThermoType::typeName
119 <<
"Cannot find thermodynamics model of type " 120 << ThermoType::typeName
129 template<
class ThermoType>
136 template<
class ThermoType>
146 template<
class ThermoType>
149 calculateMoleFractions();
154 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 dimensionSet dimless
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
moleFractions(const word &name, const Time &t, const dictionary &dict)
Construct from Time and dictionary.
A class for handling words, derived from string.
virtual bool write()
The mole-fraction fields auto-write.
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 dimMass
word name(const complex &)
Return a string representation of a complex.
virtual bool execute()
Calculate the mole-fraction fields.
const dimensionSet dimMoles
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
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))
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool read(const dictionary &)
Read the moleFractions data.
const word dictName("noiseDict")