Anyone fancy doing a good deed? Aerodynamics.

In summary: Basically, as long as the airspeed and lift are within certain ranges, the shape of the wing has little to no effect on lift or airspeed. Although the shape does have an effect on the drag, to a very small degree. However, when airspeed or lift exceed certain ranges, the shape of the wing has a much greater effect on lift and airspeed. This is due to the curvature of the airfoil. As you can see in the diagram, as airspeed and lift increase, the wing starts to curve more and more, which increases the lift and airspeed. However, as the airspeed and lift continue to increase, the wing eventually stalls.
  • #1
Gibbon
23
0
I am trying to write a basic flight simulator, i have "tried" to write many now without any real success.

So if anyone is feeling kind and wants to have ago at talking me threw the equations in a more meaningful way than i kind find on the net, it would very much appriciated.

I think... to be honest, my pitfall is the Lift coefficient. I am.. just so confused about how i go about calculating this?

I know that L = CL * (r * (V sqrd)/2) * A

but CL? i have seen many ways of doing it, and i don't really understand it at all and don't get the correct results, and without "understanding" it, i can't go about trying to change it or make it work.

Im not trying to create Mircrosoft flight sim.

Just trying to simulate a simple plane and get the correct movement which i cannot seem to do.

I am using using Newtons Physics Dynamics in C++ and Lua.

So it really is a case of once the caluclations are done, then its a case of simply giving a body that force.

The programming is not a problem, it the correct calculations i just cannot seem to do.

Again, nothing complex, just basic for now and then i can slowly learn and add to it, but i just cannot seem to get any sort of resemblance of flight.

Hope you can help.
Andy
 
Physics news on Phys.org
  • #2
Coeffecient of lift is a function of airfoil shape, angle of attack, Reynolds number (basically wing chord x air speed x constant), ...

For most wings at reasonable speeds, it's nearly linear until you get near peak lift, where it curves, and then falls off (stall region). Do a web search for

airfoil polars

and you'll find plots of Cl versus AOA for specific Reynolds Number, usually mixed with pitching moment, a torque value you can ignore for a simple simulation.
 
  • #3
Hi Jeff, thanks for stopping by again, you helped me last time with a related question.

I have looked into this and this is where i get confused. In Computer programming terms, do i then have to somehow calculate (in real time) the CL by pulling data from a table of "aerofoil" data?

CL is somthing that can completely calculated in realtime?

Thanks
Andy
 
  • #4
Gibbon said:
CL is somthing that can completely calculated in realtime?
Try something simple, like CL = .1 θ, where θ is AOA in degrees. This gives you a CL of 1.0 at 10 degrees AOA.
 
  • #5
Ok, that's sort of somthing i have been using. And if that's a "around about way for now" about doing it then that is what ill do. When you refer to:

"This gives you a CL of 1.0 at 10 degrees AOA." Is that AoA in radians? I am understood it needs to be? Or am i incorrect?

Thanks
Andy
 
  • #6
Another problem i am finding, i have wrote a quick app that simulates a wing that i can change AoA so i can see the effects to lift.

And when my wing is at 0 AoA along the vector --------> its fine and if i tilt the wing up, Cl goes up and lift goes up (and using the above equation u stated at 10degreees AoA CL=1.0) but when i go below 0, obviously that is 359 and lower so the lift shoots up dramatically?

Also... my Cl doesn't seem to tail off towards 16degrees (rad)?

The equations I am using are:

The wing is simply rotated using keys.

