Template Function es::most_law_speed

Function Documentation

template <typename T>
T es::most_law_speed(T const &z, const double kappa, const double d, const double z0, const double L)

Compute speed profile according to the MOST law.

Templated so that it can be called with active scalars (allows use of autodiff), doubles/floats, Eigen::Arrays (directly) or Eigen::VectorXds (via template specialisation) of z values.

MOST law speed is computed as:

TODO

Parameters
  • z: Height value(s) at which you want to get speed (m)
  • kappa: von Karman constant
  • d: Zero plane offset distance (e.g. for forest canopies) (m)
  • z0: Roughness length (m)
  • L: Monin-Obukhov length (m)