56 (KsPlus - 2.25)/87.75 + Cs*KsPlus,
57 sin(0.4258*(
log(KsPlus) - 0.811))
62 return E_/(1 + Cs*KsPlus);
78 momentumTransportModel::typeName,
79 internalField().
group()
98 const label celli = patch().faceCells()[facei];
100 const scalar uStar = Cmu25*
sqrt(k[celli]);
101 const scalar KsPlus = uStar*Ks_[facei]/nuw[facei];
102 const scalar
E = this->
E(KsPlus, Cs_[facei]);
104 const scalar
yPlus =
max(uStar*y[facei]/nuw[facei], yPlusMin);
113 max(2*nutw[facei], nuw[facei])
120 Info<<
"yPlus = " << yPlus
121 <<
", KsPlus = " << KsPlus
123 <<
", yPlusMin " << yPlusMin
125 <<
", nutw = " << nutw[facei]
156 Ks_(
"Ks", dict, p.
size()),
157 Cs_(
"Cs", dict, p.
size())
170 Ks_(mapper(ptf.Ks_)),
194 nutkWallFunctionFvPatchScalarField::autoMap(m);
206 nutkWallFunctionFvPatchScalarField::rmap(ptf, addr);
209 refCast<const nutkRoughWallFunctionFvPatchScalarField>(ptf);
211 Ks_.
rmap(nrwfpsf.Ks_, addr);
212 Cs_.
rmap(nrwfpsf.Cs_, addr);
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
const char *const group
Group name for atomic constants.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< scalarField > nut() const
Calculate the turbulence viscosity.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar log(const dimensionedScalar &ds)
scalar yPlusLam() const
Return the Y+ at the edge of the laminar sublayer.
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
T & ref() const
Return non-const reference or generate a fatal error.
virtual void write(Ostream &) const
Write.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pow025(const dimensionedScalar &ds)
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions ...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
const nearWallDist & y() const
Return the near wall distances.
label k
Boltzmann constant.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
static const nutWallFunctionFvPatchScalarField & nutw(const momentumTransportModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
scalar E() const
Return E.
Foam::fvPatchFieldMapper.
scalar kappa_
Von Karman constant.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
nutkRoughWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
scalar Cmu_
Cmu coefficient.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
nutkWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.