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_))
91 fixedValueFvPatchScalarField(p, iF, dict),
95 yPlusLam_(yPlusLam(kappa_, E_))
109 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
125 fixedValueFvPatchScalarField(wfpsf, iF),
145 refCast<const nutWallFunctionFvPatchScalarField>
147 turbModel.
nut()().boundaryField()[
patchi]
160 for (
int i=0; i<10; i++)
184 fixedValueFvPatchScalarField::updateCoeffs();
191 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.
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.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
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.