41 template<
class BasicTurbulenceModel>
48 this->nut_.correctBoundaryConditions();
51 BasicTurbulenceModel::correctNut();
55 template<
class BasicTurbulenceModel>
64 template<
class BasicTurbulenceModel>
67 const alphaField&
alpha,
73 const word& propertiesName,
123 simpleFilter_(
U.
mesh()),
125 filter_(filterPtr_()),
127 flm0_(
"flm0", flm_.dimensions(),
Zero),
128 fmm0_(
"fmm0", fmm_.dimensions(), VSMALL)
130 if (
type == typeName)
139 template<
class BasicTurbulenceModel>
144 filter_.read(this->coeffDict());
145 theta_.readIfPresent(this->coeffDict());
154 template<
class BasicTurbulenceModel>
157 if (!this->turbulence_)
163 const alphaField&
alpha = this->alpha_;
164 const rhoField&
rho = this->rho_;
184 2.0*
sqr(this->
delta())*(filter_(magS*S) - 4.0*magSf*Sf)
Eddy viscosity LES SGS model base class.
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Abstract class for LES filters.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
fvMatrix< scalar > fvScalarMatrix
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const vector L(dict.get< vector >("L"))
Dynamic SGS model with Lagrangian averaging.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
GeometricField< tensor, fvPatchField, volMesh > volTensorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual void printCoeffs(const word &type)
Print model coefficients.
Generic dimensioned Type class.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< vector, fvPatchField, volMesh > volVectorField
constexpr const char *const group
Group name for atomic constants.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
A class for handling words, derived from Foam::string.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
autoPtr< surfaceVectorField > Uf
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
virtual bool read()
Read model coefficients if they have changed.
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual bool read()
Read model coefficients if they have changed.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
Base-class for all transport models used by the incompressible turbulence models. ...
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present.
virtual void correct()
Correct Eddy-Viscosity and related properties.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual void correctNut()
static constexpr const zero Zero
Global zero (0)