Skip to content
Advertisement

Plotting a NACA 4-series airfoil

I’m trying to plot an airfoil from the formula as described on this wikipedia page.

This Jupyter notebook can be viewed on this github page.

JavaScript

The result looks like this.

I expected it to look more like this.

Questions: Why is the line not completely smooth? There seems to be a discontinuity where the beginning and end meet. Why does it not look like the diagram on wikipedia? How do I remove the extra loop at the trailing edge? How do I fix the chord so that it runs from 0.0 to 1.0?

Advertisement

Answer

First, t should be 0.12 not 12. Second, to make a smoother plot, increase the sample points.

It is also a good idea to use vectorize method in numpy:

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement