66 label faceCellI = patch().faceCells()[faceI];
68 scalar
yPlus = Cmu25*y[faceI]*
sqrt(k[faceCellI])/nuw[faceI];
72 nutw[faceI] = nuw[faceI]*(yPlus*
kappa_/
log(
E_*yPlus) - 1.0);
dimensionedScalar sqrt(const dimensionedScalar &ds)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
nutkWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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.
virtual tmp< scalarField > calcNut() 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.
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.
scalar kappa_
Von Karman constant.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions...
dimensionedScalar log(const dimensionedScalar &ds)
label k
Boltzmann constant.
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).
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
scalar Cmu_
Cmu coefficient.
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
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.