Go to the documentation of this file.
32 template<
class TurbulenceModel>
57 if (isA<nutWallFunctionFvPatchScalarField>(nutBf[
patchi]))
68 const scalar minYplus =
gMin(yPlusp);
69 const scalar maxYplus =
gMax(yPlusp);
70 const scalar avgYplus =
gAverage(yPlusp);
72 if (log_)
Info<<
" patch " << patch.
name()
73 <<
" y+ : min = " << minYplus <<
", max = " << maxYplus
74 <<
", average = " << avgYplus <<
nl;
78 << token::TAB << patch.
name()
79 << token::TAB << minYplus
80 << token::TAB << maxYplus
81 << token::TAB << avgYplus
84 else if (isA<wallFvPatch>(patch))
95 const scalar minYplus =
gMin(yPlusp);
96 const scalar maxYplus =
gMax(yPlusp);
97 const scalar avgYplus =
gAverage(yPlusp);
100 <<
" patch " << patch.
name()
101 <<
" y+ : min = " << minYplus <<
", max = " << maxYplus
102 <<
", average = " << avgYplus <<
nl;
106 << token::TAB << patch.
name()
107 << token::TAB << minYplus
108 << token::TAB << maxYplus
109 << token::TAB << avgYplus
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
Type gAverage(const FieldField< Field, Type > &f)
virtual tmp< scalarField > yPlus() const =0
Calculate and return the yPlus at the boundary.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
const word & name() const
Return name.
Templated abstract base class for turbulence models.
Pre-declare SubField and related Field type.
const volScalarField::GeometricBoundaryField & y() const
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Abstract base class for turbulence models (RAS, LES and laminar).
cellIbMask *cellIbMaskExt *faceIbMask *cellIbMask boundaryField().evaluateCoupled()
Mesh data needed to do the Finite Volume discretisation.
dimensionedScalar sqrt(const dimensionedScalar &ds)
This function object evaluates and outputs turbulence y+ for turbulence models. The field is stored o...
Distance calculation for cells with face on a wall. Searches pointNeighbours to find closest.
Type gMin(const FieldField< Field, Type > &f)
Generic GeometricField class.
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity.
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions,...
Type gMax(const FieldField< Field, Type > &f)
const volVectorField & U() const
Access function to velocity field.
void calcYPlus(const TurbulenceModel &turbulenceModel, const fvMesh &mesh, volScalarField &yPlus)
Calculate y+.