Go to the documentation of this file.
45 const label patchi =
patch().index();
47 const auto& turbModel =
53 internalField().
group()
65 auto&
nutw = tnutw.ref();
72 const scalar t = db().time().timeOutputValue();
76 for (
const scalar z : z0)
81 <<
"z0 field can only contain positive values. "
82 <<
"Please check input field z0."
95 const scalar Edash = (
y[facei] + z0[facei])/(z0[facei] + z0Min_);
104 const scalar
tauw = uStarU*uStarK;
138 z0_(ptf.z0_.clone(
p.patch()))
169 z0Min_(rwfpsf.z0Min_),
170 z0_(rwfpsf.z0_.clone(this->patch().patch()))
181 z0Min_(rwfpsf.z0Min_),
182 z0_(rwfpsf.z0_.clone(this->patch().patch()))
193 nutkWallFunctionFvPatchScalarField::autoMap(m);
204 nutkWallFunctionFvPatchScalarField::rmap(ptf, addr);
207 refCast<const atmNutWallFunctionFvPatchScalarField>(ptf);
209 z0_->rmap(nrwfpsf.z0_(), addr);
217 os.writeEntry(
"z0Min", z0Min_);
219 writeEntry(
"value",
os);
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void write(Ostream &) const
Write.
virtual tmp< scalarField > calcNut() const
Calculate the turbulent viscosity.
constexpr const char *const group
Group name for atomic constants.
A class for managing temporary objects.
static const word propertiesName
Default name of the turbulence properties dictionary.
#define forAll(list, i)
Loop across all elements in list.
scalar kappa_
von Kármán constant
dimensionedScalar pow025(const dimensionedScalar &ds)
Bound the given scalar field if it has gone unbounded.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
T getCheckOrDefault(const word &keyword, const T &deflt, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX) const
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).
atmNutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar log(const dimensionedScalar &ds)
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...
scalar Cmu_
Empirical model coefficient.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
static MinMax< T > ge(const T &minVal)
A semi-infinite range from minVal to the type max.
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label k
Boltzmann constant.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
This boundary condition provides a wall constraint on the turbulent viscosity (i.e....
virtual void write(Ostream &) const
Write.
Smooth ATC in cells next to a set of patches supplied by type.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This boundary condition provides a wall constraint on the turbulent viscosity, i.e....