42 template<
class BasicTurbulenceModel>
65 auto&
psi = tpsi.ref();
76 (1 - this->Cb1_/(this->Cw1_*
sqr(this->kappa_)*fwStar_)
77 *(ft2 + (1 - ft2)*fv2))
78 /
max(SMALL, (fv1*
max(scalar(1
e-10), 1 - ft2)))
87 template<
class BasicTurbulenceModel>
94 return psi(chi, fv1)*CDES_*this->
delta();
98 template<
class BasicTurbulenceModel>
116 pos(dTilda - lRAS)*Omega + (scalar(1) -
pos(dTilda - lRAS))*Ssigma
122 SsigmaDES + fv2*this->nuTilda_/
sqr(this->kappa_*dTilda),
138 template<
class BasicTurbulenceModel>
150 min(tdTilda.
ref(), tdTilda(), this->y_);
155 template<
class BasicTurbulenceModel>
162 BasicTurbulenceModel::correctNut();
168 template<
class BasicTurbulenceModel>
171 const alphaField&
alpha,
177 const word& propertiesName,
234 if (
type == typeName)
237 <<
"This model is not recommended and will be deprecated in future " 238 <<
"releases. Please consider using the DDES/IDDES versions instead" 241 this->printCoeffs(
type);
248 template<
class BasicTurbulenceModel>
253 useSigma_.readIfPresent(
"useSigma", this->coeffDict());
254 CDES_.readIfPresent(this->coeffDict());
255 lowReCorrection_.readIfPresent(
"lowReCorrection", this->coeffDict());
256 fwStar_.readIfPresent(this->coeffDict());
265 template<
class BasicTurbulenceModel>
277 this->mesh_.time().timeName(),
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual tmp< volScalarField > Stilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU, const volScalarField &dTilda) const
Return the production term.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
virtual bool read()
Re-read model coefficients if they have changed.
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
Generic dimensioned Type class.
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
dimensionedScalar neg(const dimensionedScalar &ds)
bool read(const char *buf, int32_t &val)
Same as readInt32.
Base class to handle various characteristics for SpalartAllmaras based LES/DES turbulence models for ...
virtual tmp< volScalarField > LESRegion() const
Return the LES field indicator.
dimensionedScalar pos(const dimensionedScalar &ds)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
const dimensionedScalar e
Elementary charge.
A class for handling words, derived from Foam::string.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
virtual tmp< volScalarField > psi(const volScalarField &chi, const volScalarField &fv1) const
Return the low Reynolds number correction function.
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.
#define WarningInFunction
Report a warning using Foam::Warning.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Base-class for all transport models used by the incompressible turbulence models. ...
virtual tmp< volScalarField > lengthScaleLES(const volScalarField &chi, const volScalarField &fv1) const
Return the LES length scale.
const volScalarField & psi
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Return the length scale.
Templated abstract base class for DES models.
virtual void correctNut()
static constexpr const zero Zero
Global zero (0)