Go to the documentation of this file.
41 const label patchi =
patch().index();
48 internalField().
group()
65 const scalar nutVis = 0.0;
85 const label patchi =
patch().index();
92 internalField().
group()
104 const scalar kappaRe = kappa_*
magUp[facei]*
y[facei]/nuw[facei];
106 scalar yp = yPlusLam_;
107 const scalar ryPlusLam = 1.0/yp;
110 scalar yPlusLast = 0.0;
115 yp = (kappaRe + yp)/(1.0 +
log(E_*yp));
117 }
while (
mag(ryPlusLam*(yp - yPlusLast)) > 0.01 && ++iter < 10 );
185 const label patchi =
patch().index();
191 internalField().
group()
197 return calcYPlus(
magUp);
207 writeLocalEntries(os);
208 writeEntry(
"value", os);
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
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.
constexpr const char *const group
Group name for atomic constants.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual const volVectorField & U(const turbulenceModel &turb) const
const nearWallDist & y() const
Return the near wall distances.
#define forAll(list, i)
Loop across all elements in list.
scalar kappa_
von Kármán constant
nutUWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar E_
Wall roughness parameter.
dimensionedScalar log(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
virtual tmp< scalarField > calcYPlus(const scalarField &magUp) const
Calculate yPlus.
This boundary condition provides a wall constraint on the turbulent viscosity, i.e....
scalar blend(const scalar nutVis, const scalar nutLog, const scalar yPlus) const
Return the blended nut according to the chosen blending treatment.
const std::string patch
OpenFOAM patch number as a std::string.
virtual tmp< scalarField > calcNut() const
Calculate the turbulent viscosity.
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar e
Elementary charge.
virtual void write(Ostream &os) const
Write.
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
The class nutWallFunction is a base class that parents the derived boundary conditions which provide ...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...