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()))
152 dict.getCheckOrDefault<scalar>
169 z0Min_(rwfpsf.z0Min_),
181 z0Min_(rwfpsf.z0Min_),
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);
228 atmNutWallFunctionFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void rmap(const fvPatchScalarField &, const labelList &)
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
virtual tmp< scalarField > calcNut() const
constexpr const char *const group
A class for managing temporary objects.
static const word propertiesName
dimensionedScalar pow025(const dimensionedScalar &ds)
Generic templated field type.
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
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)
Abstract base class for turbulence models (RAS, LES and laminar).
atmNutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
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...
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
static MinMax< T > ge(const T &minVal)
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static tmp< T > New(Args &&... args)
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
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....
Generic GeometricField class.
virtual void write(Ostream &) const
Smooth ATC in cells next to a set of patches supplied by type.
A min/max value pair with additional methods. In addition to conveniently storing values,...
virtual void autoMap(const fvPatchFieldMapper &)
virtual void writeLocalEntries(Ostream &) const
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....