31 template<
class BasePhaseModel>
34 const phaseSystem&
fluid,
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index)
46 template<
class BasePhaseModel>
53 template<
class BasePhaseModel>
59 tmp<volScalarField> TCopy
67 this->thermo_->he() = this->
thermo().he(this->
thermo().
p(), TCopy);
68 this->thermo_->correct();
69 this->thermo_->T() = TCopy;
73 template<
class BasePhaseModel>
80 template<
class BasePhaseModel>
85 <<
"Cannot construct an energy equation for an isothermal phase" 88 return tmp<fvScalarMatrix>();
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fluidReactionThermo & thermo
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool isothermal() const
Return whether the phase is isothermal.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual void correctThermo()
Correct the thermodynamics.
virtual tmp< fvScalarMatrix > heEqn()
Return the enthalpy equation.
virtual ~IsothermalPhaseModel()
Destructor.
IsothermalPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
A class for managing temporary objects.