from openap.prop import aircraft, engine
from openap.drag import Drag
from openap.thrust import Thrust
from openap.kinematic import WRAP
from openap.phase import FlightPhase
from openap.gen import FlightGenerator
from openap.fuel import FuelFlow
from openap.emission import Emission
# when opeap-top is installed
from openap.top import CompleteFlight, Climb, Cruise, Descent, MultiPhase
1 🐣 Getting started
OpenAP library has two parts: OpenAP model data and Python modules.
1.1 Data
Follow model datasets are all made public, under GPL open-source license:
- Aircraft data: Collected from open literature.
- Engines data: Primarily from the ICAO emission data bank, including fuel flow and emissions.
- Drag polar data: Exclusively derived from open data (reference).
- Kinematic data: Kinematic model (formally WRAP) describe speed, altitude, and vertical rate.
- Navigation data: Airport and waypoints obtained from X-plane.
1.2 Modules
OpenAP Python library includes the following modules, which support a variety of functionalities, including performance models, emission models, trajectory generation, and trajectory optimization:
prop
: module for accessing aircraft and engine datathrust
: module for computing aircraft maximum thrustdrag
: module for computing aircraft dragfuel
: module for computing fuel flowemission
: module for computing aircraft emissionskinematic
: module for accessing kinematic dataaero
: module for common aeronautical conversionsnav
: module for accessing navigation informationphase
: module for determining climb, cruise, descent, level flighttraj
: module for generating trajectories based on the kinematic model
Other modules that can be installed separately:
top
: a package for generating optimal trajectories (see Trajectory Optimization chapter)
1.3 Install
1.3.1 openap
Install the latest stable release from pypi:
pip install --upgrade openap
Install the development version from GitHub:
pip install --upgrade git+https://github.com/junzis/openap
OpenAP is also published to conde-forge
repository; you can install the release for conda-forge:
mamba install openap -c conda-forge
1.3.2 openap-top
If you want to use the optimization function, you need to install openap-top
in addition to openap
, Install the stable release as:
pip install --upgrade openap-top
Or, install the development version from my GitHub:
pip install --upgrade git+https://github.com/junzis/openap-top
1.4 Import
Most of the functionalities (except aircraft and engine properties) in OpenAP are provided as Python classes. You can import these as follows:
You can also import these Classes directly from the openap
package as:
from openap import (
Drag,
Thrust,
WRAP,
FlightPhase,
FlightGenerator,
FuelFlow,
Emission, )