39 template<
class BasicMomentumTransportModel>
45 0.5*(filter_(
magSqr(this->U_)) -
magSqr(filter_(this->U_))),
51 template<
class BasicMomentumTransportModel>
60 simpleFilter_(
dev(filter_(
sqr(this->U_)) - (
sqr(filter_(this->U_)))))
65 simpleFilter_(-2.0*this->
delta()*
sqrt(KK)*filter_(
D))
70 simpleFilter_(0.5*(LL && MM))
82 template<
class BasicMomentumTransportModel>
92 /simpleFilter_(
pow(KK, 1.5)/(2.0*this->
delta()))
100 template<
class BasicMomentumTransportModel>
108 template<
class BasicMomentumTransportModel>
115 this->nut_ = Ck(
D, KK)*
sqrt(k_)*this->
delta();
116 this->nut_.correctBoundaryConditions();
121 template<
class BasicMomentumTransportModel>
128 template<
class BasicMomentumTransportModel>
136 dimVolume*this->rho_.dimensions()*k_.dimensions()
145 template<
class BasicMomentumTransportModel>
172 this->groupName(
"k"),
173 this->runTime_.
name(),
181 simpleFilter_(this->mesh_),
182 filterPtr_(
LESfilter::
New(this->mesh_, this->coeffDict())),
183 filter_(filterPtr_())
187 if (
type == typeName)
189 this->printCoeffs(
type);
196 template<
class BasicMomentumTransportModel>
201 filter_.read(this->coeffDict());
212 template<
class BasicMomentumTransportModel>
217 this->groupName(
"epsilon"),
223 template<
class BasicMomentumTransportModel>
226 if (!this->turbulence_)
271 bound(k_, this->kMin_);
static const Foam::dimensionedScalar D("D", Foam::dimTemperature, 257.14)
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Eddy viscosity LES SGS model base class.
BasicMomentumTransportModel::alphaField alphaField
volScalarField Ce() const
volScalarField Ck(const volSymmTensorField &D, const volScalarField &KK) const
Calculate Ck by filtering the velocity field U.
virtual void correct()
Correct Eddy-Viscosity and related properties.
virtual tmp< volScalarField > epsilon() const
Return sub-grid disipation rate.
virtual void correctNut()
virtual tmp< fvScalarMatrix > kSource() const
tmp< volScalarField > KK() const
Return the KK field obtained by filtering the velocity field U.
dynamicKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
virtual bool read()
Read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
One equation eddy-viscosity model.
Abstract class for LES filters.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
Finite volume constraints.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
tmp< fvMatrix< Type > > source(const VolField< Type > &field) const
Return source for an equation.
A class for managing temporary objects.
void clear() const
If object pointer points to valid object:
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
Foam::fvConstraints & fvConstraints(Foam::fvConstraints::New(mesh))
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const dimensionedScalar G
Newtonian constant of gravitation.
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
tmp< fvMatrix< Type > > laplacian(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
word name(const bool)
Return a word representation of a bool.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionSet dimTime
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionSet dimVolume
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
bool bound(volScalarField &, const dimensionedScalar &min)
Bound the given scalar field where it is below the specified min value.
const dimensionSet dimVelocity
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.