31 template<
class BasePhaseModel,
class ThermoModel>
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index),
42 thermo_(ThermoModel::
New(fluid.mesh(), this->
name()))
55 template<
class BasePhaseModel,
class ThermoModel>
62 template<
class BasePhaseModel,
class ThermoModel>
65 return thermo_().incompressible();
69 template<
class BasePhaseModel,
class ThermoModel>
72 return thermo_().isochoric();
76 template<
class BasePhaseModel,
class ThermoModel>
84 template<
class BasePhaseModel,
class ThermoModel>
92 template<
class BasePhaseModel,
class ThermoModel>
100 template<
class BasePhaseModel,
class ThermoModel>
108 template<
class BasePhaseModel,
class ThermoModel>
112 return thermo_->rho();
116 template<
class BasePhaseModel,
class ThermoModel>
120 return thermo_->rho();
124 template<
class BasePhaseModel,
class ThermoModel>
128 return thermo_->mu();
132 template<
class BasePhaseModel,
class ThermoModel>
139 return thermo_->mu().boundaryField()[
patchi];
143 template<
class BasePhaseModel,
class ThermoModel>
147 return thermo_->nu();
151 template<
class BasePhaseModel,
class ThermoModel>
158 return thermo_->nu(
patchi);
static const char *const typeName
Generic GeometricField class.
static word groupName(Name name, const word &group)
virtual const rhoThermo & thermo() const
Return the thermophysical model.
ThermoPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
virtual const volScalarField & rho() const
Return the density field.
virtual tmp< volScalarField > mu() const
Return the laminar dynamic viscosity.
virtual tmp< volScalarField > nu() const
Return the laminar kinematic viscosity.
virtual ~ThermoPhaseModel()
Destructor.
virtual const rhoFluidThermo & fluidThermo() const
Return the thermophysical model.
autoPtr< ThermoModel > thermo_
Thermophysical model.
virtual bool isochoric() const
Return whether the phase is constant density.
virtual bool incompressible() const
Return whether the phase is incompressible.
Class to represent a system of phases and model interfacial transfers between them.
Base-class for fluid thermodynamic properties based on density.
Base-class for thermodynamic properties based on density.
A class for managing temporary objects.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
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.