Go to the documentation of this file.
29 #include "phaseSystem.H"
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 NullObjectRef<volScalarField>();
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"
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
virtual PtrList< volScalarField > & YRef()
Access the species mass fractions.
virtual ~PurePhaseModel()
Destructor.
virtual const PtrList< volScalarField > & Y() const
Return the species mass fractions.
word name(const complex &c)
Return string representation of complex.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
PurePhaseModel(const phaseSystem &fluid, const word &phaseName, const label index)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
Class to represent a system of phases and model interfacial transfers between them.
virtual UPtrList< volScalarField > & YActiveRef()
Access the active species mass fractions.
Generic GeometricField class.
virtual const UPtrList< volScalarField > & YActive() const
Return the active species mass fractions.