33template<
class BasePhaseModel>
37 const word& phaseName,
41 BasePhaseModel(
fluid, phaseName, index)
47template<
class BasePhaseModel>
50 BasePhaseModel::correctThermo();
60 this->thermo_->correct();
61 this->thermo_->T() = TCopy;
65template<
class BasePhaseModel>
72template<
class BasePhaseModel>
77 <<
"Cannot construct an energy equation for an isothermal phase"
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field).
@ NO_REGISTER
Do not request registration (bool: false).
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
IsothermalPhaseModel(const phaseSystem &fluid, const word &phaseName, const label index)
virtual void correctThermo()
Correct the thermodynamics.
virtual bool isothermal() const
Return whether the phase is isothermal.
virtual tmp< fvScalarMatrix > heEqn()
Return the enthalpy equation.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
Class to represent a system of phases and model interfacial transfers between them.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
psiReactionThermo & thermo