Skip to main content

A package to compute the characteristics of an airplane using simple flight mechanics equations.

Project description

Flight Mechanics Calculator

Pylint Badge

License

This software has been developed by Paul Creusy and is shared under the MIT License.

Getting started

Installation

To install this software, please clone the repository and install the required Python libraries using the command:

pip install -r requirements.txt

Usage

This software includes a simple atmospheric model and a set of flight mechanics equations allowing to compute plane characteristics.

Please note that all equations and variables are defined in the international unit system.

The plane model allows to compute the following quantities:

  • max glide ratio
  • speed at specific angle of incidence and altitude
  • drag
  • lift
  • thrust
  • stall speed
  • reference speed
  • minimum descent gliding slope
  • gliding speed
  • maximum gliding time
  • maximum gliding range
  • authorized velocity interval at fixed thrust for flight at constant altitude
  • thrust needed at fixed altitude and angle of incidence
  • minimum thrust needed at fixed altitude
  • speed at minimum thrust
  • maximum flight altitude
  • speed for maximum ascension speed
  • ascension slope for a specific angle of incidence and altitude
  • load factor in turn
  • maximum range at fixed altitude
  • maximum range at fixed speed
  • endurance
  • take off distance without friction
  • take off distance with friction
  • landing distance
  • take off speed
  • landing speed
  • alpha and delta coefficient at a flight point

Additionally, the following graphs can be generated:

  • polar graph
  • thrust-speed graph
  • power-speed graph

Some examples are provided in the examples folder (please note that they do not cover all the use cases) as well with a few plane models in the plane_database folder.

Here is an overview of what the software can compute:

# Load the plane
plane = Plane("cessna_172", "./plane_database")

# Compute the fmax and CL at fmax
print("C_L_f_max", plane.C_L_f_max)
print("fmax", plane.f_max)
>> C_L_f_max 0.7745966692414834
>> fmax 12.909944487358056
# Compute the speed interval at 8000 meters
plane.m_fuel = 136.26  # kg
plane.update_variables(True)
print("reference speed at 8000m [m.s-1]", plane.compute_reference_speed(8000))
print("speed interval at 8000m [m.s-1]",
      plane.compute_velocity_interval_for_fixed_thrust(8000))
print("stall speed at 8000m [m.s-1]",
      plane.compute_stall_speed(8000, C_L_max=1.5))
>> reference speed at 8000m [m.s-1] 56.214394963985406
>> speed interval at 8000m [m.s-1] (22.544275306567194, 140.17120347383343)
>> stall speed at 8000m [m.s-1] 41.80281924283373
# Compute the ascension speed and slope at sea level
plane.m_fuel = 0  # kg
plane.update_variables(True)
print("max ascension speed [m.s-1]", plane.compute_max_ascension_speed(z=0))
print("reference speed at 0m [m.s-1]", plane.compute_reference_speed(z=0))
print("max slope at 0m [%]", plane.compute_max_ascension_slope(z=0))
>> max ascension speed [m.s-1] 32.89763560421959
>> reference speed at 0m [m.s-1] 34.523934888646956
>> max slope at 0m [%] 0.5695896796157822

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flight_mech-1.0.4.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flight_mech-1.0.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file flight_mech-1.0.4.tar.gz.

File metadata

  • Download URL: flight_mech-1.0.4.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.4

File hashes

Hashes for flight_mech-1.0.4.tar.gz
Algorithm Hash digest
SHA256 8ad9826b8e25edb2a01f48e6db9f764f6259d1d5999bcdcf31d8c183b76fb657
MD5 4ba38914d9bc9e0cea47f1cf82cbd50c
BLAKE2b-256 eb743124ae1344214bb7fde99dbd08cc47fe4dddae34b18d3c6f1113298856f4

See more details on using hashes here.

File details

Details for the file flight_mech-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: flight_mech-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.4

File hashes

Hashes for flight_mech-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f6c79f08f8a3ec3c5764cf9eb392811a6361d18cd49116e3569f331db83eb610
MD5 32f72d69aa9f6cfef2e5f73354ff451c
BLAKE2b-256 4904553e65d8d029749e768aa93d29d10ffed0f59a0d6494733c91a2413fc312

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page