39 template<
class BasePhaseModel,
class ThermoType>
42 const phaseSystem& fluid,
43 const word& phaseName,
47 BasePhaseModel(fluid, phaseName, index),
48 thermo_(ThermoType::
New(fluid.
mesh(), this->
name()))
61 template<
class BasePhaseModel,
class ThermoType>
68 template<
class BasePhaseModel,
class ThermoType>
71 return !thermo_().incompressible();
75 template<
class BasePhaseModel,
class ThermoType>
83 template<
class BasePhaseModel,
class ThermoType>
91 template<
class BasePhaseModel,
class ThermoType>
95 return thermo_->rho();
99 template<
class BasePhaseModel,
class ThermoType>
103 return thermo_->mu();
107 template<
class BasePhaseModel,
class ThermoType>
114 return thermo_->mu(patchi);
118 template<
class BasePhaseModel,
class ThermoType>
122 return thermo_->nu();
126 template<
class BasePhaseModel,
class ThermoType>
133 return thermo_->nu(patchi);
137 template<
class BasePhaseModel,
class ThermoType>
141 return thermo_->kappa();
145 template<
class BasePhaseModel,
class ThermoType>
152 return thermo_->kappa(patchi);
156 template<
class BasePhaseModel,
class ThermoType>
160 return thermo_->alphahe();
164 template<
class BasePhaseModel,
class ThermoType>
171 return thermo_->alphahe(patchi);
175 template<
class BasePhaseModel,
class ThermoType>
182 return thermo_->kappaEff(alphat);
186 template<
class BasePhaseModel,
class ThermoType>
194 return thermo_->kappaEff(alphat, patchi);
198 template<
class BasePhaseModel,
class ThermoType>
202 return thermo_->alpha();
206 template<
class BasePhaseModel,
class ThermoType>
213 return thermo_->alpha(patchi);
217 template<
class BasePhaseModel,
class ThermoType>
224 return thermo_->alphaEff(alphat);
228 template<
class BasePhaseModel,
class ThermoType>
236 return thermo_->alphaEff(alphat, 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 compressible() const
Return whether the phase is compressible.
Calculate the matrix for the laplacian of the field.
virtual tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
virtual tmp< volScalarField > kappaEff(const volScalarField &alphat) const
Effective thermal turbulent diffusivity for temperature.
virtual rhoThermo & thermoRef()
Access the thermophysical model.
virtual tmp< volScalarField > alphaEff(const volScalarField &alphat) const
Effective thermal turbulent diffusivity of mixture [kg/m/s].
virtual const rhoThermo & thermo() const
Return the thermophysical model.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual tmp< volScalarField > mu() const
Return the laminar dynamic viscosity.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Calculate the first temporal derivative.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
Calculate the matrix for the first temporal derivative.
virtual tmp< volScalarField > alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
ThermoPhaseModel(const phaseSystem &fluid, const word &phaseName, const label index)
Calculate the divergence of the given field.
word name(const complex &)
Return a string representation of a complex.
Calculate the matrix for the divergence of the given field and flux.
virtual tmp< volScalarField > rho() const
Return the density field.
Basic thermodynamic properties based on density.
A class for managing temporary objects.
virtual tmp< volScalarField > kappa() const
Thermal diffusivity for temperature of mixture [J/m/s/K].
virtual ~ThermoPhaseModel()
Destructor.
Calculate the matrix for implicit and explicit sources.
virtual tmp< volScalarField > nu() const
Return the laminar kinematic viscosity.