Skip to main content

Aerox

Aerox is an open aircraft performance toolbox. It provides detailed aircraft data and performance models, such as drag and kinematics, for 150+ aircraft types. The models are physical models built from open data.

Aerox complements OpenAP. It covers more aircraft types, with more parameters for each type. For example, Aerox builds up the drag of each aircraft part from its geometry, instead of estimating the drag from flight data.

A selection of the aircraft, drawn from the Aerox geometry data:

Aircraft drawn in 3D from their Aerox records

Install

pip install aerox

Or, from a copy of the repository:

pip install .

Add the plot extra (pip install "aerox[plot]") to draw aircraft with Matplotlib.

Quick start

Aircraft

Load an aircraft:

from aerox import load_aircraft, get_available_aircraft

ac = load_aircraft("A320")
print(ac.mtow, ac.wing.area, ac.wing.span)

print(get_available_aircraft())

View an aircraft in 2D and 3D

The aerox command opens an aircraft viewer in the browser:

aerox view                 # all aircraft
aerox view A320 B789       # only these aircraft
aerox view --out a320.html A320   # write the page to a file instead

The viewer shows each aircraft in 3D and as a 2D three-view, with dimensions and a scale. Click a part to see its dimensions and where each value comes from. The server runs on http://127.0.0.1:8765 until you press Ctrl+C. Use --port to change the port and --no-open to keep the browser closed. The page loads three.js from a CDN, so it needs an internet connection. python -m aerox view does the same.

The same drawings are available in Python, with the plot extra:

from aerox.plot import three_view, view_3d

three_view(ac).savefig("a320-three-view.png")
view_3d(ac)

The drawings are outline models. The sizes come from the record. The positions of the wing, tails, and engines along the fuselage follow simple rules, so they are approximate.

Drag model

Aerox gives drag in two forms. Both have a cd() method (an alias of drag_coefficient()) that returns the drag coefficient at a flight condition.

build_drag_model(ac) build_parabolic_polar(ac)
Returns the full drag model CD = cd0 + k CL²
Changes with Mach and Reynolds number yes no, fixed at the reference condition of the record
Wave drag yes no
Use it for performance at a flight condition quick estimates and closed-form analysis

The full model, at a flight condition:

from aerox.models.drag import build_drag_model

model = build_drag_model(ac)
print(model.cd(cl=0.55, mach=0.78, h=11_000))   # altitude in m, ISA

With the altitude h, the model computes the Reynolds number from the ISA atmosphere. Add dT= for a temperature offset from ISA, or pass reynolds_per_m= instead of h to give the Reynolds number yourself.

The parabolic polar, the same at every flight condition:

from aerox.models.drag import build_parabolic_polar

polar = build_parabolic_polar(ac)
print(polar.cd0, polar.k)
print(polar.cd(cl=0.55))

Near the reference cruise condition of the record, and at cruise lift coefficients, the two agree within a few percent. Away from that condition, or at high lift coefficients where wave drag appears, use the full model. See the drag docs for details.

A320 drag polar at three Mach numbers, with the parabolic polar Drag rise with Mach number for the A320, B738, B789 and A388

What each part of the aircraft contributes to the drag:

Drag breakdown by aircraft part for five aircraft

The maximum lift-to-drag ratio of every turbofan aircraft in the database:

Maximum lift-to-drag ratio against wing aspect ratio for turbofan aircraft

Kinematics

Each record also has the typical speeds and vertical rates of each flight phase, from takeoff to landing:

k = ac.kinematic
print(k.climb_to_fl150_ias)   # 290 kt
print(k.climb_to_fl150_vs)    # 2000 ft/min
print(k.cruise_mach)          # 0.79
print(k.cruise_range_nm)      # 2700 nm

The A320 values, phase by phase (see the kinematics docs for all fields):

The A320 kinematic data, phase by phase from takeoff to landing, under a schematic flight profile

Atmosphere and speeds

