frispy.wind

The Wind class handles the wind, which is a real-valued time-dependent vector field that influences the flight of the disc.

Module Contents

Classes

Wind

Abstract class to handle different types of wind. These can include

NoWind

No wind.

ConstantWind

The wind is uniform in position and constant in time.

class frispy.wind.Wind[source]

Bases: abc.ABC

Abstract class to handle different types of wind. These can include steady, laminar flow winds or swirling winds. Winds can have a time dependence to mimic “gusts”.

abstract get_wind(self, t: Optional[Union[float, int, numpy.ndarray]], position: Optional[Union[List, numpy.ndarray]]) numpy.ndarray[source]

Obtain a length 3 vector of the wind at time t.

class frispy.wind.NoWind[source]

Bases: Wind

No wind.

get_wind(self, *args) numpy.ndarray[source]

All components are zero.

class frispy.wind.ConstantWind(wind_vector: Optional[numpy.ndarray] = None)[source]

Bases: Wind

The wind is uniform in position and constant in time.

get_wind(self, *args) numpy.ndarray[source]

Obtain a length 3 vector of the wind at time t.