Module atmosphere

Module atmosphere 

Source
Expand description

Enhanced atmospheric calculations for ballistics.

This module provides Rust-accelerated implementations of atmospheric calculations with full ICAO Standard Atmosphere support for improved accuracy at all altitudes.

Structs§

AtmoSock
Downrange-segmented atmosphere handler (MBA-1137), the density analogue of crate::wind::WindSock.

Functions§

calculate_air_density_cimp
Enhanced air density calculation using CIPM formula with ICAO atmosphere.
calculate_air_density_cipm
Legacy function name for backwards compatibility
calculate_atmosphere
Enhanced atmospheric calculation with ICAO Standard Atmosphere.
get_direct_atmosphere
Direct atmosphere calculation for simple cases.
get_local_atmosphere
Enhanced local atmospheric calculation with variable lapse rates.
get_local_atmosphere_humid
Humidity-aware companion to get_local_atmosphere: identical local density, but the speed of sound is the moist-air value (moist_speed_of_sound) evaluated at the LOCAL temperature and pressure.
moist_speed_of_sound
Speed of sound using an ideal-gas moist-air mixture approximation, first order in the water-vapor mole fraction.
resolve_station_conditions
Return the station temperature and pressure that calculate_atmosphere will use after applying the default-at-altitude resolution rules.
resolve_station_pressure
Resolve the station-pressure override for an air-density calculation.
resolve_station_temperature
Resolve the temperature override for an air-density calculation, mirroring resolve_station_pressure.

Type Aliases§

AtmoSegment
A single downrange-referenced atmosphere zone: (temp_c, pressure_hpa, humidity_percent, until_distance_m).