Vulcan
Aerospace Engineering Utilities Built on Janus
Loading...
Searching...
No Matches
vulcan::constant_wind Namespace Reference

Functions

template<typename Scalar>
wind::WindVector< Scalar > from_ned (const Scalar &north, const Scalar &east, const Scalar &down=Scalar(0))
 Create constant wind from NED components.
template<typename Scalar>
wind::WindVector< Scalar > from_speed_direction (const Scalar &speed, const Scalar &direction_from)
 Create constant wind from speed and direction.

Function Documentation

◆ from_ned()

template<typename Scalar>
wind::WindVector< Scalar > vulcan::constant_wind::from_ned ( const Scalar & north,
const Scalar & east,
const Scalar & down = Scalar(0) )

Create constant wind from NED components.

Template Parameters
Scalardouble or casadi::MX
Parameters
northNorth wind component [m/s]
eastEast wind component [m/s]
downDown wind component [m/s] (usually 0)
Returns
WindVector with constant components

◆ from_speed_direction()

template<typename Scalar>
wind::WindVector< Scalar > vulcan::constant_wind::from_speed_direction ( const Scalar & speed,
const Scalar & direction_from )

Create constant wind from speed and direction.

Uses meteorological convention: direction is where wind comes FROM. For example, a "northerly wind" blows FROM the north TO the south, so direction_from = 0 and the resulting north component is negative.

Template Parameters
Scalardouble or casadi::MX
Parameters
speedWind speed [m/s]
direction_fromDirection wind is blowing FROM [rad], clockwise from North
Returns
WindVector in NED frame