4#include <marenv/wind/WindField.h>
54 Status GetWind(
double time,
const double position[3],
double windVelocity[3])
const override;
66 Parameters m_parameters;
67 double m_towards[2] {};
Definition ConstantWind.h:31
const Parameters & GetParameters() const
The parameters given to the constructor.
Definition ConstantWind.h:63
ConstantWind(const Parameters ¶meters)
double SpeedAt(double height) const
Status GetWind(double time, const double position[3], double windVelocity[3]) const override
Definition WindField.h:19
Status
Definition marenv.h:44
WindProfile
Definition ConstantWind.h:12
@ PowerLaw
U(h) = U_ref (h / h_ref)^alpha (DNV-RP-C205: alpha about 0.12 over open sea).
@ LogLaw
U(h) = U_ref ln(h / z0) / ln(h_ref / z0), z0 the roughness length (open sea about 0....
@ Uniform
The same speed at every height.
The wind's parameters.
Definition ConstantWind.h:35
double speed
Mean wind speed at the reference height [m/s], >= 0.
Definition ConstantWind.h:36
double powerExponent
alpha of WindProfile::PowerLaw, >= 0.
Definition ConstantWind.h:40
double roughnessLength
z0 of WindProfile::LogLaw [m], > 0 and below minimumHeight.
Definition ConstantWind.h:41
WindProfile profile
How the speed varies with the height.
Definition ConstantWind.h:39
double minimumHeight
Heights between the sea level and this [m] get this height's speed, > 0.
Definition ConstantWind.h:42
double fromRad
The direction the wind comes from [rad], true, clockwise from north (meteorological).
Definition ConstantWind.h:37
double referenceHeight
The height of speed above the mean sea level [m], > 0.
Definition ConstantWind.h:38