38 template<
class BasicTurbulenceModel>
41 return nuTilda_/this->
nu();
45 template<
class BasicTurbulenceModel>
52 return chi3/(chi3 +
pow3(Cv1_));
56 template<
class BasicTurbulenceModel>
63 return 1.0 - chi/(1.0 + chi*fv1);
67 template<
class BasicTurbulenceModel>
77 template<
class BasicTurbulenceModel>
87 template<
class BasicTurbulenceModel>
101 + fv2(chi, fv1)*nuTilda_/
sqr(kappa_*dTilda),
108 template<
class BasicTurbulenceModel>
132 tr.
ref().boundaryFieldRef() == 0.0;
138 template<
class BasicTurbulenceModel>
152 template<
class BasicTurbulenceModel>
161 min(tdTilda.
ref().ref(), tdTilda(), y_);
166 template<
class BasicTurbulenceModel>
172 this->nut_ = nuTilda_*fv1;
176 BasicTurbulenceModel::correctNut();
180 template<
class BasicTurbulenceModel>
183 correctNut(fv1(this->chi()));
189 template<
class BasicTurbulenceModel>
198 const word& propertiesName,
250 Cw1_(Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_),
311 this->runTime_.timeName(),
321 if (type == typeName)
323 this->printCoeffs(type);
330 template<
class BasicTurbulenceModel>
335 sigmaNut_.readIfPresent(this->coeffDict());
336 kappa_.readIfPresent(*
this);
338 Cb1_.readIfPresent(this->coeffDict());
339 Cb2_.readIfPresent(this->coeffDict());
340 Cw1_ = Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_;
342 Cw3_.readIfPresent(this->coeffDict());
343 Cv1_.readIfPresent(this->coeffDict());
344 Cs_.readIfPresent(this->coeffDict());
346 CDES_.readIfPresent(this->coeffDict());
347 ck_.readIfPresent(this->coeffDict());
358 template<
class BasicTurbulenceModel>
369 template<
class BasicTurbulenceModel>
378 template<
class BasicTurbulenceModel>
391 this->mesh_.time().timeName(),
404 template<
class BasicTurbulenceModel>
407 if (!this->turbulence_)
427 const volScalarField Stilda(this->Stilda(chi, fv1, Omega, dTilda));
436 Cb1_*alpha*rho*Stilda*nuTilda_
439 Cw1_*alpha*rho*fw(Stilda, dTilda)*nuTilda_/
sqr(dTilda),
445 nuTildaEqn.
ref().relax();
Eddy viscosity LES SGS model base class.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
BasicTurbulenceModel::transportModel transportModel
tmp< volScalarField > Stilda(const volScalarField &chi, const volScalarField &fv1, const volScalarField &Omega, const volScalarField &dTilda) const
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedTensor skew(const dimensionedTensor &dt)
tmp< volScalarField > fv2(const volScalarField &chi, const volScalarField &fv1) const
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
tmp< volScalarField > r(const volScalarField &nur, const volScalarField &Omega, const volScalarField &dTilda) const
bool readIfPresent(const dictionary &)
Update the value of dimensioned<Type> if found in the dictionary.
virtual bool read()
Read model coefficients if they have changed.
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
Generic dimensioned Type class.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
dimensionedScalar neg(const dimensionedScalar &ds)
BasicTurbulenceModel::alphaField alphaField
static const wallDist & New(const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual tmp< volScalarField > LESRegion() const
Return the LES field indicator.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< volScalarField > fv1(const volScalarField &chi) const
tmp< volScalarField > DnuTildaEff() const
Return the effective diffusivity for nuTilda.
tmp< volScalarField > S(const volTensorField &gradU) const
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
void correctBoundaryConditions()
Correct boundary field.
dimensionedScalar pow6(const dimensionedScalar &ds)
BasicTurbulenceModel::rhoField rhoField
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
const dimensionedVector & g
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< volScalarField > chi() const
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Length scale.
virtual void correct()
Correct nuTilda and related properties.
virtual void correctNut()
tmp< volScalarField > fw(const volScalarField &Omega, const volScalarField &dTilda) const
tmp< volScalarField > Omega(const volTensorField &gradU) const
virtual tmp< volScalarField > k() const
Return SGS kinetic energy.