38 template<
class BasicTurbulenceModel>
47 simpleFilter_(
dev(filter_(
sqr(this->U_)) - (
sqr(filter_(this->U_)))))
52 simpleFilter_(-2.0*this->
delta()*
sqrt(KK)*filter_(D))
57 simpleFilter_(0.5*(LL && MM))
69 template<
class BasicTurbulenceModel>
78 simpleFilter_(this->nuEff()*(filter_(
magSqr(D)) -
magSqr(filter_(D))))
79 /simpleFilter_(
pow(KK, 1.5)/(2.0*this->
delta()))
87 template<
class BasicTurbulenceModel>
94 0.5*(filter_(
magSqr(this->U_)) -
magSqr(filter_(this->U_)))
102 template<
class BasicTurbulenceModel>
109 this->nut_ = Ck(D, KK)*
sqrt(k_)*this->
delta();
110 this->nut_.correctBoundaryConditions();
113 BasicTurbulenceModel::correctNut();
117 template<
class BasicTurbulenceModel>
122 0.5*(filter_(
magSqr(this->U_)) -
magSqr(filter_(this->U_)))
129 template<
class BasicTurbulenceModel>
137 dimVolume*this->rho_.dimensions()*k_.dimensions()
146 template<
class BasicTurbulenceModel>
155 const word& propertiesName,
176 this->runTime_.timeName(),
184 simpleFilter_(this->mesh_),
186 filter_(filterPtr_())
188 bound(k_, this->kMin_);
190 if (type == typeName)
192 this->printCoeffs(type);
199 template<
class BasicTurbulenceModel>
204 filter_.read(this->coeffDict());
215 template<
class BasicTurbulenceModel>
225 this->runTime_.timeName(),
236 template<
class BasicTurbulenceModel>
239 if (!this->turbulence_)
271 -
fvm::SuSp((2.0/3.0)*alpha*rho*divU, k_)
281 bound(k_, this->kMin_);
Eddy viscosity LES SGS model base class.
virtual bool read()
Read model coefficients if they have changed.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
fvMatrix< scalar > fvScalarMatrix
virtual void correct()
Correct Eddy-Viscosity and related properties.
volScalarField Ce() const
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
const dimensionedScalar G
Newtonian constant of gravitation.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar sqrt(const dimensionedScalar &ds)
label k
Boltzmann constant.
BasicTurbulenceModel::rhoField rhoField
One equation eddy-viscosity model.
volScalarField Ck(const volSymmTensorField &D, const volScalarField &KK) const
Calculate Ck by filtering the velocity field U.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
void clear() const
If object pointer points to valid object:
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
const dimensionSet dimVolume(pow3(dimLength))
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
tmp< fvMatrix< Type > > SuSp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
A class for handling words, derived from string.
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
BasicTurbulenceModel::transportModel transportModel
virtual void correctNut()
virtual tmp< volScalarField > epsilon() const
Return sub-grid disipation rate.
BasicTurbulenceModel::alphaField alphaField
const dimensionSet & dimensions() const
Return dimensions.
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)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Dynamic one equation eddy-viscosity model.
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
virtual tmp< fvScalarMatrix > kSource() const
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
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 max(const dimensioned< Type > &)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
dimensioned< scalar > mag(const dimensioned< Type > &)
volScalarField divU(fvc::div(fvc::absolute(phi, U)))
A class for managing temporary objects.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
T & ref() const
Return non-const reference or generate a fatal error.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static autoPtr< LESfilter > New(const fvMesh &, const dictionary &, const word &filterDictName="filter")
Return a reference to the selected LES filter.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...