40template<
class BasicTurbulenceModel>
41const IDDESDelta& kOmegaSSTIDDES<BasicTurbulenceModel>::setDelta()
const
46 <<
"The delta function must be set to a " << IDDESDelta::typeName
54template<
class BasicTurbulenceModel>
55tmp<volScalarField> kOmegaSSTIDDES<BasicTurbulenceModel>::alpha()
const
57 return max(0.25 - this->y_/IDDESDelta_.hmax(), scalar(-5));
61template<
class BasicTurbulenceModel>
62tmp<volScalarField> kOmegaSSTIDDES<BasicTurbulenceModel>::ft
67 return tanh(
pow3(
sqr(Ct_)*this->r(this->nut_, magGradU)));
71template<
class BasicTurbulenceModel>
72tmp<volScalarField> kOmegaSSTIDDES<BasicTurbulenceModel>::fl
77 return tanh(
pow(
sqr(Cl_)*this->r(this->
nu(), magGradU), 10));
81template<
class BasicTurbulenceModel>
82tmp<volScalarField> kOmegaSSTIDDES<BasicTurbulenceModel>::fdt
93template<
class BasicTurbulenceModel>
119 fdTilda*(1 + fe)*lRAS + (1 - fdTilda)*lLES,
127 lerp(lLES, lRAS, fdTilda),
135template<
class BasicTurbulenceModel>
136kOmegaSSTIDDES<BasicTurbulenceModel>::kOmegaSSTIDDES
138 const alphaField&
alpha,
144 const word& propertiesName,
206 IDDESDelta_(setDelta())
210 this->printCoeffs(
type);
217template<
class BasicTurbulenceModel>
222 Cdt1_.readIfPresent(this->coeffDict());
223 Cdt2_.readIfPresent(this->coeffDict());
224 Cl_.readIfPresent(this->coeffDict());
225 Ct_.readIfPresent(this->coeffDict());
234template<
class BasicTurbulenceModel>
k-omega-SST DES turbulence model for incompressible and compressible flows.
virtual tmp< volScalarField > lengthScaleLES(const volScalarField &CDES) const
LES length scale.
virtual tmp< volScalarField > lengthScaleRAS() const
RAS length scale.
virtual tmp< volScalarField > CDES(const volScalarField &F1) const
Blending for CDES parameter.
tmp< volScalarField > r(const volScalarField &nur, const volScalarField &magGradU) const
virtual bool read()
Re-read model coefficients if they have changed.
virtual tmp< volScalarField > dTilda(const volScalarField &magGradU, const volScalarField &CDES) const
Return the length scale.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
virtual tmp< volScalarField > fd() const
Return the shielding function.
BasicTurbulenceModel::transportModel transportModel
const IDDESDelta & IDDESDelta_
IDDES delta.
virtual bool read()
Re-read model coefficients if they have changed.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Generic dimensioned Type class.
A class for managing temporary objects.
Base-class for all transport models used by the incompressible turbulence models.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
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
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensionedScalar pow3(const dimensionedScalar &ds)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar tanh(const dimensionedScalar &ds)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)