39 template<
class BasicMomentumTransportModel>
42 this->nut_ = Ck_*
sqrt(this->
k())*this->
delta();
43 this->nut_.correctBoundaryConditions();
50 template<
class BasicMomentumTransportModel>
110 if (
type == typeName)
120 template<
class BasicMomentumTransportModel>
125 Ck_.readIfPresent(this->coeffDict());
126 Cm_.readIfPresent(this->coeffDict());
127 Ce_.readIfPresent(this->coeffDict());
128 Cs_.readIfPresent(this->coeffDict());
139 template<
class BasicMomentumTransportModel>
147 this->groupName(
"epsilon"),
153 template<
class BasicMomentumTransportModel>
161 this->groupName(
"omega"),
167 template<
class BasicMomentumTransportModel>
170 if (!this->turbulence_)
216 this->boundNormalStress(
R);
static const Foam::dimensionedScalar D("D", Foam::dimTemperature, 257.14)
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,.
Templated abstract base class for LES SGS models.
virtual void printCoeffs(const word &type)
Print model coefficients.
BasicMomentumTransportModel::alphaField alphaField
virtual void correct()
Correct sub-grid stress, eddy-Viscosity and related properties.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
virtual void correctNut()
Update the eddy-viscosity.
DeardorffDiffStress(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Constructor from components.
virtual tmp< volScalarField > omega() const
Return the turbulence specific dissipation rate.
virtual bool read()
Read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
Reynolds-stress turbulence model base class.
void boundNormalStress(volSymmTensorField &R) const
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Generic dimensioned Type class.
Finite volume constraints.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
tmp< fvMatrix< Type > > source(const VolField< Type > &field) const
Return source for an equation.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
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))
void correct(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiCorr, const SpType &Sp, const SuType &Su)
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
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 > > ddt(const VolField< Type > &vf)
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
bool read(const char *, int32_t &)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
static const Identity< scalar > I
dimensionedScalar sqrt(const dimensionedScalar &ds)
static scalar R(const scalar a, const scalar x)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.