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 dynamicTransportModel(),
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_->mu();
108 template<
class BasePhaseModel,
class ThermoModel>
115 return thermo_->mu(patchi);
119 template<
class BasePhaseModel,
class ThermoModel>
123 return thermo_->nu();
127 template<
class BasePhaseModel,
class ThermoModel>
134 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.
Base-class for fluid 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.