31 template<
class BasePhaseModel>
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index)
46 template<
class BasePhaseModel>
53 template<
class BasePhaseModel>
56 BasePhaseModel::correctThermo();
69 this->thermo_->correct();
70 this->thermo_->
T() = TCopy;
74 template<
class BasePhaseModel>
81 template<
class BasePhaseModel>
90 template<
class BasePhaseModel>
95 <<
"Cannot construct an energy equation for an isothermal phase"
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
const Boundary & boundaryField() const
Return const-reference to the boundary field.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
virtual void correctThermo()
Correct the thermodynamics.
virtual ~IsothermalPhaseModel()
Destructor.
IsothermalPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
virtual bool isothermal() const
Return whether the phase is isothermal.
virtual tmp< fvScalarMatrix > heEqn()
Return the enthalpy equation.
virtual tmp< scalarField > kappaEff(const label patchi) const
Return the effective thermal conductivity on a patch.
virtual const volScalarField & he() const =0
Enthalpy/Internal energy [J/kg].
virtual const volScalarField & kappa() const =0
Thermal conductivity of mixture [W/m/K].
Base-class for fluid thermodynamic properties.
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 string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fluidMulticomponentThermo & thermo