33 template<
class BasePhaseModel>
37 const word& phaseName,
41 BasePhaseModel(
fluid, phaseName, index)
47 template<
class BasePhaseModel>
54 template<
class BasePhaseModel>
61 template<
class BasePhaseModel>
66 <<
"Cannot construct a species fraction equation for a pure phase" 73 template<
class BasePhaseModel>
83 template<
class BasePhaseModel>
88 <<
"Cannot get a species fraction by name from a pure phase" 91 return volScalarField::null();
95 template<
class BasePhaseModel>
100 <<
"Cannot access the species fractions of for a pure phase" 107 template<
class BasePhaseModel>
117 template<
class BasePhaseModel>
122 <<
"Cannot access the species fractions of for a pure phase"
virtual PtrList< volScalarField > & YRef()
Access the species mass fractions.
PurePhaseModel(const multiphaseInterSystem &fluid, const word &phaseName)
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual const UPtrList< volScalarField > & YActive() const
Return the active species mass fractions.
virtual const PtrList< volScalarField > & Y() const
Return the species mass fractions.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Class to represent a system of phases and model interfacial transfers between them.
A class for handling words, derived from Foam::string.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
virtual ~PurePhaseModel()=default
Destructor.
virtual bool pure() const
Return whether the phase is pure (i.e., not multi-component)
virtual tmp< fvScalarMatrix > YiEqn(volScalarField &Yi)
Return the species fraction equation.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
A class for managing temporary objects.
virtual UPtrList< volScalarField > & YActiveRef()
Access the active species mass fractions.