48void Foam::LESModels::vanDriestDelta::calcDelta()
74 if (isA<wallFvPatch>(
patches[patchi]))
78 const scalarField& nuSgsw = nuSgs().boundaryField()[patchi];
81 nuw/
sqrt((nuw + nuSgsw)*
mag(Uw.snGrad()) + VSMALL);
87 wallDistData<wallPointYPlus>
y(
mesh, ystar);
93 (kappa_/Cdelta_)*((scalar(1) + SMALL) -
exp(-
y/ystar/Aplus_))*
y
120 kappa_(
dict.getOrDefault<scalar>(
"kappa", 0.41)),
123 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
131 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
139 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<label>
146 delta_ = geometricDelta_();
156 geometricDelta_().read(coeffsDict);
157 dict.readIfPresent<scalar>(
"kappa", kappa_);
160 coeffsDict.
readIfPresent<label>(
"calcInterval", calcInterval_);
168 if (turbulenceModel_.mesh().time().timeIndex() % calcInterval_ == 0)
170 geometricDelta_().correct();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Type of boundary fields.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Abstract base class for LES deltas.
const turbulenceModel & turbulenceModel_
virtual bool read()
Re-read model coefficients if they have changed.
const word & constant() const
Return constant name.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const Time & time() const
Return the top-level database.
Abstract base class for turbulence models (RAS, LES and laminar).
const volVectorField & U() const
Access function to velocity field.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
const fvMesh & mesh() const
static scalar yPlusCutOff
The cut-off value for y+.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const polyBoundaryMesh & patches
compressible::turbulenceModel & turbulence
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar exp(const dimensionedScalar &ds)
GeometricField< vector, fvPatchField, volMesh > volVectorField
PtrList< fvPatch > fvPatchList
Store lists of fvPatch as a PtrList.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
fvPatchField< vector > fvPatchVectorField
#define forAll(list, i)
Loop across all elements in list.