This class provides functions to evaluate the velocity and turbulence distributions appropriate for atmospheric boundary layers (ABL). More...

Public Member Functions | |
| atmBoundaryLayer () | |
| Construct null. More... | |
| atmBoundaryLayer (const vector &flowDir, const vector &zDir, const scalar Uref, const scalar Zref, const scalarField &z0, const scalarField &zGround, const scalar kappa=kappaDefault_, const scalar Cmu=CmuDefault_, const scalar ULower=0, const scalar kLower=0, const scalar epsilonLower=0) | |
| Construct from components. More... | |
| atmBoundaryLayer (const vectorField &p, const dictionary &) | |
| Construct from the coordinates field and dictionary. More... | |
| atmBoundaryLayer (const atmBoundaryLayer &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| atmBoundaryLayer (const atmBoundaryLayer &) | |
| Copy constructor. More... | |
| const vector & | flowDir () const |
| Return flow direction. More... | |
| const vector & | zDir () const |
| Return z-direction. More... | |
| const scalarField & | Ustar () const |
| Return friction velocity. More... | |
| void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. More... | |
| void | rmap (const atmBoundaryLayer &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. More... | |
| tmp< vectorField > | U (const vectorField &p) const |
| Return the velocity distribution for the ATM. More... | |
| tmp< scalarField > | k (const vectorField &p) const |
| Return the turbulent kinetic energy distribution for the ATM. More... | |
| tmp< scalarField > | epsilon (const vectorField &p) const |
| Return the turbulent dissipation rate distribution for the ATM. More... | |
| void | write (Ostream &) const |
| Write. More... | |
This class provides functions to evaluate the velocity and turbulence distributions appropriate for atmospheric boundary layers (ABL).
The profile is derived from the friction velocity, flow direction and "vertical" direction:
where
| = | Friction velocity |
| = | von Karman's constant |
| = | Turbulence viscosity coefficient |
| = | Vertical coordinate |
| = | Surface roughness height [m] |
| = | Minimum z-coordinate [m] |
and
where
| = | Reference velocity at [m/s] |
| = | Reference height [m] |
Use in the atmBoundaryLayerInletVelocity, atmBoundaryLayerInletK and atmBoundaryLayerInletEpsilon boundary conditions.
Reference: D.M. Hargreaves and N.G. Wright, "On the use of the k-epsilon model in commercial CFD software to model the neutral atmospheric boundary layer", Journal of Wind Engineering and Industrial Aerodynamics 95(2007), pp 355-369.
| Property | Description | Required | Default |
|---|---|---|---|
flowDir | Flow direction | yes | |
zDir | Vertical direction | yes | |
kappa | von Karman's constant | no | 0.41 |
Cmu | Turbulence viscosity coefficient | no | 0.09 |
Uref | Reference velocity [m/s] | yes | |
Zref | Reference height [m] | yes | |
z0 | Surface roughness height [m] | yes | |
zGround | Minimum z-coordinate [m] | yes | |
Ulower | Velocity below the BL | no | |
kLower | Turbulence k below the BL | no | |
epsilonLower | Turbulence epsilon below the BL | no |
Example of the boundary condition specification:
ground
{
type atmBoundaryLayerInletVelocity;
flowDir (1 0 0);
zDir (0 0 1);
Uref 10.0;
Zref 20.0;
z0 uniform 0.1;
zGround uniform 0.0;
}Definition at line 220 of file atmBoundaryLayer.H.
| atmBoundaryLayer | ( | ) |
Construct null.
Definition at line 56 of file atmBoundaryLayer.C.
Referenced by atmBoundaryLayer::atmBoundaryLayer().

| atmBoundaryLayer | ( | const vector & | flowDir, |
| const vector & | zDir, | ||
| const scalar | Uref, | ||
| const scalar | Zref, | ||
| const scalarField & | z0, | ||
| const scalarField & | zGround, | ||
| const scalar | kappa = kappaDefault_, |
||
| const scalar | Cmu = CmuDefault_, |
||
| const scalar | ULower = 0, |
||
| const scalar | kLower = 0, |
||
| const scalar | epsilonLower = 0 |
||
| ) |
Construct from components.
Definition at line 75 of file atmBoundaryLayer.C.
References atmBoundaryLayer::atmBoundaryLayer().

| atmBoundaryLayer | ( | const vectorField & | p, |
| const dictionary & | dict | ||
| ) |
Construct from the coordinates field and dictionary.
Definition at line 108 of file atmBoundaryLayer.C.
References atmBoundaryLayer::atmBoundaryLayer().

| atmBoundaryLayer | ( | const atmBoundaryLayer & | abl, |
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
atmBoundaryLayer onto a new patch
Definition at line 132 of file atmBoundaryLayer.C.
| atmBoundaryLayer | ( | const atmBoundaryLayer & | abl | ) |
Copy constructor.
Definition at line 153 of file atmBoundaryLayer.C.
|
inline |
Return flow direction.
Definition at line 323 of file atmBoundaryLayer.H.
|
inline |
Return z-direction.
Definition at line 329 of file atmBoundaryLayer.H.
|
inline |
Return friction velocity.
Definition at line 335 of file atmBoundaryLayer.H.
References atmBoundaryLayer::autoMap(), atmBoundaryLayer::epsilon(), atmBoundaryLayer::k(), atmBoundaryLayer::rmap(), atmBoundaryLayer::U(), and atmBoundaryLayer::write().

| void autoMap | ( | const fvPatchFieldMapper & | m | ) |
Map (and resize as needed) from self given a mapping object.
Definition at line 173 of file atmBoundaryLayer.C.
References atmBoundaryLayer::rmap().
Referenced by atmBoundaryLayerInletEpsilonFvPatchScalarField::autoMap(), atmBoundaryLayerInletKFvPatchScalarField::autoMap(), atmBoundaryLayerInletVelocityFvPatchVectorField::autoMap(), and atmBoundaryLayer::Ustar().


| void rmap | ( | const atmBoundaryLayer & | blptf, |
| const labelList & | addr | ||
| ) |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 182 of file atmBoundaryLayer.C.
References Field< Type >::rmap(), and atmBoundaryLayer::U().
Referenced by atmBoundaryLayer::autoMap(), atmBoundaryLayerInletKFvPatchScalarField::rmap(), atmBoundaryLayerInletEpsilonFvPatchScalarField::rmap(), atmBoundaryLayerInletVelocityFvPatchVectorField::rmap(), and atmBoundaryLayer::Ustar().


| Foam::tmp< Foam::vectorField > U | ( | const vectorField & | p | ) | const |
Return the velocity distribution for the ATM.
Definition at line 194 of file atmBoundaryLayer.C.
References atmBoundaryLayer::k(), Foam::log(), and Foam::max().
Referenced by atmBoundaryLayer::rmap(), waveAtmBoundaryLayerSuperposition::UGas(), and atmBoundaryLayer::Ustar().


| Foam::tmp< Foam::scalarField > k | ( | const vectorField & | p | ) | const |
Return the turbulent kinetic energy distribution for the ATM.
Definition at line 216 of file atmBoundaryLayer.C.
References atmBoundaryLayer::epsilon(), Foam::neg(), Foam::pos0(), tmp< T >::ref(), Foam::sqr(), and Foam::sqrt().
Referenced by atmBoundaryLayer::U(), and atmBoundaryLayer::Ustar().


| Foam::tmp< Foam::scalarField > epsilon | ( | const vectorField & | p | ) | const |
Return the turbulent dissipation rate distribution for the ATM.
Definition at line 236 of file atmBoundaryLayer.C.
References Foam::neg(), Foam::pos0(), Foam::pow3(), and tmp< T >::ref().
Referenced by atmBoundaryLayer::k(), and atmBoundaryLayer::Ustar().


| void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 255 of file atmBoundaryLayer.C.
References Foam::writeEntry().
Referenced by atmBoundaryLayer::Ustar(), atmBoundaryLayerInletEpsilonFvPatchScalarField::write(), atmBoundaryLayerInletKFvPatchScalarField::write(), and atmBoundaryLayerInletVelocityFvPatchVectorField::write().

