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>
96 return thermo_->rho();
100 template<
class BasePhaseModel,
class ThermoModel>
104 return thermo_->rho();
108 template<
class BasePhaseModel,
class ThermoModel>
112 return thermo_->mu();
116 template<
class BasePhaseModel,
class ThermoModel>
123 return thermo_->mu(
patchi);
127 template<
class BasePhaseModel,
class ThermoModel>
131 return thermo_->nu();
135 template<
class BasePhaseModel,
class ThermoModel>
142 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.
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.
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 complex &)
Return a string representation of a complex.