31#include "twoPhaseSystem.H"
42template<
class BasicTurbulenceModel>
43kOmegaSSTSato<BasicTurbulenceModel>::kOmegaSSTSato
51 const word& propertiesName,
55 kOmegaSST<BasicTurbulenceModel>
67 gasTurbulencePtr_(
nullptr),
81 this->printCoeffs(
type);
88template<
class BasicTurbulenceModel>
93 Cmub_.readIfPresent(this->coeffDict());
102template<
class BasicTurbulenceModel>
103const PhaseCompressibleTurbulenceModel
105 typename BasicTurbulenceModel::transportModel
107kOmegaSSTSato<BasicTurbulenceModel>::gasTurbulence()
const
109 if (!gasTurbulencePtr_)
113 const transportModel& liquid = this->transport();
114 const twoPhaseSystem&
fluid =
116 const transportModel& gas =
fluid.otherPhase(liquid);
120 .lookupObject<PhaseCompressibleTurbulenceModel<transportModel>>
130 return *gasTurbulencePtr_;
134template<
class BasicTurbulenceModel>
141 this->gasTurbulence();
145 pow(this->betaStar_, 0.25)*this->y_*
sqrt(this->k_)/this->
nu()
152 this->a1_*this->omega_,
153 this->b1_*this->F23()*
sqrt(S2)
157 *(
mag(this->U_ - gasTurbulence.
U()));
162 BasicTurbulenceModel::correctNut();
166template<
class BasicTurbulenceModel>
void correctBoundaryConditions()
Correct boundary field.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Templated abstract base class for multiphase compressible turbulence models.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
virtual void correctNut()
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.
virtual tmp< volScalarField > F23() const
const volScalarField & y_
virtual tmp< volScalarField > S2(const volTensorField &gradU) const
dimensionedScalar betaStar_
virtual bool read()=0
Re-read model coefficients if they have changed.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
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.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar exp(const dimensionedScalar &ds)
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)