34 template<
class ThermoType>
38 mesh_.lookupObject<ThermoType>
43 const PtrList<volScalarField>&
Y =
thermo.composition().Y();
62 template<
class ThermoType>
112 <<
"Cannot find thermodynamics model of type " 113 << ThermoType::typeName;
115 if (!phaseName_.empty())
118 <<
" for phase " << phaseName_;
128 template<
class ThermoType>
146 template<
class ThermoType>
word dictName() const
The local dictionary name (final part of scoped name)
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word dictName("faMeshDefinition")
const dimensionSet dimless
Dimensionless.
const Time & time() const
Return the top-level database.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
#define forAll(list, i)
Loop across all elements in list.
virtual bool read(const dictionary &dict)
Read the moleFractions data.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
psiReactionThermo & thermo
moleFractions(const word &name, const Time &t, const dictionary &dict)
Construct from Time and dictionary.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
Calculates mole-fraction fields from the mass-fraction fields of the psi/rhoReactionThermo and caches...
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
const dimensionSet dimMoles(0, 0, 0, 0, 1, 0, 0)
virtual bool execute()
Calculate the mole-fraction fields.
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...
PtrList< volScalarField > & Y
Automatically write from objectRegistry::writeObject()
virtual bool read(const dictionary &dict)
Read optional controls.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Defines the attributes of an object for which implicit objectRegistry management is supported...
const fvMesh & mesh_
Reference to the fvMesh.
static constexpr const zero Zero
Global zero (0)