Go to the documentation of this file.
64 label faceCellI = patch().faceCells()[faceI];
66 scalar uStar = Cmu25*
sqrt(
k[faceCellI]);
67 scalar
yPlus = uStar*
y[faceI]/nuw[faceI];
69 scalar Edash = (
y[faceI] +
z0_[faceI])/
z0_[faceI];
77 <<
", Edash = " << Edash
78 <<
", nutw = " << nutw[faceI]
124 z0_(
"z0",
dict,
p.size())
158 nutkWallFunctionFvPatchScalarField::autoMap(m);
169 nutkWallFunctionFvPatchScalarField::rmap(ptf, addr);
172 refCast<const nutkAtmRoughWallFunctionFvPatchScalarField>(ptf);
174 z0_.rmap(nrwfpsf.
z0_, addr);
183 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
static word groupName(Name name, const word &group)
virtual tmp< scalarField > calcNut() const
Calculate the turbulence viscosity.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
rDeltaT dimensionedInternalField()
nutkAtmRoughWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
static const word propertiesName
Default name of the turbulence properties dictionary.
const char *const group
Group name for atomic constants.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const nearWallDist & y() const
Return the near wall distances.
scalar kappa_
Von Karman constant.
dimensionedScalar pow025(const dimensionedScalar &ds)
This boundary condition provides a turbulent kinematic viscosity for atmospheric velocity profiles....
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void write(Ostream &) const
Write.
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by any number of values (e....
dimensionedScalar log(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
scalar Cmu_
Cmu coefficient.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
const double e
Elementary charge.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
This function object evaluates and outputs turbulence y+ for turbulence models. The field is stored o...
label k
Boltzmann constant.
scalarField z0_
Surface roughness length.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
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...
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions,...