43 if (!isA<wallFvPatch>(patch()))
46 <<
"Invalid wall function specification" <<
nl 47 <<
" Patch type for patch " << patch().name()
48 <<
" must be wall" <<
nl 49 <<
" Current patch type is " << patch().type() <<
nl <<
endl 74 fixedValueFvPatchScalarField(p, iF),
78 yPlusLam_(yPlusLam(kappa_, E_))
92 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
109 fixedValueFvPatchScalarField(p, iF, dict),
113 yPlusLam_(yPlusLam(kappa_, E_))
124 fixedValueFvPatchScalarField(wfpsf),
140 fixedValueFvPatchScalarField(wfpsf, iF),
160 refCast<const nutWallFunctionFvPatchScalarField>
162 turbModel.
nut()().boundaryField()[
patchi]
175 for (
int i=0; i<10; i++)
199 fixedValueFvPatchScalarField::updateCoeffs();
206 writeLocalEntries(os);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar & kappa
Coulomb constant: default SI units: [N.m2/C2].
dimensionedScalar log(const dimensionedScalar &ds)
scalar yPlusLam() const
Return the Y+ at the edge of the laminar sublayer.
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
static const nutWallFunctionFvPatchScalarField & nutw(const momentumTransportModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
This boundary condition provides a turbulent kinematic viscosity condition when using wall functions...
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Foam::fvPatchFieldMapper.
errorManip< error > abort(error &err)
scalar kappa_
Von Karman constant.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
defineTypeNameAndDebug(combustionModel, 0)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Abstract base class for turbulence models (RAS, LES and laminar).
virtual void checkType()
Check the type of the patch.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
scalar Cmu_
Cmu coefficient.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
nutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
scalar yPlusLam_
Y+ at the edge of the laminar sublayer.