33 template<
class BasePhaseModel>
37 const word& phaseName,
41 BasePhaseModel(
fluid, phaseName, index)
47 template<
class BasePhaseModel>
55 IOobject::scopedName(this->
thermo().
T().
name(),
"Copy"),
56 IOobject::NO_REGISTER,
60 this->thermo_->correct();
61 this->thermo_->T() = TCopy;
65 template<
class BasePhaseModel>
72 template<
class BasePhaseModel>
77 <<
"Cannot construct an energy equation for an isothermal phase"
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.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
IsothermalPhaseModel(const phaseSystem &fluid, const word &phaseName, const label index)
virtual void correctThermo()
Correct the thermodynamics.
psiReactionThermo & thermo
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.
virtual tmp< fvScalarMatrix > heEqn()
Return the enthalpy equation.
A class for managing temporary objects.
virtual bool isothermal() const
Return whether the phase is isothermal.