foxes.utils.abl.unstable

Functions

calc_ws(→ float | numpy.ndarray)

Calculate wind speeds at given height

psi(→ float | numpy.ndarray)

The Psi function

ustar(→ float | numpy.ndarray)

Calculates the friction velocity,

Module Contents

foxes.utils.abl.unstable.calc_ws(height: float | numpy.ndarray, z0: float | numpy.ndarray, ustar: float | numpy.ndarray, psi: float | numpy.ndarray, kappa: float = 0.41) float | numpy.ndarray[source]

Calculate wind speeds at given height

Parameters:
height

The evaluation height

z0

The roughness length

ustar

The friction velocity

psi

The Psi function values

kappa

The von Karman constant

Returns:
ws

The wind speed

foxes.utils.abl.unstable.psi(height: float | numpy.ndarray, mol: float | numpy.ndarray) float | numpy.ndarray[source]

The Psi function

Parameters:
height

The height value

mol

The Monin-Obukhov height

Returns:
psi

The Psi function value

foxes.utils.abl.unstable.ustar(ws_ref: float | numpy.ndarray, h_ref: float | numpy.ndarray, z0: float | numpy.ndarray, mol: float | numpy.ndarray, kappa: float = 0.41) float | numpy.ndarray[source]

Calculates the friction velocity, based on reference data.

Parameters:
ws_ref

The reference wind speed

h_ref

The reference height

z0

The roughness length

mol

The Monin-Obukhov height

kappa

The von Karman constant

Returns:
ustar

The friction velocity