p-chambers / occ_airconics

Aircraft Configuration through Integrated Cross-disciplinary Scripting, Python package built on PythonOCC
http://occ-airconics.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Airfoil class should optionally enforce trailing edge tangents #26

Open p-chambers opened 7 years ago

p-chambers commented 7 years ago

Issue #22 showed some problems with interpolating airfoil curves from general point data with points_to_bspline (not the standard NACA4 or UIUC profile interpolation performed by the Airfoil class). Enforcing the trailing edge tangents to be equal to vector between the terminating points fixed this issue, and this should be added as an optional method in the Airfoil class.

I have not actually seen this issue with the Airfoil class, and suspect that it is caused by the scaling of points before interpolation, but not all airfoils in the UIUC database have been tested.

This may have knock on effects, since the last parameter of the curve is no longer 1 using this method (i.e., curve.Value(1) is not the end point).