75 #ifndef nutkRoughWallFunctionFvPatchScalarField_H 76 #define nutkRoughWallFunctionFvPatchScalarField_H 89 class nutkRoughWallFunctionFvPatchScalarField
91 public nutkWallFunctionFvPatchScalarField
107 virtual scalar
fnRough(
const scalar KsPlus,
const scalar
Cs)
const;
199 virtual void autoMap(
const fvPatchFieldMapper&);
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalarField & Cs()
Return Cs.
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wall-function for the turbulent viscosity (i.e. nut) when using wall functions for rough walls, based on the turbulent kinetic energy (i.e. k). The condition manipulates the wall roughness parameter (i.e. E) to account for roughness effects.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
void writeLocalEntries(Ostream &os) const
Write local wall function variables.
fvPatchField< scalar > fvPatchScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
scalarField Cs_
Roughness constant.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
nutkRoughWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
OBJstream os(runTime.globalPath()/outputName)
virtual tmp< scalarField > calcNut() const
Calculate the turbulent viscosity.
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.
scalarField Ks_
Roughness height.
TypeName("nutkRoughWallFunction")
Runtime type information.
scalarField & Ks()
Return Ks.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
List< label > labelList
A List of labels.
A class for managing temporary objects.
virtual scalar fnRough(const scalar KsPlus, const scalar Cs) const
Compute the roughness function.