ntrfc.turbo.airfoil_generators package

Submodules

ntrfc.turbo.airfoil_generators.naca_airfoil_creator module

Python 2 and 3 code to generate 4 and 5 digit NACA profiles

The NACA airfoils are airfoil shapes for aircraft wings developed by the National Advisory Committee for Aeronautics (NACA). The shape of the NACA airfoils is described using a series of digits following the word “NACA”. The parameters in the numerical code can be entered into equations to precisely generate the cross-section of the airfoil and calculate its properties.

Pots of the Matlab code available here:

http://www.mathworks.com/matlabcentral/fileexchange/19915-naca-4-digit-airfoil-generator http://www.mathworks.com/matlabcentral/fileexchange/23241-naca-5-digit-airfoil-generator

Copyright (C) 2011 by Dirk Gorissen <dgorissen@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ntrfc.turbo.airfoil_generators.naca_airfoil_creator.interpolate(xa, ya, queryPoints)

A cubic spline interpolation on a given set of points (x,y) Recalculates everything on every call which is far from efficient but does the job for now should eventually be replaced by an external helper class

ntrfc.turbo.airfoil_generators.naca_airfoil_creator.linspace(start, stop, np)

Emulate Matlab linspace

ntrfc.turbo.airfoil_generators.naca_airfoil_creator.naca(number, n, finite_te=False, half_cosine_spacing=True)
ntrfc.turbo.airfoil_generators.naca_airfoil_creator.naca4(number, n, finite_te=False, half_cosine_spacing=False)

Returns 2*n+1 points in [0 1] for the given 4 digit NACA number string

ntrfc.turbo.airfoil_generators.naca_airfoil_creator.naca5(number, n, finite_te=False, half_cosine_spacing=False)

Returns 2*n+1 points in [0 1] for the given 5 digit NACA number string

ntrfc.turbo.airfoil_generators.parsec_airfoil_creator module

ntrfc.turbo.airfoil_generators.parsec_airfoil_creator.parsec_airfoil_gen(pparray, halfsinespacing=True, resolution=2000)
ntrfc.turbo.airfoil_generators.parsec_airfoil_creator.pcoef(xte, yte, rle, x_cre, y_cre, d2ydx2_cre, th_cre, surface)

evaluate the PARSEC coefficients

Module contents