5#include <janus/janus.hpp>
128 constexpr double M_TO_FT = 3.28084;
129 constexpr double FT_TO_M = 0.3048;
130 double h_ft = altitude * M_TO_FT;
151 h_ft = std::max(h_ft, 10.0);
154 double denom = std::pow(0.177 + 0.000823 * h_ft, 1.2);
155 params.
L_w = h_ft * FT_TO_M;
156 params.
L_u = (h_ft / denom) * FT_TO_M;
161 double denom2 = std::pow(0.177 + 0.000823 * h_ft, 0.4);
Definition WindTypes.hpp:95
constexpr double W20_LIGHT
Wind speed at 20 ft for different turbulence severities (MIL-HDBK-1797).
Definition WindTypes.hpp:98
constexpr double W20_MODERATE
Definition WindTypes.hpp:99
constexpr double W20_SEVERE
Definition WindTypes.hpp:100
Definition WindTypes.hpp:7
TurbulenceSeverity
Turbulence severity levels per MIL-HDBK-1797.
Definition WindTypes.hpp:85
@ Moderate
σ_w ≈ 3 m/s at low altitude
Definition WindTypes.hpp:87
@ Light
σ_w ≈ 1 m/s at low altitude
Definition WindTypes.hpp:86
@ Severe
σ_w ≈ 7 m/s at low altitude
Definition WindTypes.hpp:88
TurbulenceParams< double > mil_spec_params(double altitude, TurbulenceSeverity severity)
Compute MIL-spec turbulence parameters for given conditions.
Definition WindTypes.hpp:125
Angular gust rates in body frame.
Definition WindTypes.hpp:57
Scalar p_g
Roll gust rate [rad/s].
Definition WindTypes.hpp:58
Scalar r_g
Yaw gust rate [rad/s].
Definition WindTypes.hpp:60
Scalar q_g
Pitch gust rate [rad/s].
Definition WindTypes.hpp:59
Turbulent gust velocities in body frame.
Definition WindTypes.hpp:46
Scalar w_g
Vertical gust [m/s] (along body z-axis).
Definition WindTypes.hpp:49
Scalar v_g
Lateral gust [m/s] (along body y-axis).
Definition WindTypes.hpp:48
Scalar u_g
Longitudinal gust [m/s] (along body x-axis).
Definition WindTypes.hpp:47
Turbulence intensity and scale parameters (MIL-F-8785C).
Definition WindTypes.hpp:73
Scalar sigma_u
Longitudinal RMS intensity [m/s].
Definition WindTypes.hpp:74
Scalar sigma_v
Lateral RMS intensity [m/s].
Definition WindTypes.hpp:75
Scalar L_w
Vertical scale length [m].
Definition WindTypes.hpp:79
Scalar L_u
Longitudinal scale length [m].
Definition WindTypes.hpp:77
Scalar L_v
Lateral scale length [m].
Definition WindTypes.hpp:78
Scalar sigma_w
Vertical RMS intensity [m/s].
Definition WindTypes.hpp:76
3D wind velocity in NED frame
Definition WindTypes.hpp:21
Scalar speed() const
Total magnitude.
Definition WindTypes.hpp:32
Scalar horizontal_speed() const
Magnitude in horizontal plane.
Definition WindTypes.hpp:27
Scalar north
North component [m/s].
Definition WindTypes.hpp:22
Scalar direction_from() const
Definition WindTypes.hpp:38
Scalar east
East component [m/s].
Definition WindTypes.hpp:23
Scalar down
Down component [m/s].
Definition WindTypes.hpp:24