40template<
class BasicTurbulenceModel>
41const IDDESDelta& SpalartAllmarasIDDES<BasicTurbulenceModel>::setDelta()
const
43 if (!isA<IDDESDelta>(this->delta_()))
50 return refCast<const IDDESDelta>(this->delta_());
54template<
class BasicTurbulenceModel>
55tmp<volScalarField> SpalartAllmarasIDDES<BasicTurbulenceModel>::alpha()
const
57 return max(0.25 - this->y_/IDDESDelta_.hmax(), scalar(-5));
61template<
class BasicTurbulenceModel>
62tmp<volScalarField> SpalartAllmarasIDDES<BasicTurbulenceModel>::ft
67 return tanh(
pow3(
sqr(Ct_)*rd(this->nut_, magGradU)));
71template<
class BasicTurbulenceModel>
72tmp<volScalarField> SpalartAllmarasIDDES<BasicTurbulenceModel>::fl
81template<
class BasicTurbulenceModel>
82tmp<volScalarField> SpalartAllmarasIDDES<BasicTurbulenceModel>::rd
88 tmp<volScalarField>
tr
99 *
sqr(this->kappa_*this->y_)
104 tr.ref().boundaryFieldRef() == 0.0;
110template<
class BasicTurbulenceModel>
111tmp<volScalarField> SpalartAllmarasIDDES<BasicTurbulenceModel>::fdt
116 return 1 -
tanh(
pow(Cdt1_*rd(this->nut_, magGradU), Cdt2_));
122template<
class BasicTurbulenceModel>
157 fdTilda*(1 + fe)*lRAS + (1 - fdTilda)*lLES,
165template<
class BasicTurbulenceModel>
174 const word& propertiesName,
226 IDDESDelta_(setDelta())
228 if (
type == typeName)
230 this->printCoeffs(
type);
237template<
class BasicTurbulenceModel>
242 Cdt1_.readIfPresent(this->coeffDict());
243 Cdt2_.readIfPresent(this->coeffDict());
244 Cl_.readIfPresent(this->coeffDict());
245 Ct_.readIfPresent(this->coeffDict());
IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model) The min and max delta are c...
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
SpalartAllmaras IDDES turbulence model for incompressible and compressible flows.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
BasicTurbulenceModel::transportModel transportModel
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Length scale.
virtual bool read()
Re-read model coefficients if they have changed.
Generic dimensioned Type class.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
const volScalarField & psi
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
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)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
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.
dimensionedScalar neg(const dimensionedScalar &ds)
errorManipArg< error, int > exit(error &err, const int errNo=1)
static const char *const typeName
The type name used in ensight case files.