hv15 Posted January 4, 2017 Posted January 4, 2017 Hi all, Not sure if this is the right section to post such a question but this is where the brains of the community seem to dwell. As I understand it, flight sims that use look up tables use aerodynamic and control stability derivatives to calculate the forces and moments on an aircraft and then these forces and moments are put into the 6DOF equations of motion to get everything else. The forces depend on angle of attack, sideslip, velocity etc. My question is about how the equations of motion can be solved in a manner that provides the new velocities/ angular rates etc. My studies in Aerospace engineering unfortunately only show how to do this with laplace transforms. Ideally, I want to develop my own flight sim in c++ (rudimentary graphics) for academic purposes. Is anyone able to shed some light on this? (Preferably with the help of equations) :helpsmilie:
gyrovague Posted January 5, 2017 Posted January 5, 2017 This doesn't really answer your question, but you may want to check out http://jsbsim.sourceforge.net/ if you haven't already done so. ____________ Heatblur Simulations [sIGPIC][/sIGPIC]
hv15 Posted January 5, 2017 Author Posted January 5, 2017 (edited) Thanks for the reply gyrovague but unfortunately I have seen it :( I have been stuck on this for weeks now. I have been working from the NASA HAARV (Modified F18 ) research papers https://www.nasa.gov/centers/dryden/pdf/88698main_H-2424.pdf which are very interesting if you like that sort of thing. If you look at pg 14 (22/143) the equations of motion are stated. However, it never shows how to solve them. I would be very grateful if someone is able help me with this. After weeks of streaming through research papers, I am ready to tear my hair out! Edited January 5, 2017 by hv15 Accidently hit send
BR55Sevas Posted January 5, 2017 Posted January 5, 2017 If you want try make your own sim, then all you need to learn is numerical integration by Euler method. After you need to use some method to describe rotation of your object, basically in games uses quaternions. And of course try to start with simple modelling, lets say try to model translation of some object using 2nd Newton law along one axis. You need to get resulting coordinate, right? so Drag = magic_coeff * V_previous; // or use V^2 relation aerodynamic drag formula Fr = Force - Drag;//resulting force acting to your object a = Fr/m;//resulting acceleration V = V_previous + a*dt;// integration of current velocity of your object x = x_previous + V*dt;// and finally integrating coordinate of object my math is pretty basic and simple, but this is simple way how to model behaviour of any object with inertia. btw I used this method in my DCS projects, works fine. remember that derivative equation from books should be adopted for discrete nature of computer simulation - basically this is numerical integration. МиГ-29 Fly by wire СДУ Su-27SM second display panel https://www.youtube.com/embed/videoseries?list=PL_2GGwNpWNp_fKXfRtDhIk8s5Jf4a9XHS http://berkuts.ru Пилотажный сервер с роботом | Aerobatic server with PhantomControl
hv15 Posted January 5, 2017 Author Posted January 5, 2017 If you want try make your own sim, then all you need to learn is numerical integration by Euler method. After you need to use some method to describe rotation of your object, basically in games uses quaternions. And of course try to start with simple modelling, lets say try to model translation of some object using 2nd Newton law along one axis. You need to get resulting coordinate, right? so my math is pretty basic and simple, but this is simple way how to model behaviour of any object with inertia. btw I used this method in my DCS projects, works fine. remember that derivative equation from books should be adopted for discrete nature of computer simulation - basically this is numerical integration. This is essentially what I was trying to do but the sim runs for a second and then starts producing NaN. I have a feeling that the stability derivatives I was using were for a spin test :doh: I may have to stick with older aircraft instead. Is anyone aware of any newish aircraft with available information on stability derivatives?
SilentEagle Posted January 7, 2017 Posted January 7, 2017 If you want try make your own sim, then all you need to learn is numerical integration by Euler method. Yea, for an initial understanding, but for aerospace purposes you should really use a more accurate integrator. JSBSim is great for understanding how to translate the more complex integrators, like Adams-Bashforth, into discrete code iterations. For my personal sim project, I use Adams Bashforth 2nd order integrator for rotational rate and translational rate, Adams Bashforth 3rd order for translational position, and Buss 2nd order Quaternion exponential for rotational position.
BR55Sevas Posted January 7, 2017 Posted January 7, 2017 thanks SE! very interesting, will check it. I`m also have small own fsim coded in LabVIEW МиГ-29 Fly by wire СДУ Su-27SM second display panel https://www.youtube.com/embed/videoseries?list=PL_2GGwNpWNp_fKXfRtDhIk8s5Jf4a9XHS http://berkuts.ru Пилотажный сервер с роботом | Aerobatic server with PhantomControl
SinusoidDelta Posted January 7, 2017 Posted January 7, 2017 Here is aero data for the F-15 & F-14 http://www.zaretto.com/sites/zaretto.com/files/F-15-data/rjh-zaretto-f-15-aerodynamic-data.pdf http://www.zaretto.com/content/f-14-aerodynamic-data-sources 1
Recommended Posts