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.
Airfoil nomenclature. Image in the public domain, via Wikimedia Commons.
Features
Airfoil generation with a NACA-4 series definition
Import from files
Full support for airfoils from the UIUC Airfoil Coordinates Database
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()
>>> 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
Documentation
License
License: Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airfoils-0.2.2.tar.gz.
File metadata
- Download URL: airfoils-0.2.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe22434253ee3ecaeca216e51b6a228d1649d5524bd6d632f2b76b75304d4498
|
|
| MD5 |
766bb15928de78d317b898b116ccd041
|
|
| BLAKE2b-256 |
2fb28162f3b7d4ac78e18ae58b15f129b38a2f1af5b9e8658e340e66e4378ea2
|
File details
Details for the file airfoils-0.2.2-py3-none-any.whl.
File metadata
- Download URL: airfoils-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b46c8665b3fe9b6e482e98a541c896aeeb091b235e960a304d2c9b12b0b690ea
|
|
| MD5 |
03c602d8c2ffa69af33e73ce426aff5b
|
|
| BLAKE2b-256 |
0937bfd8ff2e9a14624f846432469d565e86f1e0733c96302a4888882717c67a
|