Difference between revisions of "Atmosphere"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Drag: Note that the ''m'' term in the equation isn't present in the real-world drag equation.)
(Add an example drag calculation for a simple pod and parachute combo.)
Line 9: Line 9:
  
 
== Drag ==
 
== Drag ==
 +
[[File:Ml16-XL_parachute.JPG|thumb|right|A Mk1-2 pod with a Mk16-XL parachute being slowed by drag in Kerbin's atmosphere.]]
 +
 
In the game, the force of atmospheric drag (''F<sub>D</sub>'') is modeled as follows:<ref>http://forum.kerbalspaceprogram.com/showthread.php/5235-Atmospheric-drag?p=88804&viewfull=1#post88804</ref>
 
In the game, the force of atmospheric drag (''F<sub>D</sub>'') is modeled as follows:<ref>http://forum.kerbalspaceprogram.com/showthread.php/5235-Atmospheric-drag?p=88804&viewfull=1#post88804</ref>
  
Line 25: Line 27:
  
 
The coefficient of drag (''d'') is calculated as the mass-weighted average of the max_drag values of all [[parts]] on the ship. For most ships without deployed parachutes, ''d'' will be very near 0.2, since this is the max_drag value of the vast majority of parts.
 
The coefficient of drag (''d'') is calculated as the mass-weighted average of the max_drag values of all [[parts]] on the ship. For most ships without deployed parachutes, ''d'' will be very near 0.2, since this is the max_drag value of the vast majority of parts.
 +
 +
As an example, the coefficient of drag for a craft consisting simply of a [[Command Pod Mk1-2]] (mass 4, drag 0.2) and a deployed [[Mk16-XL Parachute]] (mass 0.3, drag 500) is:
 +
 +
: <math>\frac{4 \cdot 0.2 + 0.3 \cdot 500}{4 + 0.3} = 35.07</math>
  
 
Note that the game does not calculate the ship's cross-sectional area (''A'') and assumes a value of 1 instead. This means the net force of drag on a spacecraft is unaffected by the width or orientation of a spacecraft, even if the spacecraft has very large wings. (Wings do affect the force of lift, however.)
 
Note that the game does not calculate the ship's cross-sectional area (''A'') and assumes a value of 1 instead. This means the net force of drag on a spacecraft is unaffected by the width or orientation of a spacecraft, even if the spacecraft has very large wings. (Wings do affect the force of lift, however.)
Line 52: Line 58:
  
 
: <math>v_T = \sqrt{\frac{10\, GM}{r^2\, \rho}}</math>
 
: <math>v_T = \sqrt{\frac{10\, GM}{r^2\, \rho}}</math>
 +
 +
For the Mk16 pod and parachute example pictured above, the drag coefficient is 35.07, so its terminal velocity at sea level on Kerbin (which is 600 km from Kerbin's center) is:
 +
 +
: <math>v_T = \sqrt{\frac{2\, GM}{r^2\, \rho \cdot 35.07}}</math>
 +
 +
: <math>\rho = 1 \cdot e^{-0/5000} \cdot 1.2230948554874 \cdot 0.008</math>
 +
 +
: <math>v_T = \sqrt{\frac{2 \cdot 6.674e \cdot 10^{-11} \cdot 5.2915793 \cdot 10^{22}}{600000^2 \cdot 1.2230948554874 \cdot 0.008 \cdot 35.07}} = 7.56 \operatorname{m/s}</math>
  
 
=== Examples ===
 
=== Examples ===

Revision as of 22:36, 9 January 2013

The atmosphere of a celestial body slows the movement of any object passing through it, a force known as atmospheric drag (or simply drag). An atmosphere also allows for aerodynamic lift. The celestial bodies with atmospheres are the planets Eve, Kerbin, Duna and Jool, as well as Laythe, a moon of Jool.

Atmospheric pressure diminishes exponentially with increasing altitude. An atmosphere's scale height is the distance over which atmospheric pressure changes as a factor of e, or 2.718. For example, Kerbin's atmosphere has a scale height of 5000 m, meaning the atmospheric pressure at altitude n is 2.718 times greater than the pressure at altitude n + 5000.

Atmospheres vary in temperature, though this has no bearing on gameplay.

Atmosphere allows aerobraking and easier landing. When atmosphere contains oxygen, it allows jet engines to work. However, atmosphere makes taking off from a planet more difficult and increases a stable orbit altitude.

Drag

File:Ml16-XL parachute.JPG
A Mk1-2 pod with a Mk16-XL parachute being slowed by drag in Kerbin's atmosphere.

In the game, the force of atmospheric drag (FD) is modeled as follows:[1]

where ρ is the atmospheric density (kg/m3), v is the ship's velocity (m/s), m is the ship's mass (kg), d is the coefficient of drag (dimensionless), and A is the cross-sectional area (m2).

Note that the m term is not present in the real-word drag equation. In the game, this causes acceleration due to drag (a = FD / m) to be unaffected by a ship's mass.

ρ can be derived from atmospheric pressure (p), which in turn is derived from an atmosphere's pressure at altitude 0 (p0) and scale height (H):

The coefficient of drag (d) is calculated as the mass-weighted average of the max_drag values of all parts on the ship. For most ships without deployed parachutes, d will be very near 0.2, since this is the max_drag value of the vast majority of parts.

As an example, the coefficient of drag for a craft consisting simply of a Command Pod Mk1-2 (mass 4, drag 0.2) and a deployed Mk16-XL Parachute (mass 0.3, drag 500) is:

Note that the game does not calculate the ship's cross-sectional area (A) and assumes a value of 1 instead. This means the net force of drag on a spacecraft is unaffected by the width or orientation of a spacecraft, even if the spacecraft has very large wings. (Wings do affect the force of lift, however.)

Terminal velocity

The terminal velocity of an object falling through an atmosphere is the velocity at which the force of gravity is equal to the force of drag. Terminal velocity changes as a function of altitude. Given enough time, an object falling into the atmosphere will slow to terminal velocity and then remain at terminal velocity for the rest of its fall.

Terminal velocity is important because:

  1. It describes the amount of velocity which a spacecraft must burn away when it is close to the ground.
  2. It represents the speed at which a ship should be traveling upward during a fuel-optimal ascent.

The force of gravity (FG) is:

where m is still the ship's mass, G is the gravitational constant, M is the mass of the planet, and r is the distance from the center of the planet to the falling object.

To find terminal velocity, we set FG equal to FD:

Assuming d is 0.2 (which is a good approximation, provided parachutes are not in use) and given that A is 1, this simplifies to:

For the Mk16 pod and parachute example pictured above, the drag coefficient is 35.07, so its terminal velocity at sea level on Kerbin (which is 600 km from Kerbin's center) is:

Examples

Altitude (m) vT (m/s)
Eve Kerbin Duna Jool Laythe
0 58.385 100.13 212.41 23.124 115.62
100 58.783 101.01 214.21 23.162 116.32
1000 62.494 109.30 231.16 23.508 122.83
10000 115.27 240.52 495.18 27.272 211.77

Notes

  1. http://forum.kerbalspaceprogram.com/showthread.php/5235-Atmospheric-drag?p=88804&viewfull=1#post88804