47void Foam::LESModels::PrandtlDelta::calcDelta()
59Foam::LESModels::PrandtlDelta::PrandtlDelta
73 dict.optionalSubDict(
type() +
"Coeffs")
76 kappa_(
dict.getOrDefault<scalar>(
"kappa", 0.41)),
79 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
96 geometricDelta_().read(coeffDict);
97 dict.readIfPresent<scalar>(
"kappa", kappa_);
98 coeffDict.readIfPresent<scalar>(
"Cdelta", Cdelta_);
105 geometricDelta_().correct();
107 if (turbulenceModel_.mesh().changing())
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual void read(const dictionary &)
Read the LESdelta dictionary.
Abstract base class for LES deltas.
LESdelta(const LESdelta &)=delete
No copy construct.
static autoPtr< LESdelta > New(const word &name, const turbulenceModel &turbulence, const dictionary &dict, const word &lookupName="delta")
Return a reference to the selected LES delta.
const turbulenceModel & turbulence() const
Return turbulenceModel reference.
const turbulenceModel & turbulenceModel_
static FOAM_NO_DANGLING_REFERENCE const wallDist & New(const fvMesh &mesh, Args &&... args)
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
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
Abstract base class for turbulence models (RAS, LES and laminar).
const fvMesh & mesh() const
const volScalarField & y() const noexcept
Return reference to cached distance-to-wall field.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for LES SGS models.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.