67 nuw[facei]*(yPlus[facei]*
kappa_/
log(
E_*yPlus[facei]) - 1.0);
99 scalar kappaRe =
kappa_*magUp[facei]*y[facei]/nuw[facei];
102 scalar ryPlusLam = 1.0/yp;
105 scalar yPlusLast = 0.0;
110 yp = (kappaRe + yp)/(1.0 +
log(
E_*yp));
112 }
while (
mag(ryPlusLam*(yp - yPlusLast)) > 0.01 && ++iter < 10 );
114 yPlus[facei] =
max(0.0, yp);
199 writeEntry(
"value", os);
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...
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
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.
virtual tmp< scalarField > calcNut() const
Calculate the turbulence viscosity.
Foam::fvPatchFieldMapper.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar yPlusLam_
Y+ at the edge of the laminar sublayer.
virtual void write(Ostream &) const
Write.
virtual tmp< scalarField > calcYPlus(const scalarField &magUp) const
Calculate yPLus.
scalar kappa_
Von Karman constant.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
dimensionedScalar log(const dimensionedScalar &ds)
virtual void write(Ostream &os) const
Write.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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).
nutUWallFunctionFvPatchScalarField(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.
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.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const volVectorField & U() const
Access function to velocity field.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions...
Evaluates and outputs turbulence y+ for models. Values written to time directories as field 'yPlus'...
nutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for managing temporary objects.