fastoad.constants module¶
Definition of globally used constants.
-
class
fastoad.constants.
FlightPhase
(value)[source]¶ Bases:
enum.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)[source]¶ Bases:
enum.IntEnum
Enumeration of engine settings.
-
TAKEOFF
= 1¶
-
CLIMB
= 2¶
-
CRUISE
= 3¶
-
IDLE
= 4¶
-
classmethod
convert
(name: str) → fastoad.constants.EngineSetting[source]¶ - Parameters
name –
- Returns
the EngineSetting instance that matches the provided name (case-insensitive)
-
-
class
fastoad.constants.
RangeCategory
(value)[source]¶ Bases:
enum.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)¶