Go to the documentation of this file.
42 template<
class BasicTurbulenceModel>
45 this->nut_ = this->Cmu_*
sqr(k_)/epsilon_;
46 this->nut_.correctBoundaryConditions();
49 BasicTurbulenceModel::correctNut();
55 template<
class BasicTurbulenceModel>
64 const word& propertiesName,
186 this->runTime_.timeName(),
198 this->runTime_.timeName(),
206 if (
type == typeName)
208 this->printCoeffs(
type);
210 this->boundNormalStress(this->R_);
211 bound(epsilon_, this->epsilonMin_);
212 k_ = 0.5*
tr(this->R_);
219 template<
class BasicTurbulenceModel>
224 Cmu_.readIfPresent(this->coeffDict());
225 C1_.readIfPresent(this->coeffDict());
226 C2_.readIfPresent(this->coeffDict());
227 Ceps1_.readIfPresent(this->coeffDict());
228 Ceps2_.readIfPresent(this->coeffDict());
229 Cs_.readIfPresent(this->coeffDict());
230 Ceps_.readIfPresent(this->coeffDict());
232 wallReflection_.readIfPresent(
"wallReflection", this->coeffDict());
233 kappa_.readIfPresent(this->coeffDict());
234 Cref1_.readIfPresent(this->coeffDict());
235 Cref2_.readIfPresent(this->coeffDict());
244 template<
class BasicTurbulenceModel>
252 (Cs_*(this->k_/this->epsilon_))*this->R_ +
I*this->
nu()
258 template<
class BasicTurbulenceModel>
266 (Ceps_*(this->k_/this->epsilon_))*this->R_ +
I*this->
nu()
272 template<
class BasicTurbulenceModel>
275 if (!this->turbulence_)
297 epsilon_.boundaryFieldRef().updateCoeffs();
311 epsEqn.
ref().relax();
313 epsEqn.
ref().boundaryManipulate(epsilon_.boundaryFieldRef());
316 bound(epsilon_, this->epsilonMin_);
327 if (isA<wallFvPatch>(curPatch))
331 label celli = curPatch.
faceCells()[facei];
334 G[celli]/(0.5*
mag(
tr(P[celli])) + SMALL),
350 - (2.0/3.0*(1 - C1_)*
I)*
alpha*
rho*epsilon_
363 Cref1_*
R - ((Cref2_*C2_)*(k_/epsilon_))*
dev(P)
376 this->boundNormalStress(
R);
383 this->correctWallShearStress(
R);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A class for handling words, derived from Foam::string.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
BasicTurbulenceModel::rhoField rhoField
const dimensionedScalar G
Newtonian constant of gravitation.
A class for managing temporary objects.
Templated abstract base class for RAS turbulence models.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
bool read(const char *buf, int32_t &val)
Same as readInt32.
static const wallDist & New(const fvMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Launder, Reece and Rodi Reynolds-stress turbulence model for incompressible and compressible flows.
#define forAll(list, i)
Loop across all elements in list.
#define R(A, B, C, D, E, F, K, M)
Reynolds-stress turbulence model base class.
BasicTurbulenceModel::alphaField alphaField
virtual void correctNut()
Update the eddy-viscosity.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
tmp< volSymmTensorField > DepsilonEff() const
Return the effective diffusivity for epsilon.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
SolverPerformance< Type > solve(faMatrix< Type > &, Istream &)
Solve returning the solution statistics given convergence tolerance.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual bool read()
Read model coefficients if they have changed.
Generic dimensioned Type class.
virtual void correct()
Solve the turbulence equations and correct eddy-Viscosity and.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
BasicTurbulenceModel::transportModel transportModel
const polyBoundaryMesh & patches
tmp< volSymmTensorField > DREff() const
Return the effective diffusivity for R.
virtual const labelUList & faceCells() const
Return faceCells.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
static const Identity< scalar > I
static Switch getOrAddToDict(const word &key, dictionary &dict, const Switch deflt=switchType::FALSE)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)