the open source parametric airfoil generator
ParaFoil is a declarative tool that parametrically generates turbomachinery and aircraft airfoils and passages with B-splines. The purpose is to generate airfoil shapes from different parameters during fluid simulation optimizations.
pip install git+https://github.com/Turbodesigner/parafoil.git#egg=parafoil
# Version 1
pip install git+https://github.com/Turbodesigner/[email protected]#egg=parafoil
import numpy as np
from parafoil import CamberThicknessAirfoil
airfoil = CamberThicknessAirfoil(
inlet_angle=np.radians(40.0),
outlet_angle=np.radians(-20.0),
stagger_angle=np.radians(0.0),
upper_thick_prop=[0.035, 0.14, 0.14, 0.035, 0.007],
lower_thick_prop=[0.035, 0.14, 0.14, 0.035, 0.007],
leading_prop=0.5,
trailing_prop=0.5,
chord_length=1
)
airfoil.visualize(include_camber_ctrl_pnts=True)
from parafoil import TurboRowPassage
passage = TurboRowPassage(
airfoil=airfoil,
spacing_to_chord=1.0,
leading_edge_gap_to_chord=0.25,
trailing_edge_gap_to_chord=0.25,
)
passage.visualize()
git clone https://github.com/Turbodesigner/parafoil.git
cd parafoil
pip install -r requirements_dev.txt
Right now there are some items such as CFD meshing and adding more shaping. Please join the Discord for project communications and collaboration. Please consider donating to the Patreon to support future work on this project.