CL = 0.1*AoA
Lift = CL*((R*(V^2)/2)*A
R (air denisity) = 0.0027 , or 1,225 ?
V (velocity) is in Meters Per Second
A (wing area) = 100 ft^2 (not specific)

And lift and CL when V = 40ms

horizontal 0 AoA : CL=0 : Lift = 0
vertical 90 AoA : CL = 9 : Lift = 1.6
Horizontal (upside down) 180 AoA: CL = 18 : Lift = 25.3

As you can see higher the angle the more lift, which imsure should only happen to a certain angle (16 degrees radian?) and then tail off?

Thanks
Andy

Thanks
Andy
 
Last edited:
  • #7
Gibbon said:
And when my wing is at 0 AoA along the vector --------> its fine and if i tilt the wing up, Cl goes up and lift goes up (and using the above equation u stated at 10degreees AoA CL=1.0) but when i go below 0, obviously that is 359 and lower so the lift shoots up dramatically?
If you go below zero, the AOA goes to -1, not +359.

Also... my Cl doesn't seem to tail off towards 16 degrees

Try CL = -.0001497 AOA3 + .11497 AOA

CL = -1 at -10 degrees, +1 at +10 degrees, peaks at -16 and +16 degrees:

cl.jpg
 
Last edited:
  • #8
Thanks Jeff, Thanks again for taking time to help. I figured out the problems you referred to in your last post (should of reposted and said, sorry). I therefore started to put things into practise in 3D, and receiving strange problems.

Without "trying" to explain, I've drawn a very crude quick diagram to explain. The arrows are the vector the plane is moving in.

http://img192.imageshack.us/img192/2172/problemf.jpg

I have anough power to move forward and take off, and then if i try to pitch up, or elevate up this allways seems to happen. In "real life" its as if the plane is underpowered, but if i add more power, it just moves the plane along that vector (red arrows) faster?

... very confused.

Andy
 
Last edited by a moderator:
  • #9
From looking at your diagram, you have the center of mass behind the center of lift, resulting in a pitch unstable aircraft. Decrease weight in the rear end and/or add weight to the front end of your model until the center of mass is about 25% to 30% behind the leading edge of the main wing. This should get it flying.

To test for the amount of pitch stablity, trim your controls and/or the model so it flies level at some moderate cruise speed with the control inputs centered. Apply down elevator to pitch the model down about 10 to 15 degrees, then recenter the controls. The aircraft should level out, and perhaps pitch up a bit depending on the overcorrection. If the aircraft levels out, you have positive pitch stability.

The amount of time it takes to level out determines the amount of pitch stability you have. The longer it takes to level out, the less pitch stability you have. I have radio control gliders, and for the thermal models, I have just a hint of positive pitch stability, where it takes 3 to 5 seconds to level out from a shallow dive.

For my slope models, I trim similar to aerobatic aircraft with neutral (zero) stability. If I nose the model down and recenter the controls, the model maintains it's current pitch angle. This makes for smoother looking aerobatics.

For powered models, the prop axis should be pitched downwards a small amount. This is to compensate for the prop wash being diverted downwards by the main wing and applying some downforce to the elevator, resulting in an unwanted pitch up response under heavy power. The prop axis may also be angled to the side a bit to compensate for torque roll and yaw effects, but only if you're modeling the swirling air from the prop wash which would apply a side force to the vertical stabilizer.
 
Last edited:
  • #10
Cheers Jeff, ill have a good luck into it later. I've not really give the center of mass and gravity much thought. Well not a lot anyway.

Im also now thinking if I am going about adding forces and torque correctly.

You see i have made my plane up from 4 rigid bodies.

fuselarge with a mass
main wing with a mass
tail plane with a mass
engine with a mass (so i can add weight at the front)

The main wings , tail palne and engine body are all joined to the fuselarge using a fixed joint.

I am apply lift force local to the main wing body, drag to the local fuselarge body, thrust to the engine body and for pitch i apply torque to the fuselarge. maybe i need to give this a bit more thought? (not sure how though)

Thanks
Andy
 
  • #11
Gibbon said:
I am apply lift force local to the main wing body
There should be two lift forces, both perpendicular to the direction of travel, as opposed to perpendicular to the orientation of the fuselage. The main wing should produce a lift force, either up or down (perpendicular to direction of travel), at about 50% back from the leading edge of the main wing. The elevator should also produce a lift force, either up or down (also perpendicular to direction of travel), also about 25% back from the leading edge of the elevator, unless you have a model where the entire horizontal stabilizer rotates, in which case put the lift force at about 50% of the stabilizer. You can use the same CL equation for both wing and elevator, noting that the elevator has less lift force (about 1/8th) for the same AOA because of it's much smaller area, which should be taken care of by your equation for total lift. Assume the elevator has about 1/8th the area of the main wing.

Place the center of mass 35% behind the leading edge of the main wing. This means that the center of mass is .35 x wing chord length behind leading edge of main wing, and center of lift of main wing is .15 x wing chord length behind center of mass. The tail should be long enough that the center of lift of the elevator is about 2.65 times wing chord distance behind center of mass.

There are 2 pitching torques for the main wing and for the elevator. Each torque = (lift force) x (distance from center of lift to center of mass) x cos(AOA of fuselage)

pitching torque of main wing = (main wing lift force) x .15 x (main wing chord length) x cos(AOA of fuselage)
pitching torque of elevator = (elevator lift force) x 2.65 x (main wing chord length) x cos(AOA of fuselage)

In level flight, the total lift force equals the weight of the plane.

When the torques between main wing and elevator are opposing but equal in magnitude, the aircraft holds it's current pitch angle, otherwise, the plane pitches up if there's a net upwards torque, or pitches down if there's a net downwards torque.

http://en.wikipedia.org/wiki/Elevator_(aircraft)

drag to the local fuselage
This is OK, although you might want to include a drag component based on sin(AOA of fuselage), essentially a Cd for the entire aircraft.

Thrust to the engine body
You can just apply thrust at the nose of the fuselage, with a direction straight back relative to the orientation of the fuselage (not the direction of travel).
 
Last edited:
  • #12
Thank you Jeff, very, very helpful information! Later today I am going to do all the new calculations and see how it goes. Every night though it gets closer and closer.

Ill keep you informed how it goes.

You have been a huge help.

Thanks
Andy
 
  • #13
If your still around jeff :), I am getting closer but its still not working as it should, and i think that's down to the fact I am being ignorant to what your said here:

