This MODULE contains the SUBROUTINE comp_friction_vel and two
FUNCTIONS (psim and psis) needed to
evaluate the friction velocity over each land point/tile
given the wind speed and the current estimate of the Monin-Obukhov
stability parameter . Outputs friction_vel, psim and
psis are used in define_canopy.
Evaluates the integrated similarity function for momentum transfer, .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in), | DIMENSION(mp) | :: | zeta | current value of stability parameter (-) | |
| integer, | intent(in) | :: | mp | size of cable vector of land points (-) | ||
| real, | intent(in) | :: | CPI_C | (-) | 
Evaluates the integrated similarity function for turbulent transfer of scalars, .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | zeta | current value of stability parameter (-) | 
OUT
This SUBROUTINE evaluates the value of the friction velocity  as used
 during the iteration loop of the Monin-Obukhov (MO) similarity theory in
 define_canopy.  is used when quantifying the stability
 parameter canopy%zetar in update_zetar, and when evaluating the
 resistance network components rt0 and rt1 in define_canopy.
 The friction velocity quantifies the magnitude of turbulent mixing that
 is occurring as well as the flux of momentum from the atmosphere to
 the land.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(out) | :: | friction_vel(mp) | friction velocity (ms) | ||
| integer, | intent(in) | :: | iter | MO iteration counter (-) | ||
| integer, | intent(in) | :: | mp | size of cable vector of land points (-) | ||
| real, | intent(in) | :: | CVONK | von Karman constant (-) | ||
| real, | intent(in) | :: | CUMIN | minimum value of wind speed (ms) | ||
| real, | intent(in) | :: | CPI_C | (-) | ||
| real, | intent(in) | :: | zetar(mp,iter) | stability parameter - see update_zetar  | ||
| real, | intent(in) | :: | zref_uv(mp) | reference height for wind  | ||
| real, | intent(in) | :: | zref_tq(mp) | reference height for temperature and humidity  | ||
| real, | intent(in) | :: | z0m(mp) | roughness length  | ||
| real, | intent(in) | :: | ua(mp) | wind speed  |