41template<
class BasicTurbulenceModel>
42SmagorinskyZhang<BasicTurbulenceModel>::SmagorinskyZhang
50 const word& propertiesName,
54 Smagorinsky<BasicTurbulenceModel>
66 gasTurbulencePtr_(
nullptr),
80 this->printCoeffs(
type);
87template<
class BasicTurbulenceModel>
92 Cmub_.readIfPresent(this->coeffDict());
101template<
class BasicTurbulenceModel>
102const PhaseCompressibleTurbulenceModel
104 typename BasicTurbulenceModel::transportModel
106SmagorinskyZhang<BasicTurbulenceModel>::gasTurbulence()
const
108 if (!gasTurbulencePtr_)
112 const transportModel& liquid = this->transport();
113 const twoPhaseSystem&
fluid =
115 const transportModel& gas =
fluid.otherPhase(liquid);
119 .lookupObject<PhaseCompressibleTurbulenceModel<transportModel>>
129 return *gasTurbulencePtr_;
133template<
class BasicTurbulenceModel>
137 this->gasTurbulence();
144 *(
mag(this->U_ - gasTurbulence.
U()));
149 BasicTurbulenceModel::correctNut();
void correctBoundaryConditions()
Correct boundary field.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
virtual void correctNut()
Update the SGS eddy viscosity.
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
tmp< volScalarField > k(const tmp< volTensorField > &gradU) const
Return SGS kinetic energy.
virtual bool read()
Read model coefficients if they have changed.
Templated abstract base class for multiphase compressible turbulence models.
const alphaField & alpha() const
Access function to phase fraction.
const transportModel & transport() const
Access function to incompressible transport model.
Generic dimensioned Type class.
static dimensioned< Type > getOrAddToDict(const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero))
Construct dimensioned from dictionary, with default value.
void correct(GeometricField< Type, PatchField, GeoMesh > &field)
Apply correction to field.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present otherwise lookup and return.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Base-class for all transport models used by the incompressible turbulence models.
const volVectorField & U() const
Access function to velocity field.
static const word propertiesName
Default name of the turbulence properties dictionary.
Class which solves the volume fraction equations for two phases.
A class for handling words, derived from Foam::string.
Namespace for LES SGS models.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)