48 internalField().
group()
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];
76 Info<<
"yPlus = " << yPlus
77 <<
", Edash = " << Edash
78 <<
", nutw = " << nutw[facei]
158 nutkWallFunctionFvPatchScalarField::autoMap(m);
169 nutkWallFunctionFvPatchScalarField::rmap(ptf, addr);
172 refCast<const nutkAtmRoughWallFunctionFvPatchScalarField>(ptf);
183 writeEntry(
"value", os);
const char *const group
Group name for atomic constants.
nutkAtmRoughWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar log(const dimensionedScalar &ds)
const double e
Elementary charge.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pow025(const dimensionedScalar &ds)
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
label k
Boltzmann constant.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
static const word propertiesName
Default name of the turbulence properties dictionary.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
scalar kappa_
Von Karman constant.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
virtual tmp< scalarField > calcNut() const
Calculate the turbulence viscosity.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
virtual void write(Ostream &) const
Write.
scalarField z0_
Surface roughness length.
scalar Cmu_
Cmu coefficient.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
This boundary condition provides a turbulent kinematic viscosity for atmospheric velocity profiles...
const nearWallDist & y() const
Return the near wall distances.
nutkWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.