Go to the documentation of this file.
47 if (!isA<wallFvPatch>(
patch()))
50 <<
"Invalid wall function specification" <<
nl
51 <<
" Patch type for patch " <<
patch().name()
52 <<
" must be wall" <<
nl
53 <<
" Current patch type is " <<
patch().type() <<
nl <<
endl
99 fixedValueFvPatchScalarField(
p, iF),
104 yPlusLam_(yPlusLam(kappa_, E_))
118 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
136 fixedValueFvPatchScalarField(
p, iF,
dict),
141 yPlusLam_(yPlusLam(kappa_, E_))
152 fixedValueFvPatchScalarField(wfpsf),
169 fixedValueFvPatchScalarField(wfpsf, iF),
190 refCast<const nutWallFunctionFvPatchScalarField>
192 turbModel.
nut()().boundaryField()[patchi],
206 for (
int i = 0; i < 10; ++i)
230 fixedValueFvPatchScalarField::updateCoeffs();
240 writeLocalEntries(os);
241 writeEntry(
"value", os);
nutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
A class for handling words, derived from Foam::string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
scalar yPlusLam_
Estimated y+ value at the edge of the viscous sublayer.
virtual const volVectorField & U(const turbulenceModel &turb) const
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
scalar kappa_
Von Karman constant.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
virtual void write(Ostream &) const
Write.
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,...
dimensionedScalar log(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
scalar Cmu_
Cmu coefficient.
word UName_
Name of velocity field.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
static const word null
An empty word.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
The class nutWallFunction is a base class that parents the derived boundary conditions which provide ...
compressible::turbulenceModel & turb
defineTypeNameAndDebug(combustionModel, 0)
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
scalar yPlusLam() const
Return the y+ at the edge of the viscous sublayer.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void checkType()
Check the type of the patch.