40 const label patchi =
patch().index();
47 internalField().
group()
65 /(magGradU + ROOTVSMALL)
78 auto&
uPlus = tuPlus.ref();
82 uPlus[facei] = uPlusTable_.interpolateLog10(
Rey[facei]);
108 uPlusTableName_(
"undefined-uPlusTableName"),
135 uPlusTableName_(ptf.uPlusTableName_),
136 uPlusTable_(ptf.uPlusTable_)
173 uPlusTableName_(wfpsf.uPlusTableName_),
174 uPlusTable_(wfpsf.uPlusTable_)
186 uPlusTableName_(wfpsf.uPlusTableName_),
187 uPlusTable_(wfpsf.uPlusTable_)
196 const label patchi =
patch().index();
203 internalField().
group()
217 return Rey/(calcUPlus(
Rey) + ROOTVSMALL);
227 writeLocalEntries(
os);
239 nutUTabulatedWallFunctionFvPatchScalarField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
This boundary condition provides a wall constraint on the turbulent viscosity (i.e. nut) based on velocity (i.e. U), for low- and high-Reynolds number applications.
virtual void write(Ostream &os) const
Write.
virtual tmp< scalarField > yPlus() const
Calculate and return the yPlus at the boundary.
virtual const volVectorField & U(const turbulenceModel &turb) const
Helper to return the velocity field either from the turbulence model (default) or the mesh database...
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
tmp< scalarField > calcUPlus(const scalarField &Rey) const
Calculate wall u+ from table.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
constexpr const char *const group
Group name for atomic constants.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
The class nutWallFunction is an abstract base class that hosts calculation methods and common functi...
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch.
OBJstream os(runTime.globalPath()/outputName)
nutUTabulatedWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual tmp< scalarField > calcNut() const
Calculate the turbulent viscosity.
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...
const std::string patch
OpenFOAM patch number as a std::string.
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
static constexpr const zero Zero
Global zero (0)