There should be two lift forces, both perpendicular to the direction of travel, as opposed to perpendicular to the orientation of the fuselage. The main wing should produce a lift force, either up or down (perpendicular to direction of travel), at about 50% back from the leading edge of the main wing. The elevator should also produce a lift force, either up or down (also perpendicular to direction of travel), also about 25% back from the leading edge of the elevator, unless you have a model where the entire horizontal stabilizer rotates, in which case put the lift force at about 50% of the stabilizer. You can use the same CL equation for both wing and elevator, noting that the elevator has less lift force (about 1/8th) for the same AOA because of it's much smaller area, which should be taken care of by your equation for total lift. Assume the elevator has about 1/8th the area of the main wing.

Place the center of mass 35% behind the leading edge of the main wing. This means that the center of mass is .35 x wing chord length behind leading edge of main wing, and center of lift of main wing is .15 x wing chord length behind center of mass. The tail should be long enough that the center of lift of the elevator is about 2.65 times wing chord distance behind center of mass.

There are 2 pitching torques for the main wing and for the elevator. Each torque = (lift force) x (distance from center of lift to center of mass) x cos(AOA of fuselage)

pitching torque of main wing = (main wing lift force) x .15 x (main wing chord length) x cos(AOA of fuselage)
pitching torque of elevator = (elevator lift force) x 2.65 x (main wing chord length) x cos(AOA of fuselage)

In level flight, the total lift force equals the weight of the plane.

When the torques between main wing and elevator are opposing but equal in magnitude, the aircraft holds it's current pitch angle, otherwise, the plane pitches up if there's a net upwards torque, or pitches down if there's a net downwards torque.

And i think that's because I am not 100% understanding it (down to me!) So I am going to keep reading it and trying too. But the reason for my post is, i posted a similer thread on another forum and got a responce that i think is the same... is it?

you also need to calculate the torque generated by the lift forces, that is from each wing you need to calculate the lift force the way you are already doing it, then apply a torque that is calculate by the cross product of the force and the aerodynamics center of the wing.

then include right, left wing,
right and left stabilized,
rudder, and if you want to be fancy the effect of the airplane body.
plus the force and torque generated bu the engines at the point of action
plus the force of gravity at the airplane center.
plus the force and torque of drag and air density.


it is the some of all those forces and all those torque calculate separated and added togerther that lift the place.

when the net torque is zero the airplane is stable, when the torque is unbalanced the airplane turns. when force in up direction and is positive the plane goes up, and is zero the plane is in straight flight, when it is negative the plane descend

