31 template<
class BasePhaseModel>
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index)
46 template<
class BasePhaseModel>
53 template<
class BasePhaseModel>
60 template<
class BasePhaseModel>
65 <<
"Cannot construct a species fraction equation for a pure phase"
72 template<
class BasePhaseModel>
81 template<
class BasePhaseModel>
86 <<
"Cannot get a species fraction by index from a pure phase"
89 return NullObjectRef<volScalarField>();
93 template<
class BasePhaseModel>
98 <<
"Cannot get a species fraction by name from a pure phase"
101 return NullObjectRef<volScalarField>();
105 template<
class BasePhaseModel>
110 <<
"Cannot access the species fractions of a pure phase"
117 template<
class BasePhaseModel>
Generic GeometricField class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual bool solveSpecie(const label speciei) const
Should the given specie be solved for? I.e., is it active and.
virtual PtrList< volScalarField > & YRef()
Access the species mass fractions.
virtual tmp< fvScalarMatrix > YiEqn(volScalarField &Yi)
Return the species fraction equation.
virtual ~PurePhaseModel()
Destructor.
virtual bool pure() const
Return whether the phase is pure (i.e., not multi-component)
PurePhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
virtual const PtrList< volScalarField > & Y() const
Return the species mass fractions.
Class to represent a system of phases.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.