39 template<
class BasicMomentumTransportModel>
50 template<
class BasicMomentumTransportModel>
60 chi3/(chi3 +
pow3(Cv1_))
65 template<
class BasicMomentumTransportModel>
76 1.0 - chi/(1.0 + chi*fv1)
81 template<
class BasicMomentumTransportModel>
96 template<
class BasicMomentumTransportModel>
112 + fv2(chi, fv1)*nuTilda_()/
sqr(kappa_*dTilda),
119 template<
class BasicMomentumTransportModel>
147 template<
class BasicMomentumTransportModel>
166 template<
class BasicMomentumTransportModel>
183 template<
class BasicMomentumTransportModel>
189 if (this->mesh_.cacheTemporaryObject(modelName(
"LESRegion")))
193 modelName(
"LESRegion"),
200 template<
class BasicMomentumTransportModel>
206 this->nut_ = nuTilda_*fv1;
212 template<
class BasicMomentumTransportModel>
215 correctNut(fv1(this->chi()));
221 template<
class BasicMomentumTransportModel>
280 Cw1_(Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_),
341 this->runTime_.timeName(),
351 if (type == typeName)
353 this->printCoeffs(type);
360 template<
class BasicMomentumTransportModel>
365 sigmaNut_.readIfPresent(this->coeffDict());
366 kappa_.readIfPresent(*
this);
368 Cb1_.readIfPresent(this->coeffDict());
369 Cb2_.readIfPresent(this->coeffDict());
370 Cw1_ = Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_;
372 Cw3_.readIfPresent(this->coeffDict());
373 Cv1_.readIfPresent(this->coeffDict());
374 Cs_.readIfPresent(this->coeffDict());
376 CDES_.readIfPresent(this->coeffDict());
377 ck_.readIfPresent(this->coeffDict());
388 template<
class BasicMomentumTransportModel>
395 (nuTilda_ + this->nu())/sigmaNut_
400 template<
class BasicMomentumTransportModel>
410 "dTildaExtrapolated",
411 this->mesh_.time().timeName(),
416 zeroGradientFvPatchScalarField::typeName
418 dTildaExtrapolated.
ref() = dTilda(chi, fv1,
fvc::grad(this->U_));
426 sqr(this->
nut()/ck_/dTildaExtrapolated)
431 volScalarField::Boundary& kBf = tk.
ref().boundaryFieldRef();
435 if (isA<wallFvPatch>(patches[
patchi]))
445 template<
class BasicMomentumTransportModel>
448 if (!this->turbulence_)
474 this->Stilda(chi, fv1, Omega, dTilda)
485 Cb1_*
alpha()*
rho()*Stilda*nuTilda_()
488 Cw1_*
alpha()*
rho()*fw(Stilda, dTilda)*nuTilda_()/
sqr(dTilda),
491 + fvModels.source(alpha, rho, nuTilda_)
494 nuTildaEqn.
ref().relax();
495 fvConstraints.
constrain(nuTildaEqn.ref());
499 nuTilda_.correctBoundaryConditions();
504 cacheLESRegion(dTilda);
Eddy viscosity LES SGS model base class.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
BasicMomentumTransportModel::rhoField rhoField
#define forAll(list, i)
Loop across all elements in list.
void clear() const
If object pointer points to valid object:
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &)
Return a temporary field constructed from name, mesh.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedTensor skew(const dimensionedTensor &dt)
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
dimensionedScalar sqrt(const dimensionedScalar &ds)
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.
Generic dimensioned Type class.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
dimensionedScalar neg(const dimensionedScalar &ds)
const dimensionSet dimLength
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
Foam::fvConstraints & fvConstraints
A class for handling words, derived from string.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
virtual tmp< volScalarField::Internal > dTilda(const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volTensorField::Internal &gradU) const
Length scale.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< volScalarField::Internal > r(const volScalarField::Internal &nur, const volScalarField::Internal &Omega, const volScalarField::Internal &dTilda) const
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
tmp< volScalarField > fv1(const volScalarField &chi) const
static wallDist & New(fvMesh &mesh)
tmp< volScalarField > DnuTildaEff() const
Return the effective diffusivity for nuTilda.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Internal & ref()
Return a reference to the dimensioned internal field.
Foam::fvModels & fvModels
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
BasicMomentumTransportModel::alphaField alphaField
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
Finite volume constraints.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
SpalartAllmarasDES(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
tmp< volScalarField::Internal > Omega(const volTensorField::Internal &gradU) const
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
BasicMomentumTransportModel::transportModel transportModel
virtual void cacheLESRegion(const volScalarField::Internal &dTilda) const
Cache the LES region indicator field.
void correctBoundaryConditions()
Correct boundary field.
dimensionedScalar pow6(const dimensionedScalar &ds)
tmp< volScalarField::Internal > Stilda(const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volScalarField::Internal &Omega, const volScalarField::Internal &dTilda) const
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
const dimensionedVector & g
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< volScalarField > chi() const
virtual void correct()
Correct nuTilda and related properties.
tmp< volScalarField::Internal > fw(const volScalarField::Internal &Omega, const volScalarField::Internal &dTilda) const
tmp< volScalarField::Internal > fv2(const volScalarField::Internal &chi, const volScalarField::Internal &fv1) const
virtual void correctNut()
virtual tmp< volScalarField > k() const
Return SGS kinetic energy.