fastoad.models.performances.mission.segments.altitude_change module¶
Classes for climb/descent segments.
-
class
fastoad.models.performances.mission.segments.altitude_change.
AltitudeChangeSegment
(*, target: fastoad.base.flight_point.FlightPoint, propulsion: fastoad.models.propulsion.propulsion.IPropulsion, reference_area: float, polar: fastoad.models.performances.mission.polar.Polar, **kwargs)[source]¶ Bases:
fastoad.models.performances.mission.segments.base.ManualThrustSegment
Computes a flight path segment where altitude is modified with constant speed.
Note
Setting speed
Constant speed may be:
constant true airspeed (TAS)
constant equivalent airspeed (EAS)
constant Mach number
Target should have
"constant"
as definition for one parameter amongtrue_airspeed
,equivalent_airspeed
ormach
. All computed flight points will use the corresponding start value. The two other speed values will be computed accordingly.If not “constant” parameter is set, constant TAS is assumed.
Note
Setting target
Target can be an altitude, or a speed.
Target altitude can be a float value (in meters), or can be set to: -
OPTIMAL_ALTITUDE
: in that case, the target altitude will be the altitudewhere maximum lift/drag ratio is achieved for target speed, depending on current mass.
OPTIMAL_FLIGHT_LEVEL
: same as above, except that altitude will be rounded to the nearest flight level (multiple of 1000 feet).
For a speed target, as explained above, one value TAS, EAS or Mach must be
"constant"
. One of the two other ones can be set as target.Warning
Whatever the above settings, if
cruise_mach
attribute is set, speed will always be limited so that Mach number keeps lower or equal to this value.Only keyword arguments are accepted.
- Parameters
target – the target flight point, defined for any relevant parameter
propulsion – the propulsion model
reference_area – the reference area for aerodynamic forces
polar – the aerodynamic polar
-
OPTIMAL_ALTITUDE
= -10000.0¶ Using this value will tell to target the altitude with max lift/drag ratio.
-
OPTIMAL_FLIGHT_LEVEL
= -20000.0¶
-
compute_from
(start: fastoad.base.flight_point.FlightPoint) → pandas.core.frame.DataFrame[source]¶ Computes the flight path segment from provided start point.
Computation ends when target is attained, or if the computation stops getting closer to target. For instance, a climb computation with too low thrust will only return one flight point, that is the 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 are given by
FlightPoint.labels
-
classmethod
get_attribute_keys
()¶ - Returns
list of attributes paired to dict key.
-
property
time_step
¶