Troposphere To calculate the density of air as a function of altitude, one requires additional parameters. For the troposphere, the lowest part (~10 km) of the atmosphere, they are listed below, along with their values according to the
International Standard Atmosphere, using for calculation the
universal gas constant instead of the air specific constant: • p_0, sea level standard atmospheric pressure, 101325
Pa • T_0, sea level standard temperature, 288.15
K • g, earth-surface gravitational acceleration, 9.80665m/s2 • L,
temperature lapse rate, 0.0065K/m • R, ideal (universal) gas constant, 8.31446J/(
mol·K) • M,
molar mass of dry air, 0.0289652kg/mol Temperature at altitude h meters above sea level is approximated by the following formula (only valid inside the
troposphere, no more than ~18km above Earth's surface (and lower away from Equator)): T = T_0 - L h The pressure at altitude h is given by: p = p_0 \left(1 - \frac{L h}{T_0}\right)^\frac{g M}{R L} Density can then be calculated according to a molar form of the
ideal gas law: \rho = \frac{p M}{R T} = \frac{p M}{R T_0 \left(1 - \frac{Lh}{T_0}\right)} = \frac{p_0 M}{R T_0} \left(1 - \frac{L h}{T_0} \right)^{\frac{g M}{R L} - 1} where: • M,
molar mass • R,
ideal gas constant • T,
absolute temperature • p,
absolute pressure Note that the density close to the ground is \rho_0 = \frac{p_0 M}{R T_0} It can be easily verified that the
hydrostatic equation holds: \frac{dp}{dh} = -g\rho .
Exponential approximation As the temperature varies with height inside the troposphere by less than 25%, \frac{Lh}{T_0} and one may approximate: \rho = \rho_0 e^{\left(\frac{g M}{R L} - 1\right) \ln \left(1 - \frac{L h}{T_0}\right)} \approx \rho_0 e^{-\left(\frac{g M}{R L} - 1\right)\frac{L h}{T_0}} = \rho_0 e^{-\left(\frac{g M h}{R T_0} - \frac{L h}{T_0}\right)} Thus: \rho \approx \rho_0 e^{-h/H_n} Which is identical to the
isothermal solution, except that
Hn, the height scale of the exponential fall for density (as well as for
number density n), is not equal to
RT0/
gM as one would expect for an isothermal atmosphere, but rather: \frac{1}{H_n} = \frac{g M}{R T_0} - \frac{L}{T_0} Which gives
Hn = 10.4km. Note that for different gasses, the value of
Hn differs, according to the molar mass
M: It is 10.9 for nitrogen, 9.2 for oxygen and 6.3 for
carbon dioxide. The theoretical value for water vapor is 19.6, but due to vapor condensation the water vapor density dependence is highly variable and is not well approximated by this formula. The pressure can be approximated by another exponent: p = p_0 e^{\frac{g M}{R L} \ln \left(1 - \frac{L h}{T_0}\right)} \approx p_0 e^{-\frac{g M}{R L}\frac{L h}{T_0}} = p_0 e^{-\frac{g M h}{R T_0}} Which is identical to the
isothermal solution, with the same height scale . Note that the hydrostatic equation no longer holds for the exponential approximation (unless
L is neglected).
Hp is 8.4km, but for different gasses (measuring their partial pressure), it is again different and depends upon molar mass, giving 8.7 for nitrogen, 7.6 for oxygen and 5.6 for carbon dioxide.
Total content Further note that since
g, Earth's
gravitational acceleration, is approximately constant with altitude in the atmosphere, the pressure at height
h is proportional to the integral of the density in the column above
h, and therefore to the mass in the atmosphere above height
h. Therefore, the mass fraction of the troposphere out of all the atmosphere is given using the approximated formula for
p: 1 - \frac{p(h = 11\text{ km})}{p_0} = 1 - \left(\frac{T(11\text{ km})}{T_0} \right)^\frac{g M}{R L} \approx 76\% For nitrogen, it is 75%, while for oxygen this is 79%, and for carbon dioxide, 88%.
Tropopause Higher than the troposphere, at the
tropopause, the temperature is approximately constant with altitude (up to ~20km) and is 220K. This means that at this layer and , so that the exponential drop is faster, with for air (6.5 for nitrogen, 5.7 for oxygen and 4.2 for carbon dioxide). Both the pressure and density obey this law, so, denoting the height of the border between the troposphere and the tropopause as
U: \begin{align} p &= p(U) e^{-\frac{h - U}{H_\text{TP}}} = p_0 \left(1 - \frac{L U}{T_0}\right)^\frac{g M}{R L} e^{-\frac{h - U}{H_\text{TP}}} \\ \rho &= \rho(U) e^{-\frac{h - U}{H_\text{TP}}} = \rho_0 \left(1 - \frac{L U}{T_0}\right)^{\frac{g M}{R L} - 1} e^{-\frac{h - U}{H_\text{TP}}} \end{align} ==Composition==