39 template<
class BasicMomentumTransportModel>
62 gasTurbulencePtr_(nullptr),
64 Cmub_(
"Cmub", this->typeDict(
type), 0.6)
70 template<
class BasicMomentumTransportModel>
75 Cmub_.readIfPresent(this->typeDict());
86 template<
class BasicMomentumTransportModel>
90 if (!gasTurbulencePtr_)
95 refCast<const phaseModel>(this->properties());
113 return *gasTurbulencePtr_;
117 template<
class BasicMomentumTransportModel>
121 this->gasTurbulence();
131 + Cmub_*gas.
d()*gasTurbulence.
alpha()
132 *(
mag(this->U_ - gasTurbulence.
U()));
134 this->nut_.correctBoundaryConditions();
static fvConstraints & New(const word &name, const fvMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Generic GeometricField class.
static word groupName(Name name, const word &group)
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
The Smagorinsky SGS model including bubble-generated turbulence.
SmagorinskyZhang(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.
virtual void correctNut()
Update the SGS eddy viscosity.
virtual bool read()
Read model coefficients if they have changed.
The Smagorinsky SGS model.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
const volVectorField & U() const
Access function to velocity field.
Templated abstract base class for multiphase compressible momentum transport models.
const alphaField & alpha() const
Access function to phase fraction.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
const word & name() const
Return the name of this phase.
Class to represent a system of phases.
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument in a two-phase system.
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< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.