31 template<
class BasePhaseModel,
class ThermoModel>
34 const phaseSystem& fluid,
35 const word& phaseName,
36 const bool referencePhase,
40 BasePhaseModel(fluid, phaseName, referencePhase, index),
41 thermo_(ThermoModel::
New(fluid.
mesh(), this->
name()))
54 template<
class BasePhaseModel,
class ThermoModel>
61 template<
class BasePhaseModel,
class ThermoModel>
64 return thermo_().incompressible();
68 template<
class BasePhaseModel,
class ThermoModel>
71 return thermo_().isochoric();
75 template<
class BasePhaseModel,
class ThermoModel>
83 template<
class BasePhaseModel,
class ThermoModel>
91 template<
class BasePhaseModel,
class ThermoModel>
95 return thermo_->rho();
99 template<
class BasePhaseModel,
class ThermoModel>
103 return thermo_->mu();
107 template<
class BasePhaseModel,
class ThermoModel>
114 return thermo_->mu(patchi);
118 template<
class BasePhaseModel,
class ThermoModel>
122 return thermo_->nu();
126 template<
class BasePhaseModel,
class ThermoModel>
133 return thermo_->nu(patchi);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const char *const typeName
virtual bool incompressible() const
Return whether the phase is incompressible.
virtual bool isochoric() const
Return whether the phase is constant density.
virtual rhoThermo & thermoRef()
Access the thermophysical model.
virtual const rhoThermo & thermo() const
Return the thermophysical model.
virtual tmp< volScalarField > mu() const
Return the laminar dynamic viscosity.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
static word groupName(Name name, const word &group)
word name(const complex &)
Return a string representation of a complex.
virtual tmp< volScalarField > rho() const
Return the density field.
Basic thermodynamic properties based on density.
ThermoPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
A class for managing temporary objects.
virtual ~ThermoPhaseModel()
Destructor.
virtual tmp< volScalarField > nu() const
Return the laminar kinematic viscosity.