Atmosphere and speed conversions, in SI units:

from aerox import aero

p, rho, T = aero.atmos(h=10_000)           # altitude in m
cas = aero.mach2cas(mach=0.78, h=10_000)   # m/s

What is included

  • Aircraft data. One YAML record per type with geometry, mass limits, and engine data. Each geometry and mass value has a source note under src/aerox/data/aircraft/sources.
  • Drag. A drag model computed from the aircraft geometry: skin friction and form factors for the wing, fuselage, tails, nacelles, and pylons, plus wave drag and induced drag, and drag increments for deployed flaps and landing gear.
  • Math backends. The drag model is also available as a closed-form expression for JAX and CasADi, for optimization and automatic differentiation (see Math backends).
  • Drawings. aerox view and aerox.plot, 2D and 3D outline drawings of each aircraft.
  • Kinematics. Typical speeds and vertical rates of each flight phase, for every aircraft.
  • Atmosphere and speeds. aerox.aero, ISA atmosphere and CAS/TAS/EAS/Mach conversions.
  • Flight management. aerox.fms, route, altitude and speed intent, and guidance primitives (still under development).

Current accuracy and limits

  • At cruise, the drag model agrees with a reference performance model within 5 % for most jet transports. At lower Mach numbers (about 0.6) it is 4 to 12 % too high.
  • Flap and landing gear drag come from simple handbook methods. Slats add no drag, and spoiler drag is not modelled.
  • The modules for thrust, lift, flight dynamics, and simulation are experimental. Their interfaces can change.

Sources

  • Aircraft data. Type certificate data sheets (EASA, FAA, Transport Canada, CAA New Zealand), manufacturer airport planning documents, and manufacturer CAD drawings (Airbus, Boeing), from which the wing and tail geometry is measured. Military types use NASA technical reports and USAF fact sheets. Every geometry and mass value in a record has a source note under src/aerox/data/aircraft/sources. The cited documents are listed in sources/sources.yml, and the drawings and measurement tables are in sources/. Values not yet traced to such a document are marked legacy-unverified. The kinematic values have no source notes yet.
  • Drag methods. Component drag build-up after Raymer, Kroo, and Scholz, nacelle and pylon terms after FLOPS and SUAVE, and wave drag from the Korn equation with Lock's fourth-power law.
  • Atmosphere. aerox.aero is ported from openap.aero (OpenAP 2.6.0).

Documentation

See docs/ for the aircraft data, the drag model, the kinematics, the atmosphere functions, and the roadmap.

Development

uv sync --all-extras   # the tests need every extra
uv run pytest -q
uv run --extra editor tools/web_editor.py   # local editor for aircraft records
uv run --extra research tools/make_readme_figures.py   # figures in docs/figures

Licence

GNU Lesser General Public License v3 (LGPL v3). See LICENSE.

Metadata

Release files for aerox 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aerox 0.3
File Size Uploaded Provenance Actions
aerox-0.3.tar.gz 2.0 MB With provenance Details for aerox-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aerox 0.3
File Interpreter ABI Platform Actions
aerox-0.3-py3-none-any.whl Python 3 none any Details for aerox-0.3-py3-none-any.whl

Total release size: 3.6 MB

Release files / aerox-0.3.tar.gz

Download URL aerox-0.3.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
68c2ac7625611ea71839a0039ae366e7a3d0ea976f9a794e56cf7d82d25e73a0
BLAKE2b-256 checksum
How to use checksums
797fb57b354655766cfcd6ab7f17f7317fb41aa322e8eb19942b64532fbf9894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / aerox-0.3-py3-none-any.whl

Download URL aerox-0.3-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
beb81a09ba72bd0c7971588390b92284c05856167aa2a655d0d1bce8d7bead26
BLAKE2b-256 checksum
How to use checksums
99caf7dadfe2946e60bd332df0a7f2173fc410b92f41e630b5daeafa7f3a64a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for aerox 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aerox-0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page