79 wallCoeffs_(ptf.wallCoeffs_)
93 dict.getCheckOrDefault<scalar>
100 Ck_(
dict.getOrDefault<scalar>(
"Ck", -0.416)),
101 Bk_(
dict.getOrDefault<scalar>(
"Bk", 8.366)),
102 C_(
dict.getOrDefault<scalar>(
"C", 11.0)),
113 Ceps2_(kwfpsf.Ceps2_),
117 wallCoeffs_(kwfpsf.wallCoeffs_)
128 Ceps2_(kwfpsf.Ceps2_),
132 wallCoeffs_(kwfpsf.wallCoeffs_)
145 const label patchi = patch().index();
152 internalField().group()
164 const scalar Cmu25 =
pow025(wallCoeffs_.Cmu());
165 const scalar kappa = wallCoeffs_.kappa();
166 const scalar yPlusLam = wallCoeffs_.yPlusLam();
173 const label celli = patch().faceCells()[facei];
174 const scalar
uTau = Cmu25*
sqrt(
k[celli]);
175 const scalar
yPlus =
uTau*
y[facei]/nuw[facei];
177 if (
yPlus > yPlusLam)
179 kw[facei] = Ck_/kappa*
log(
yPlus) + Bk_;
185 kw[facei] = 2400.0/
sqr(Ceps2_)*Cf;
206 writeLocalEntries(
os);
207 writeEntry(
"value",
os);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wall function for the turbulent kinetic energy (i....
scalar Ceps2_
Ceps2 coefficient.
scalar Bk_
Bk coefficient.
void writeLocalEntries(Ostream &) const
Write local wall function variables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
wallFunctionCoefficients wallCoeffs_
Wall-function coefficients.
scalar Ck_
Ck coefficient.
A class for managing temporary objects.
Abstract base class for turbulence models (RAS, LES and laminar).
static const word propertiesName
Default name of the turbulence properties dictionary.
void writeEntries(Ostream &) const
Write wall-function coefficients as dictionary entries.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
#define forAll(list, i)
Loop across all elements in list.