38 template<
class BasicMomentumTransportModel>
50 kEqn<BasicMomentumTransportModel>
61 liquidTurbulencePtr_(nullptr),
75 this->printCoeffs(
type);
82 template<
class BasicMomentumTransportModel>
87 alphaInversion_.readIfPresent(this->coeffDict());
98 template<
class BasicMomentumTransportModel>
102 if (!liquidTurbulencePtr_)
106 const phaseModel& gas = refCast<const phaseModel>(this->properties());
110 liquidTurbulencePtr_ =
114 return *liquidTurbulencePtr_;
118 template<
class BasicMomentumTransportModel>
130 max(alphaInversion_ -
alpha, scalar(0))
134 this->Ce_*
sqrt(liquidTurbulence.
k())/this->delta(),
135 1.0/
U.time().deltaT()
141 template<
class BasicMomentumTransportModel>
146 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
149 phaseTransferCoeff*liquidTurbulence.
k()
150 -
fvm::Sp(phaseTransferCoeff, this->k_);
Generic GeometricField class.
tmp< volScalarField > phaseTransferCoeff() const
virtual tmp< fvScalarMatrix > kSource() const
const momentumTransportModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
virtual bool read()
Read model coefficients if they have changed.
continuousGasKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
One equation eddy-viscosity model.
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
Generic dimensioned Type class.
virtual const word & name() const
Return the name of the liquid.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Abstract base class for turbulence models (RAS, LES and laminar).
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
Class to represent a system of phases and model interfacial transfers between them.
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument in a two-phase system.
A class for managing temporary objects.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar sqrt(const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.