121 #ifndef atmosphericBoundaryLayer_H
122 #define atmosphericBoundaryLayer_H
137 class atmosphericBoundaryLayer
144 static const scalar kappaDefault_;
147 static const scalar CmuDefault_;
174 autoPtr<Function2<scalar>> z0_;
177 autoPtr<Function2<scalar>> zGround_;
183 const scalar Ulower_;
186 const scalar kLower_;
190 const scalar epsilonLower_;
196 TypeName(
"atmosphericBoundaryLayer");
269 void write(Ostream&)
const;
const objectRegistry & db() const
Return the local objectRegistry.
TypeName("atmosphericBoundaryLayer")
Runtime type information.
tmp< scalarField > z0(const vectorField &C) const
Return surface roughness height.
scalar kappa() const
Von Karman constant.
atmosphericBoundaryLayer(const objectRegistry &obr)
Read construct from objectRegistry.
static const atmosphericBoundaryLayer & New(const objectRegistry &db)
Return a reference to the atmosphericBoundaryLayer.
const vector & flowDir() const
Return flow direction.
static const word dictName
The name of the dictionary.
const vector & zDir() const
Return z-direction.
tmp< scalarField > Ustar(const scalarField &z0) const
Return friction velocity.
tmp< vectorField > U(const vectorField &p) const
Return the velocity field.
virtual bool write(const bool write=true) const
Inherit write from regIOobject.
scalar Cmu() const
Turbulent viscosity coefficient.
tmp< scalarField > k(const vectorField &p) const
Return the turbulent kinetic energy field.
tmp< scalarField > epsilon(const vectorField &p) const
Return the turbulent dissipation rate field.
virtual bool write(const bool write=true) const
Write using setting from DB.
static const coefficient C("C", dimTemperature, 234.5)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Vector< scalar > vector
A scalar version of the templated Vector.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Specialisations of Field<T> for scalar, vector and tensor.