Documentation / @interstellar-tools/equations / exponentialAtmosphereDensity
Function: exponentialAtmosphereDensity()
ts
function exponentialAtmosphereDensity(h: number): number;Defined in: orbits/exponential-atmosphere-density.ts:93
The density of Earth's atmosphere at a height, from the exponential model: within each band of heights, the density falls by a factor of
Where:
is the height above the surface (m) is the base of the band falls in, the density there (kg/m³), and the band's scale height, from Vallado's table 8-4: 28 bands from the ground to 1 000 km
Units
- Input:
hin m. - Output:
in kg/m³.
Notes
- An average. The table is the CIRA-72 reference atmosphere at moderate solar activity. Above about 200 km, the real density swings by a factor of ten between solar minimum and maximum, and between day and night: use a model with solar activity, such as NRLMSISE-00, for anything more than an estimate.
- Above 1 000 km, the last band's scale height carries on.
- Feed it to atmosphericDragAcceleration for the drag on a satellite.
In practiceThe ISS, 420 km up
2.6 × 10⁻¹² kg/m³
A trillionth of the air at sea level
Thin enough to orbit through, thick enough that the ISS loses a couple of kilometres of height a month and has to be boosted back up.
ts
exponentialAtmosphereDensity(420_000); // ≈ 2.647e-12 kg/m³Parameters
| Parameter | Type | Description |
|---|---|---|
h | number | Height above the surface |
Returns
number
The density
Throws
- If
his not a finite number. - If
h < 0.
Example
ts
// Vallado, example 8-4: 747.2119 km up
exponentialAtmosphereDensity(747_211.9); // ≈ 2.1219854e-14 kg/m³See
- atmosphericDragAcceleration
- Vallado, Fundamentals of Astrodynamics and Applications, 4th ed. (2013), table 8-4 and example 8-4