fastoad.models.performances.mission.flight.base module¶
Base classes for flight computation.
-
class
fastoad.models.performances.mission.flight.base.
AbstractSimpleFlight
(cruise_distance: float, climb_phases: List[fastoad.models.performances.mission.base.AbstractFlightSequence], cruise_phase: fastoad.models.performances.mission.segments.cruise.CruiseSegment, descent_phases: List[fastoad.models.performances.mission.base.AbstractFlightSequence])[source]¶ Bases:
fastoad.models.performances.mission.base.AbstractFlightSequence
Computes a simple flight.
- The computed flight will be be made of:
any number of climb phases
one cruise segment
any number of descent phases.
- Parameters
cruise_distance –
climb_phases –
cruise_phase –
descent_phases –
-
property
cruise_distance
¶
-
property
flight_sequence
¶ Defines the sequence as used in
compute_from()
.- Returns
the list of IFlightPart instances for the mission.
-
class
fastoad.models.performances.mission.flight.base.
RangedFlight
(flight_definition: fastoad.models.performances.mission.flight.base.AbstractSimpleFlight, flight_distance: float)[source]¶ Bases:
fastoad.models.performances.mission.base.IFlightPart
Computes a flight so that it covers the specified distance.
Computes the flight and adjust the cruise distance to achieve the provided flight distance.
- Parameters
flight_definition –
flight_distance – in meters
-
compute_from
(start: fastoad.base.flight_point.FlightPoint) → pandas.core.frame.DataFrame[source]¶ Computes a flight sequence from provided start point.
- Parameters
start – the initial flight point, defined for altitude, mass and speed (true_airspeed, equivalent_airspeed or mach). Can also be defined for time and/or ground_distance.
- Returns
a pandas DataFrame where columns names match
FlightPoint.labels