Skip to main content

Module atmosphere

Module atmosphere 

Source

Constants§

G
Gravitational acceleration (m/s²).
GAMMA
Ratio of specific heats for air (γ = cp/cv).
GAS_CONSTANT_AIR
Specific gas constant for dry air (J/(kg·K)).
LAPSE_RATE
Temperature lapse rate (K/m) — troposphere.
SEA_LEVEL_DENSITY
Sea level density (kg/m³) — ISA standard.
SEA_LEVEL_PRESSURE
Sea level pressure (Pa) — ISA standard.
SEA_LEVEL_TEMPERATURE
Sea level temperature (K) — ISA standard.
TROPOPAUSE
Tropopause altitude (m).
TROPOPAUSE_TEMPERATURE
Temperature at the tropopause (K) — ISA standard.

Functions§

dynamic_pressure
Dynamic pressure: q = ½ρV²
mach_number
Mach number: M = V / a
pressure_altitude
Pressure altitude from given pressure (inverse of standard_pressure, troposphere).
speed_of_sound
Speed of sound in air: a = √(γRT)
standard_density
ISA standard density at altitude from ideal gas law.
standard_pressure
ISA standard pressure at altitude.
standard_temperature
ISA standard temperature at altitude.