Skip to main content

Airfoils (aerofoils)

Project description

Latest PyPI version License Documentation Status Build Status Coverage

Airfoils

Airfoils is a small Python library for object-oriented airfoil modelling. The library provides tools to easily instantiate airfoil objects and to query geometric information. An airfoil object is defined by upper and a lower surface coordinates.

Example

Airfoil nomenclature. Image in the public domain, via Wikimedia Commons.

Features

  • Airfoil generation with a NACA-4 series definition

  • Import from files

  • Interpolation or computation of airfoil geometry parameters

    • Upper and lower surface coordinates
    • Camber line coordinates
    • Chord line coordinates (TODO)
    • Thickness distribution (TODO)
    • Maximum thickness (TODO)
  • Linear interpolation between two different airfoils (MorphAirfoil)

  • Plotting of airfoils

Example

>>> from airfoils import Airfoil
>>> foil = Airfoil.NACA4('4812')
>>> foil.plot()
Example
>>> foil.y_upper(x=0.5)
array(0.13085448)
>>> foil.y_lower(x=[0.2, 0.6, 0.85])
array([0.00217557, 0.02562315, 0.01451318])
>>> foil.camber_line(x=0.5)
0.07789290253609385

Installation

pip install airfoils

License

License: Apache-2.0

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

airfoils-0.2.2.tar.gz (9.4 kB view hashes)

Uploaded source

Built Distribution

airfoils-0.2.2-py3-none-any.whl (12.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page