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>
61 this->thermo_->he() = this->
thermo().he(this->
thermo().
p(), TCopy);
62 this->thermo_->correct();
63 this->thermo_->T() = TCopy;
67 template<
class BasePhaseModel>
74 template<
class BasePhaseModel>
79 <<
"Cannot construct an energy equation for an isothermal phase"
virtual tmp< fvScalarMatrix > heEqn()
Return the enthalpy equation.
virtual void correctThermo()
Correct the thermodynamics.
A class for handling words, derived from Foam::string.
psiReactionThermo & thermo
word name(const complex &c)
Return string representation of complex.
IsothermalPhaseModel(const phaseSystem &fluid, const word &phaseName, const label index)
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool isothermal() const
Return whether the phase is isothermal.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Class to represent a system of phases and model interfacial transfers between them.