# Talk:JSBSim Aerodynamics

Drag is, by definition, a force in the direction of the relative wind. As such, it is always positive.

Lift is, by definition, a force at a right angle to the relative wind. It may be either positive or negative.

The Lift force and Drag force are components of the Total Aerodynamic Force.

Because the Lift and Drag forces are always at a right angle to each other by definition, the magnitude of the Total Aerodynamic Force is given by the Pythagorean theorem:

(Drag^2 + Lift^2)^.5 Note: Because this formula yields a magnitude only the positive root is used.

The direction of the Total Aerodynamic Force is derived by taking the inverse tangent of Lift/Drag. The resultant angle is referenced to the relative wind.

When deriving lift and drag numbers for your model you should look at (l^2+d^2)^.5 and atan(l/d). (l^2+d^2)^.5 should resemble abs(sin(alpha)) and atan(l/d) should move near 90 degrees when the wing is producing lift. It will move towards zero degrees at very low values of alpha, and at and after stall.

Or put another way:

- When air moves past a body, like a wing, an aerodynamic force is generated. We will call this force-vector "R."
- Lift is the component of force-vector "R" perpendicular to the relative wind.
- Drag is the component of force-vector "R" parallel to the relative wind.
- The direction of force-vector "R" in relation to the relative wind is arctan(Lift/Drag).

For most wings, the magnitude of force-vector "R" resembles abs(sin(alpha)) and arctan(Lift/Drag) is near 90 degrees when the wing is producing lift.

**Faking lift polars**- If we assume a symmetrical airfoil that stalls at +/- 15 degrees (0.26 radians) AoA and assume the lift is linear between the two we can create a table like:

```
<table >
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
0.26 0.26
-0.26 -0.26
</tableData>
</table>
```

Beyond +/- 22.5 degrees AoA we'll use 0.26 * sin(2*AoA) to approximate lift, and linear interpolate between 15 and 22.5 degrees AoA. (These numbers are rather arbitrary.) The resultant table returns the same value as alpha-rad for the "stable" flight regime so the function will accept the aeromatic coefficient. Outside of the "stable" flight regime a better number will be used allowing more realistic flight behavior at high alpha or beta angles.

```
<table >
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-3.14 0.0
-2.62 0.2252
-2.36 0.26
-2.09 0.2252
-1.57 0.0
-1.05 -0.2252
-0.79 -0.26
-0.52 -0.2252
-0.39 -0.1838
-0.26 -0.2588
0.0 0.0
0.26 0.2588
0.39 0.1838
0.52 0.2252
0.79 0.26
1.05 0.2252
1.57 0.0
2.09 -0.2252
2.36 -0.26
2.62 -0.2252
3.14 0.0
</tableData>
</table>
```

This table can drop directly into an aeromatic FDM to replace an instance of aero/alpha-rad or aero/beta-rad (changing the independent var of course).

- Calculating Stall Speed - For an aircraft in straight and level flight, lift is equal to the weight of the aircraft. If we plug some numbers into the equation

lift = QBar * Sw-sqft * Cl

Using the Fi-156 Storch as an example

Weight = 2688 lb Wing Area = 280 sq-ft Stall Speed = 32 mph Air Density = 0.00238 slugs/ft^3 QBar = 2.62871(lbf / ft^2) or psf

We get

2688 lb = 2.62871 (lbf / ft^2) * 280 ft^2 *Cl Cl = 2688 lb / (2.62871 (lbf / ft^2) * 280 ft^2) = 3.65

## Incorrect definition of the lift direction in this article?

The article claims that "Lift is the portion of the aerodynamic force that is at a right angle to the relative wind, and points up."

But when an aircraft banks into a turn, the lift vector follows the bank angle, leaning towards the center of the turn. And during inverted steady flight the lift value is negative, meaning lift still points towards "aircraft-up", even though that is "earth-down". (At least this is true for the MiG-15bis jsb-model).

I guess it would be more accurate to define lift as the portion of the aerodynamic force which is perpendicular to the wind vector _and_ part of the aircraft's symmetry plain (body x-z-plain), oriented towards negative-body-z.

According to this definition, the given example is wrong as well: Pointing an aircraft straight down would not lead to an ambiguous vector declaration, only pointing the aircraft body-y-axis parallel to the wind vector would (because that's when both defining plains are identical).

Am I right? If there are no objections I'll try to edit the page in a few days, OK? Andreas (talk) 07:03, 11 November 2015 (EST)

## Dihedral angle and roll moment

Here's my suggestion for the "FIXME" topic about how dihedral angle contributes to roll:

"If an aircraft with a dihedral wing encounters a wind component from the right, the effective angle of attack will slightly increase for the right wing and decrease for the left wing. This is because - from the wing's perspective - the side wind component approaches the right wing from below (leading to an increase in AOA and lift) and the left wing from above (leading to a decrease in AOA and lift).

Rolling the aircraft to one side will induce a side motion which leads to a resulting difference in lift, creating a roll moment counteracting the initial roll angle. This provides roll stability. Roll stability is also affected by the wing's sweep angle and fuselage position, which is why some aircraft have a negative dihedral wing to deliberately decrease roll stability."

Please correct my english if necessary. I'll submit the edit in a few days if no-one stops me :) Andreas (talk) 08:03, 11 November 2015 (EST)