I think this is (if is the same as what your saying) is what is missing. As currently my plane acts very strange!

Im slightly confused to how many forces (are at LEAST needed) to get a half decent flying model in simulation? As i see it there is forces acting on both wings all the time as well as 2 torques acting on the wings all the time, so 4? Not including drag, gravity ETC?


Thanks
Andy
 
Last edited:
  • #14
Gibbon said:
other quote about modelling an aircraft ... if is the same as what your saying ...
It covers more aspects of flight while I tried to give you some actual numbers to use, and I was trying to keep the model very simple.

is what is missing.
You need to be able to control the 3 axis of rotation via torques. For a simple model, allow entire wing surfaces to move rather than just trailing edges (ailerons, elevator, rudder). There are radio control gliders that do this. For example, at 9 seconds into this DVD trailer, you can see a 'wingeron' model in helicopter mode (one wing pitched up, the other pitched down):

http://www.youtube.com/watch?v=kz9_vNnjUks&fmt=18

Allow the entire horizontal stablizer to change AOA. This will add pitch control.

Allow the entire left and right sides of the main wing to change AOA independently, as opposed to using ailerons. This will add roll control. For a left roll, the left wing would have less (even negative) AOA than the right wing. To keep things simple, assume that each wing produces lift force at it's center. Then the torque component is related to difference in lift from each wing x (1/2 wing length + 1/2 wing length) = difference in lift x wing length.

Allow the entire vertical stabilizer to rotate on a vertical axis. This will give you yaw control. Assume that it acts in line with the fuselage instead of above it so you don't introduce a roll effect.

If you want roll stability, then you need to angle both wing tips upwards a bit (dihedral), and take crosswind (relative to wing) components into account, when calculating the overall AOA -> lift. For yaw stability, you need to include a crosswind component on the vertical stabilizer (weather vane effect). You already have pitch stability by having the center of mass in front of the center of lift, assuming the elevator is trimmed for level flight (or a steady glide slope).
 
Last edited:
  • #15
You need to get a book on flight dynamics.
 
  • #16
Gibbon said:
I am trying to write a basic flight simulator, i have "tried" to write many now without any real success.

So if anyone is feeling kind and wants to have ago at talking me threw the equations in a more meaningful way than i kind find on the net, it would very much appriciated.

I think... to be honest, my pitfall is the Lift coefficient. I am.. just so confused about how i go about calculating this?

I know that L = CL * (r * (V sqrd)/2) * A

but CL? i have seen many ways of doing it, and i don't really understand it at all and don't get the correct results, and without "understanding" it, i can't go about trying to change it or make it work.

Im not trying to create Mircrosoft flight sim.

Just trying to simulate a simple plane and get the correct movement which i cannot seem to do.

I am using using Newtons Physics Dynamics in C++ and Lua.

So it really is a case of once the caluclations are done, then its a case of simply giving a body that force.

The programming is not a problem, it the correct calculations i just cannot seem to do.

Again, nothing complex, just basic for now and then i can slowly learn and add to it, but i just cannot seem to get any sort of resemblance of flight.

Hope you can help.
Andy

You're going to need a lot more knowledge of flight mechanics, particularly such concepts as body frames, wind frames, and Euler angles. You will also need to know how to formulate the 6-DOF equations of motion in the body frame of the airplane. I can guarantee that you won't get anywhere if you aren't familiar with these concepts.
 
  • #17
Brian_C said:
You're going to need a lot more knowledge of flight mechanics, particularly such concepts as body frames, wind frames, and Euler angles. You will also need to know how to formulate the 6-DOF equations of motion in the body frame of the airplane. I can guarantee that you won't get anywhere if you aren't familiar with these concepts.

Hi Brian, cheers for your advise. And yes i agree and i am doing my best learn about all these, but please correct me if I am wrong (because more than likely i am!) but 6-DOF and a few other factors mentioned are not actually necessary for the basic flight sim. For instance, I am sure Microsofts flight sim 98 and maybe 200o wasnt 6DOF? (from what I've read), again might be wrong.

being new to flight simulation programming, i thought i would (if possible) try and start from the very beginning. Even just to get a working model act and move somwhat like a plane by applying forces would be a start. Which i sort of have got, but its very unstable and not working how it should, which is obviously down to my lack of knowledge.

But I am going to keep on trying, reading, asking and learning.

And again, thanks for the advise, keep it coming if you feel like helping me along! :)

