83#ifndef nutURoughWallFunctionFvPatchScalarField_H
84#define nutURoughWallFunctionFvPatchScalarField_H
106 scalar roughnessHeight_;
109 scalar roughnessConstant_;
112 scalar roughnessFactor_;
116 const label maxIter_;
119 const scalar tolerance_;
125 virtual tmp<scalarField>
calcNut()
const;
131 void writeLocalEntries(Ostream&)
const;
204 return roughnessHeight_;
210 return roughnessHeight_;
216 return roughnessConstant_;
222 return roughnessConstant_;
228 return roughnessFactor_;
235 return roughnessFactor_;
242 virtual tmp<scalarField>
yPlus()
const;
248 virtual void write(Ostream&
os)
const;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wall function on the turbulent viscosity (i.e. nut) based on veloc...
nutURoughWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
scalar & roughnessConstant() noexcept
Return reference to the roughness constant to allow adjustment.
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
TypeName("nutURoughWallFunction")
Runtime type information.
virtual tmp< fvPatchField< scalar > > clone(const DimensionedField< scalar, volMesh > &iF) const
Clone with an internal field reference.
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.
scalar & roughnessHeight() noexcept
Return reference to the roughness height to allow adjustment.
scalar & roughnessFactor() noexcept
Return reference to the roughness scale factor to allow adjustment.
scalar roughnessHeight() const noexcept
Return the roughness height.
scalar roughnessFactor() const noexcept
Return the roughness scale factor.
scalar roughnessConstant() const noexcept
Return the roughness constant scale.
The class nutWallFunction is an abstract base class that hosts calculation methods and common functi...
virtual tmp< scalarField > calcNut() const =0
Calculate the turbulent viscosity.
nutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.