Go to the documentation of this file.
64 const scalar Cmu75 =
pow(nutw.
Cmu(), 0.75);
70 for (
const auto& z : z0)
75 <<
"z0 field can only contain positive values. "
76 <<
"Please check input field z0."
89 const scalar
yPlus = Cmu25*
y[facei]*
sqrt(
k[celli])/nuw[facei];
91 const scalar w = cornerWeights[facei];
95 w*Cmu75*
pow(
k[celli], 1.5)/(nutw.
kappa()*(
y[facei] + z0[facei]));
99 *(nutw[facei] + nuw[facei])
101 *Cmu25*
sqrt(
k[celli])
102 /(nutw.
kappa()*(
y[facei] + z0[facei]));
106 epsilonc = w*2.0*
k[celli]*nuw[facei]/
sqr(
y[facei] + z0[facei]);
141 z0_(ptf.z0_.clone(
p.
patch()))
202 refCast<const atmEpsilonWallFunctionFvPatchScalarField>(ptf);
204 z0_->rmap(atmpsf.
z0_(), addr);
225 atmEpsilonWallFunctionFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
scalar timeOutputValue() const
virtual tmp< Field< Type > > snGrad() const
virtual tmp< volScalarField > nu() const =0
virtual void autoMap(const fvPatchFieldMapper &)
autoPtr< PatchFunction1< scalar > > z0_
A class for managing temporary objects.
const nearWallDist & y() const
const dimensionedScalar epsilon0
dimensionedScalar pow025(const dimensionedScalar &ds)
Generic templated field type.
const dimensionedScalar G0
This boundary condition provides a wall constraint on the turbulent kinetic energy dissipation rate (...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wall constraint on the turbulent kinetic energy dissipation rate,...
const bool lowReCorrection_
virtual void write(Ostream &) const
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Abstract base class for turbulence models (RAS, LES and laminar).
virtual void rmap(const fvPatchField< Type > &, const labelList &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual tmp< volScalarField > k() const =0
static scalar yPlusLam(const scalar kappa, const scalar E)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
#define FatalErrorInFunction
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const objectRegistry & db() const
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
virtual const labelUList & faceCells() const
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
virtual void rmap(const fvPatchScalarField &, const labelList &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Generic GeometricField class.
The class nutWallFunction is a base class that parents the derived boundary conditions which provide ...
virtual void write(Ostream &) const
Smooth ATC in cells next to a set of patches supplied by type.
virtual void autoMap(const fvPatchFieldMapper &)
const Time & time() const noexcept
virtual void calculate(const turbulenceModel &turbulence, const List< scalar > &cornerWeights, const fvPatch &patch, scalarField &G, scalarField &epsilon)
atmEpsilonWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
const Boundary & boundaryField() const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const volVectorField & U() const