44 void Foam::LESModels::PrandtlDelta::calcDelta()
73 kappa_(
dict.lookupOrDefault<scalar>(
"kappa", 0.41)),
76 dict.subDict(
type() +
"Coeffs").lookupOrDefault<scalar>
93 geometricDelta_().read(coeffDict);
94 dict.readIfPresent<scalar>(
"kappa", kappa_);
102 geometricDelta_().correct();
104 if (momentumTransportModel_.mesh().changing())
Macros for easy insertion into run-time selection tables.
static wallDist & New(const word &name, const fvMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Apply Prandtl mixing-length based damping function to the specified geometric delta to improve near-w...
PrandtlDelta(const word &name, const momentumTransportModel &turbulence, const dictionary &)
Construct from name, momentumTransportModel and dictionary.
virtual void read(const dictionary &)
Read the LESdelta dictionary.
Abstract base class for LES deltas.
const momentumTransportModel & momentumTransportModel_
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
Abstract base class for turbulence models (RAS, LES and laminar).
const fvMesh & mesh() const
const volScalarField & y() const
Return reference to cached distance-to-wall field.
A class for handling words, derived from string.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
addToRunTimeSelectionTable(LESdelta, cubeRootVolDelta, dictionary)
word name(const bool)
Return a word representation of a bool.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
VolField< scalar > volScalarField
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))