One thing i havnt accounted for in my sim yet is the vertical stablizer which i really don't think is helping matters. So any input on how i put forces on this to keep it from "slipping" would be great. I presume its very similer to the lift equations, only on a different axis but also equal on both sides (untill rudder input of course)?

Thanks
Andy
 
  • #18
Gibbon said:
6-DOF
The 6 DOF: an aircraft can move in the x, y, z direction, and it can rotate about 3 different axis, pitch, roll, yaw. Probably the simplest game with these 6 DOF was Descent, a spacecraft in a gravity free enviroment, moving around in a series of tunnels. There was something equivalent to aerodynamic drag though (or the equivalent of accelerometers) that allowed it to stop moving or rotating without a lot of effort.

Which i sort of have got, but its very unstable
You probable need some dampening factors, which is the drag on the wing tips that dampen roll, drag on the fuselage and vertical stabilizer that dampens yaw, and drag on the horizontal stabilizer that dampens pitch.

One thing i havnt accounted for in my sim yet is the vertical stablizer which i really don't think is helping matters. So any input on how i put forces on this to keep it from "slipping" would be great. I presume its very similer to the lift equations, only on a different axis but also equal on both sides (untill rudder input of course)?
You can use the same CL equation I suggested before. You can set the vertical stabilizer size to about 1/8th the area of the main wing, similar to what I suggested for the elevator.
 
  • #19
Jeff Reid said:
The 6 DOF: an aircraft can move in the x, y, z direction, and it can rotate about 3 different axis, pitch, roll, yaw.

You probable need some dampening factors, which is the drag on the wing tips that dampen roll, drag on the fuselage and vertical stabilizer that dampens yaw, and drag on the horizontal stabilizer that dampens pitch.

You can use the same CL equation I suggested before. You can set the vertical stabilizer size to about 1/8th the area of the main wing, similar to what I suggested for the elevator.

Ok, thanks Jeff, ill have good go at adding the vertical stablizer in. Also i think i need to have another good look over my variables measurements as i don't think there consistant and also... i know for sure some are based on real specs of a cessna (which i chose to base it on) and others that I've just set randomly which i really don't think help matters!

And also dampening factors sound like a definate need of. So ill loo kinto them to.

Thanks again for the advise, ill try and get soe photos and/or vids up soon so you (if your interested) can see what's happening for youself.

thanks
Andy
 

Related to Anyone fancy doing a good deed? Aerodynamics.

1. How does aerodynamics affect the motion of objects?

Aerodynamics is the study of how air moves around objects. It affects the motion of objects by creating forces such as lift, drag, and thrust. These forces determine how the object will move through the air.

2. What is the purpose of studying aerodynamics?

The purpose of studying aerodynamics is to understand how air flows around objects and how it affects their movement. This knowledge is important in fields such as aviation, automotive engineering, and sports.

3. How does shape and design impact aerodynamics?

The shape and design of an object can greatly impact its aerodynamics. A streamlined shape, with smooth curves and minimal surface area, can reduce drag and increase efficiency. On the other hand, a bulky or irregular shape can create more drag and hinder movement.

4. What are some real-world applications of aerodynamics?

Aerodynamics is used in a variety of real-world applications, including designing airplanes and cars for optimal performance, creating efficient wind turbines, and improving the performance of athletes in sports like cycling and skiing.

5. How does air density affect aerodynamics?

Air density plays a significant role in aerodynamics. Objects moving through denser air will experience more drag, while objects moving through less dense air will experience less drag. This is why airplane pilots must consider air density when calculating their takeoff and landing speeds.

Similar threads

Replies
1
Views
923
Replies
1
Views
2K
Replies
1
Views
1K
  • Mechanics
Replies
6
Views
2K
Replies
4
Views
689
  • General Discussion
Replies
7
Views
950
Replies
14
Views
7K
Replies
17
Views
2K
Replies
5
Views
1K
Back
Top