39 template<
class BasicMomentumTransportModel>
62 gasTurbulencePtr_(
nullptr),
76 this->printCoeffs(type);
83 template<
class BasicMomentumTransportModel>
88 Cmub_.readIfPresent(this->coeffDict());
99 template<
class BasicMomentumTransportModel>
102 typename BasicMomentumTransportModel::transportModel
106 if (!gasTurbulencePtr_)
112 const phaseModel& gas = fluid.otherPhase(liquid);
122 momentumTransportModel::typeName,
128 return *gasTurbulencePtr_;
132 template<
class BasicMomentumTransportModel>
136 gasTurbulence = this->gasTurbulence();
140 const phaseModel& gas = fluid.otherPhase(liquid);
146 + Cmub_*gas.
d()*gasTurbulence.
alpha()
147 *(
mag(this->U_ - gasTurbulence.
U()));
149 this->nut_.correctBoundaryConditions();
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Templated abstract base class for multiphase compressible turbulence models.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
BasicMomentumTransportModel::rhoField rhoField
The Smagorinsky SGS model including bubble-generated turbulence.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
const word & name() const
label k
Boltzmann constant.
Generic dimensioned Type class.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
The Smagorinsky SGS model.
Class to represent a system of phases and model interfacial transfers between them.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
const alphaField & alpha() const
Access function to phase fraction.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
SmagorinskyZhang(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
virtual bool read()
Read model coefficients if they have changed.
const volVectorField & U() const
Access function to velocity field.
BasicMomentumTransportModel::alphaField alphaField
const phaseSystem & fluid() const
Return the system to which this phase belongs.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
BasicMomentumTransportModel::transportModel transportModel
dimensioned< scalar > mag(const dimensioned< Type > &)
const objectRegistry & db() const
Return the local objectRegistry.
virtual void correctNut()
Update the SGS eddy viscosity.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...