Skip to main content

Module wind

Module wind 

Source
Expand description

Mean wind models: constant, power law, logarithmic law and tabulated layers.

Conventions (docs/physics/wind.md):

  • A wind model returns the velocity of the air in the launch frame’s East-North-Up axes, m/s. Mean wind is horizontal, so the up component is zero.
  • Directions are meteorological: the direction the wind blows from, clockwise from true north, in radians. A 10 m/s wind from the west (3π/2) has velocity (+10, 0, 0):
v_E = −V sin θ_from,    v_N = −V cos θ_from
  • Models are queried with the geometric height above mean sea level, like the atmosphere (crate::Atmosphere). Laws written in height above ground carry the ground’s height.

Turbulence is separate: see crate::dryden.

Structs§

ConstantWind
The same wind at every height.
LayeredWind
A wind tabulated at levels, such as a sounding or a forecast, interpolated between them.
LogLawWind
A wind whose speed follows the neutral logarithmic law above ground, from one direction:
PowerLawWind
A wind whose speed grows with height above ground as a power law, from one direction:
WindLevel
One level of a LayeredWind.
WindSample
A wind velocity and whether the model extrapolated to produce it.

Enums§

WindInterpolation
How a LayeredWind fills in between its levels.
WindModel
Any of the mean wind models, tagged by model when serialized.

Traits§

Wind
A mean wind model: the wind velocity as a function of height.

Functions§

velocity_from_speed_direction
East-North-Up velocity of a horizontal wind of speed_m_s blowing from direction_from_rad.