In continuation to over 2 years old topic:
http://www.gamedev.net/topic/661025-simulation-of-drag-in-flightsims/
I've got back to working on airfoil simulation. The focus of the project now is not a flight simulation specifically but variety of different machines, some of them, happen to utilize airfoils. I've got something working over the last week and tried to teach one of the existing machines to fly.
First "successful" take-off:
Second attempt with better balanced wings and control surfaces:
Since then I've improved controls (control surfaces where stalling) and added some rudimentary GUI. If you want to give it a try, compiled version is here: https://www.dropbox.com/s/55dazkm8q4s0axn/MMT_Content.zip?dl=0
The chassis of the vehicle has rather high drag and not really build as an airplane. So doing some fancy maneuvers is rather difficult, for example, I can't do a loop on it as it looses velocity super fast as soon as you start to pitch up. I have suspicion that total drag is too high (could be because of the chassis itself) and with zero throttle terminal velocity is around 65 km/h. Anyway, for proper test I'll add something like a Junkers J1 as I already have a low poly model of it.
--------------------- End of introduction -----------------------
There are couple of issues I can see with current model. Calculation of airfoil drag is done using this formula: Cd = Cd0 + Cl^2 / ( pi * Ar * e)
where Ar is aspect ratio (span/chord) and "e" is efficiency factor. Cl was calculated for the symmetrical airfoil and so I'm ignoring pitching moment, curve of Cl looks like this:
https://www.dropbox.com/s/hdw58m4hel64cfh/NACA_0012_Cl_smooth.PNG?dl=0
For a proper airplane I'm planning on cutting wings into multiple pieces, which means that Cd approximation won't work anymore as using aspect ratio for segment of the wing (rather than full wing) will drastically lower drag coefficient. I have a separate curve for Cd: https://www.dropbox.com/s/yu1ww6p8m6cp7ne/NACA_0012_Cd_smooth.PNG?dl=0 which I can apply directly, but it doesn't take into account the shape of the wing as a whole. So I'm baffled of how to properly describe end sections of the wings which might not be straight but have more of an ellipsoid form. For the full wing this is suppose to be taken into account by efficiency factor.
Another point that I want to improve is to model control surfaces as a part of the wing and not as a separate airfoil as it is done right now (very inaccurate). The question is, can I simply sum up Cl and Cd coefficients of wing section and aileron section, taking into account their respective angles of attack, or I have to get new curves with different states of control surfaces and blend between them?
The other important part I'm missing is ground effect, at least this seams to be more significant than proper simulation of the engine in respect to gliding behavior of the aircraft.