fastoad.constants module

Definition of globally used constants.

class fastoad.constants.FlightPhase(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Enumeration of flight phases.

TAXI_OUT = 'taxi_out'
TAKEOFF = 'takeoff'
INITIAL_CLIMB = 'initial_climb'
CLIMB = 'climb'
CRUISE = 'cruise'
DESCENT = 'descent'
LANDING = 'landing'
TAXI_IN = 'taxi_in'
class fastoad.constants.EngineSetting(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Enumeration of engine settings.

classmethod convert(name: str) EngineSetting[source]
Parameters

name

Returns

the EngineSetting instance that matches the provided name (case-insensitive)

TAKEOFF = 1
CLIMB = 2
CRUISE = 3
IDLE = 4
class fastoad.constants.RangeCategory(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Definition of lower and upper limits of aircraft range categories, in Nautical Miles.

can be used like::
>>> range_value = 800.
>>> range_value in RangeCategory.SHORT
True
which is equivalent to:
>>>  RangeCategory.SHORT.min() <= range_value <= RangeCategory.SHORT.max()
SHORT = (0.0, 1500.0)
SHORT_MEDIUM = (1500.0, 3000.0)
MEDIUM = (3000.0, 4500.0)
LONG = (4500.0, 6000.0)
VERY_LONG = (6000.0, 1000000.0)
min()[source]
Returns

minimum range in category

max()[source]
Returns

maximum range in category