Atmosphere Example#
This example demonstrates how to use flight-mech to compute the properties of an atmosphere.
Imports#
[1]:
# Python imports
import os
import sys
sys.path.append("..")
# Flight-Mech imports
from flight_mech.atmosphere import StandardAtmosphere
Standard Atmosphere#
Flight-Mech implements the US Standard atmosphere model from 1976. Let us use it to plot the temperature and pressure graphs in the atmosphere.
[2]:
# Create an atmosphere instance
atmosphere = StandardAtmosphere()
# Plot the temperature graph
atmosphere.plot_graph("temperature",min_altitude=0.,max_altitude=86e3,nb_points=200)

Let us now plot the pressure graph.
[5]:
# Plot the pressure graph
atmosphere.plot_graph("pressure",min_altitude=0.,max_altitude=86e3,nb_points=2000)
