34template<
class ThermoType>
35void Foam::moleFractions<ThermoType>::calcMoleFractions()
38 mesh_.lookupObject<ThermoType>
40 IOobject::groupName(basicThermo::dictName, phaseName_)
43 const PtrList<volScalarField>&
Y =
thermo.composition().Y();
62template<
class ThermoType>
71 phaseName_(
dict.getOrDefault<word>(
"phase", word::null))
82 const PtrList<volScalarField>&
Y =
thermo.composition().Y();
112 <<
"Cannot find thermodynamics model of type "
113 << ThermoType::typeName;
115 if (!phaseName_.empty())
118 <<
" for phase " << phaseName_;
128template<
class ThermoType>
146template<
class ThermoType>
@ NO_READ
Nothing to be read.
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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.
static const word dictName
The dictionary name ("thermophysicalProperties").
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
const fvMesh & mesh_
Reference to the fvMesh.
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
const Time & time() const
Return the top-level database.
virtual bool read(const dictionary &dict)
Read the moleFractions data.
moleFractions(const word &name, const Time &t, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Calculate the mole-fraction fields.
bool foundObject(const word &name, const bool recursive=false) const
Contains the named Type?
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...
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for handling words, derived from Foam::string.
static const word null
An empty word.
PtrList< volScalarField > & Y
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word dictName("faMeshDefinition")
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.