Go to the documentation of this file.
53 kappa_(
dict.lookupOrDefault<scalar>(
"kappa", 0.41)),
54 Cmu_(
dict.lookupOrDefault<scalar>(
"Cmu", 0.09)),
57 z0_(
"z0",
dict,
p.size()),
58 zGround_(
"zGround",
dict,
p.size()),
64 <<
"magnitude of n or z must be greater than zero"
96 flowDir_(blpvf.flowDir_),
103 zGround_(blpvf.zGround_),
124 z0_.rmap(blptf.
z0_, addr);
125 zGround_.rmap(blptf.
zGround_, addr);
126 Ustar_.rmap(blptf.
Ustar_, addr);
const scalar kappa_
Von Karman constant.
vector zDir_
Direction of the z-coordinate.
A class for managing temporary objects.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
const scalar Uref_
Reference velocity.
tmp< vectorField > U(const vectorField &p) const
Return the velocity distribution for the ATM.
scalarField Ustar_
Friction velocity.
This class provides functions to evaluate the velocity and turbulence distributions appropriate for a...
scalarField z0_
Surface roughness height.
dimensioned< scalar > mag(const dimensioned< Type > &)
vector flowDir_
Flow direction.
tmp< scalarField > k(const vectorField &p) const
Return the turbulent kinetic energy distribution for the ATM.
void write(Ostream &) const
Write.
Pre-declare SubField and related Field type.
scalarField zGround_
Minimum coordinate value in z direction.
dimensionedScalar pow3(const dimensionedScalar &ds)
atmBoundaryLayer()
Construct null.
const scalar Cmu_
Turbulent viscosity coefficient.
A list of keyword definitions, which are a keyword followed by any number of values (e....
dimensionedScalar log(const dimensionedScalar &ds)
errorManip< error > abort(error &err)
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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)
Traits class for primitives.
tmp< scalarField > epsilon(const vectorField &p) const
Return the turbulent dissipation rate distribution for the ATM.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
stressControl lookup("compactNormalStress") >> compactNormalStress
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
const scalar Zref_
Reference height.