42 if (!isA<wallFvPatch>(
patch()))
45 <<
"Invalid wall function specification" <<
nl 46 <<
" Patch type for patch " <<
patch().
name()
47 <<
" must be wall" <<
nl 48 <<
" Current patch type is " <<
patch().type() <<
nl <<
endl 64 for (
int i=0; i<10; i++)
198 scalar
uTau = Cmu25*
sqrt(k[faceCelli]);
200 scalar
yPlus = uTau*y[facei]/nuw[facei];
211 scalar Cf = (1.0/
sqr(yPlus + C) + 2.0*yPlus/
pow3(C) - 1.0/
sqr(C));
215 kw[facei] *=
sqr(uTau);
const fvPatch & patch() const
Return patch.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field, sets Updated to false.
const char *const group
Group name for atomic constants.
Graphite solid properties.
virtual void checkType()
Check the type of the patch.
#define forAll(list, i)
Loop across all elements in list.
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)
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.
virtual void write(Ostream &) const
Write.
commsTypes
Types of communications.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
This boundary condition provides a turbulence kinetic energy wall function condition for low- and hig...
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
const word & name() const
Return name.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pow025(const dimensionedScalar &ds)
virtual void evaluate(const Pstream::commsTypes)
Evaluate the patchField.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
label k
Boltzmann constant.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
static const word propertiesName
Default name of the turbulence properties dictionary.
static word groupName(Name name, const word &group)
Foam::fvPatchFieldMapper.
bool updated() const
Return true if the boundary condition has already been updated.
scalar Cmu_
Cmu coefficient.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual const labelUList & faceCells() const
Return faceCells.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const objectRegistry & db() const
Return local objectRegistry.
label index() const
Return the index of this patch in the fvBoundaryMesh.
dimensionedScalar pow3(const dimensionedScalar &ds)
scalar yPlusLam_
Y+ at the edge of the laminar sublayer.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
scalar kappa_
Von Karman constant.
A class for managing temporary objects.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
scalar Ceps2_
Ceps2 coefficient.
kLowReWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const nearWallDist & y() const
Return the near wall distances.
const DimensionedField< Type, volMesh > & internalField() const
Return dimensioned internal field reference.
virtual void write(Ostream &) const
Write.
scalar yPlusLam(const scalar kappa, const scalar E)
Calculate the Y+ at the edge of the laminar sublayer.