In order to simplify a very difficult problem, we will first assume that the air flowing around the wing is incompressible (a reasonably good assumption for subsonic flight). Our continuity equation is therefore:
where u and v are the components of velocity in the x and y directions. We can define a stream function such that:
This stream function has the significance that lines of constant psi are streamlines, that is, lines parallel to the flow velocity.
Now we're going to make some really big leaps in simplifying the problem. We will assume that the flow is irrotational and inviscid. This means that the air just flows smoothly without swirling around, and there is no boundary layer around the surface of the wing due to friction. This problem essentially has now lost just about all of its practical aspects. Nevertheless, the stream function now satisfies the Laplace equation everywhere:
Output plots were created directly from within the program using the HDF library to create hdf rastermaps, which were later converted to gif files. I calculated a normal rainbow pallet to use on the stream function plots, and made a slight modification to this pallet for the pressure plots in an attempt to make them more useful.
Click here to see the big ugly FORTRAN code used to calculate all this. Click here if you have any interest in seeing the code for creating the NACA airfoil data file.
Streamline Function
Pressure Distribution
The pressure distribution plots look pretty strange and may not seem
to make much sense. I believe this is simply because I didn't come up with
a good color palette to illustrate the data. The important thing, though,
is that they look cool, and when you come right down to it, that's the real
purpose of this project!
<
/A>