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();
192 internalField().
group()
213 if (yPlusLam_ >
yPlus[facei])
217 y[facei]*
sqrt(nuEff[facei]*magGradUw[facei])/nuw[facei];
231 writeLocalEntries(
os);
232 writeEntry(
"value",
os);
243 nutUWallFunctionFvPatchScalarField
virtual tmp< scalarField > yPlus() const
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
virtual tmp< Field< Type > > snGrad() const
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual tmp< volScalarField > nu() const =0
constexpr const char *const group
A class for managing temporary objects.
static constexpr const zero Zero
static const word propertiesName
virtual const volVectorField & U(const turbulenceModel &turb) const
const nearWallDist & y() const
nutUWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Generic templated field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > patchInternalField() const
label max(const labelHashSet &set, label maxValue=labelMin)
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,...
dimensionedScalar log(const dimensionedScalar &ds)
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual tmp< scalarField > calcYPlus(const scalarField &magUp) const
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
virtual tmp< scalarField > calcNut() const
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar e
virtual void write(Ostream &os) const
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
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
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...