51 (KsPlus - 2.25)/87.75 + Cs*KsPlus,
52 sin(0.4258*(
log(KsPlus) - 0.811))
57 return (1.0 + Cs*KsPlus);
87 label faceCellI = patch().faceCells()[faceI];
89 scalar uStar = Cmu25*
sqrt(k[faceCellI]);
90 scalar
yPlus = uStar*y[faceI]/nuw[faceI];
91 scalar KsPlus = uStar*
Ks_[faceI]/nuw[faceI];
99 scalar limitingNutw =
max(nutw[faceI], nuw[faceI]);
116 Info<<
"yPlus = " << yPlus
117 <<
", KsPlus = " << KsPlus
118 <<
", Edash = " << Edash
119 <<
", nutw = " << nutw[faceI]
199 nutkWallFunctionFvPatchScalarField::autoMap(m);
211 nutkWallFunctionFvPatchScalarField::rmap(ptf, addr);
214 refCast<const nutkRoughWallFunctionFvPatchScalarField>(ptf);
227 writeEntry(
"value", os);
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
nutkWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const char *const group
Group name for atomic constants.
virtual tmp< volScalarField > nu() const =0
Return the laminar 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.
Foam::fvPatchFieldMapper.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
scalar kappa_
Von Karman constant.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
nutkRoughWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
dimensionedScalar log(const dimensionedScalar &ds)
const double e
Elementary charge.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void autoMap(const FieldMapper &map)
Map from self.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
scalarField Ks_
Roughness height.
label k
Boltzmann constant.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
dimensionedScalar pow025(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
const nearWallDist & y() const
Return the near wall distances.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
rDeltaT dimensionedInternalField()
Abstract base class for turbulence models (RAS, LES and laminar).
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
scalar Cmu_
Cmu coefficient.
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions ...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void write(Ostream &) const
Write.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Evaluates and outputs turbulence y+ for models. Values written to time directories as field 'yPlus'...
virtual label size() const
Return size.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A class for managing temporary objects.
scalarField Cs_
Roughness constant.
virtual tmp< scalarField > calcNut() const
Calculate the turbulence viscosity.
dimensionedScalar sin(const dimensionedScalar &ds)
virtual scalar fnRough(const scalar KsPlus, const scalar Cs) const
Compute the roughness function.