41 template<
class BasicTurbulenceModel>
50 const word& propertiesName,
66 gasTurbulencePtr_(
nullptr),
80 this->printCoeffs(
type);
87 template<
class BasicTurbulenceModel>
92 Cmub_.readIfPresent(this->coeffDict());
101 template<
class BasicTurbulenceModel>
102 const PhaseCompressibleTurbulenceModel
104 typename BasicTurbulenceModel::transportModel
106 SmagorinskyZhang<BasicTurbulenceModel>::gasTurbulence()
const 108 if (!gasTurbulencePtr_)
112 const transportModel& liquid = this->transport();
113 const twoPhaseSystem&
fluid =
114 refCast<const twoPhaseSystem>(liquid.fluid());
115 const transportModel& gas =
fluid.otherPhase(liquid);
119 .lookupObject<PhaseCompressibleTurbulenceModel<transportModel>>
129 return *gasTurbulencePtr_;
133 template<
class BasicTurbulenceModel>
137 this->gasTurbulence();
144 *(
mag(this->U_ - gasTurbulence.
U()));
146 this->nut_.correctBoundaryConditions();
149 BasicTurbulenceModel::correctNut();
void correct(GeometricField< Type, PatchField, GeoMesh > &field)
Apply correction to field.
BasicTurbulenceModel::transportModel transportModel
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
The Smagorinsky SGS model including bubble-generated turbulence.
virtual bool read()
Read model coefficients if they have changed.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const volVectorField & U() const
Access function to velocity field.
dimensionedScalar sqrt(const dimensionedScalar &ds)
label k
Boltzmann constant.
Generic dimensioned Type class.
GeometricField< vector, fvPatchField, volMesh > volVectorField
The Smagorinsky SGS model.
const transportModel & transport() const
Access function to incompressible transport model.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
BasicTurbulenceModel::rhoField rhoField
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
const alphaField & alpha() const
Access function to phase fraction.
Templated abstract base class for multiphase compressible turbulence models.
virtual bool read()
Read model coefficients if they have changed.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present.
virtual void correctNut()
Update the SGS eddy viscosity.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
BasicTurbulenceModel::alphaField alphaField