fastoad.models.performances.mission.base module

Base classes for mission computation.

class fastoad.models.performances.mission.base.IFlightPart(name: str = '')[source]

Bases: ABC, BaseDataClass

Base class for all flight parts.

name: str = ''
target: FlightPoint = None
abstract compute_from(start: FlightPoint) 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 column names match fields of FlightPoint

class fastoad.models.performances.mission.base.FlightSequence(name: str = '', flight_sequence: ~typing.List[~fastoad.models.performances.mission.base.IFlightPart] = <factory>)[source]

Bases: IFlightPart

Defines and computes a flight sequence.

flight_sequence: List[IFlightPart]

List of IFlightPart instances that should be run sequentially.

consumed_mass_before_input_weight: float = 0.0

Consumed mass between sequence start and target mass, if any defined

compute_from(start: FlightPoint) 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 column names match fields of FlightPoint

property target: Optional[FlightPoint]

Target of the last element of current sequence.