96 #ifndef nutUSpaldingWallFunctionFvPatchScalarField_H 97 #define nutUSpaldingWallFunctionFvPatchScalarField_H 110 class nutUSpaldingWallFunctionFvPatchScalarField
112 public nutWallFunctionFvPatchScalarField
134 virtual tmp<scalarField>
calcNut()
const;
155 TypeName(
"nutUSpaldingWallFunction");
230 virtual tmp<scalarField>
yPlus()
const;
236 virtual void write(Ostream&
os)
const;
void writeLocalEntries(Ostream &) const
Write local wall function variables.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wall function for the turbulent viscosity (i.e. nut) based on velocity (i.e. U). Using Spalding's law gives a continuous nut profile to the wall.
tmp< scalarField > calcUTau(const scalarField &magGradU) const
Calculate the friction velocity.
nutUSpaldingWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void write(Ostream &os) const
Write.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual tmp< scalarField > calcNut() const
Uncomment in case of intrumentation.
OBJstream os(runTime.globalPath()/outputName)
const scalar tolerance_
Convergence tolerance.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
A class for managing temporary objects.
TypeName("nutUSpaldingWallFunction")
Runtime type information.
virtual ~nutUSpaldingWallFunctionFvPatchScalarField()
Destructor.
const label maxIter_
Max iterations in calcNut.