Template Function es::most_law_speed¶
- Defined in File velocity.h
Function Documentation¶
-
template <typename T>
Tes
::
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 constantd
: Zero plane offset distance (e.g. for forest canopies) (m)z0
: Roughness length (m)L
: Monin-Obukhov length (m)