41 os.writeEntryIfDifferent<scalar>(
"Ceps2", 1.9,
Ceps2_);
42 os.writeEntryIfDifferent<scalar>(
"Ck", -0.416,
Ck_);
43 os.writeEntryIfDifferent<scalar>(
"Bk", 8.366,
Bk_);
44 os.writeEntryIfDifferent<scalar>(
"C", 11.0,
C_);
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()
158 const tmp<scalarField> tnuw = turbModel.nu(patchi);
161 const tmp<volScalarField> tk = turbModel.k();
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)
185 kw[facei] = 2400.0/
sqr(Ceps2_)*Cf;
206 writeLocalEntries(
os);
218 kLowReWallFunctionFvPatchScalarField
wallFunctionCoefficients wallCoeffs_
Wall-function coefficients.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
This boundary condition provides a wall function for the turbulent kinetic energy (i...
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
dimensionedScalar sqrt(const dimensionedScalar &ds)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pow025(const dimensionedScalar &ds)
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
label k
Boltzmann constant.
virtual void write(Ostream &) const
Write.
scalar Ck_
Ck coefficient.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
constexpr const char *const group
Group name for atomic constants.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual void write(Ostream &) const
Write.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntries(Ostream &) const
Write wall-function coefficients as dictionary entries.
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar pow3(const dimensionedScalar &ds)
scalar Bk_
Bk coefficient.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
void writeLocalEntries(Ostream &) const
Write local wall function variables.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
scalar Ceps2_
Ceps2 coefficient.
kLowReWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.