Skip to main content

atmNutkWallFunction

Description

The atmNutkWallFunction is a boundary condition that provides a wall constraint on the turbulent viscosity (i.e. nut) based on the turbulent kinetic energy (i.e. k) for atmospheric boundary layer modelling. It is designed to be used in conjunction with the atmBoundaryLayerInletVelocity boundary condition.

The governing equation of the boundary condition:

u=uκln(z+z0z0) u = \frac{u^*}{\kappa} ln \left(\frac{z + z_0}{z_0}\right)

where:

PropertyDescription
uu^*Friction velocity
κ\kappavon Karman constant
z0z_0Surface roughness length [m]
zzGround-normal coordinate

References

  • Theoretical expressions (tag:HW):
Hargreaves, D. M., & Wright, N. G. (2007).
On the use of the k–ε model in commercial CFD software to model
the neutral atmospheric boundary layer.
J. of wind engineering and industrial aerodynamics, 95(5), 355-369.
DOI:10.1016/j.jweia.2006.08.002

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type atmNutkWallFunction;
z0 <PatchFunction1<scalar>>;

// Optional entries
boundNut <bool>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: atmNutkWallFunctionwordyes-
z0Surface roughness length [m]PatchFunction1<scalar>yes-
boundNutFlag to zero-bound nut near wallboolnofalse

The inherited entries are elaborated in:

  • nutkWallFunctionFvPatchScalarField.H
  • PatchFunction1.H

Further information

Tutorial:

Source code:

API:

History: Introduced in version v2006