Plane Gliding Example#
This example demonstrates how to use flight-mech to compute quantities for a gliding plane.
Imports#
[1]:
# Python imports
import os
import sys
sys.path.append("..")
# Additional imports
import numpy as np
import matplotlib.pyplot as plt
# Flight-Mech imports
from flight_mech.plane import Plane
Plane definition#
Let us use in this case the Cessna Citation III defined in the database.
[2]:
# Load the plane
plane = Plane("cessna_citation_III")
Gliding quantities#
We can now define an altitude and compute the range and the slope of the plane gliding at its maximum glide ratio.
[3]:
# Define the altitude
z = 300
# Print the results
print("Range max [m]", plane.compute_max_gliding_range(z))
print("gamma min [°]", plane.compute_min_descent_gliding_slope() * 180 / np.pi)
Range max [m] 4984.282870844184
gamma min [°] -3.4485871487092092