#aerospace #engineering #atmosphere #planes

atmus

Atmospheric modeling, focused on the US 1976 Standard Atmosphere for now

8 releases

0.2.7 May 10, 2023
0.2.6 May 10, 2023
0.2.5 Feb 27, 2023
0.1.0 Feb 16, 2023

#210 in Science

MIT license

7KB
115 lines

Atmus

The 1976 US Standard Atmosphere model, written in Rust.

PLEASE NOTE:

  • Pressure and temperature are tested, but assumes altitude above 0km and below 80km.
  • Expanded altitude regimes are being worked on.
  • Improved documentation and structure are being worked on.

Usage

The API exposes a single public function. See the following example:

use crate::atmus::atmus;
fn test_atmus_return_values() {
	let some_result = atmus(1.0);
	assert_eq!(f32::floor(some_result.0), 89874.0);
	assert_eq!(f32::floor(some_result.1), 0.0);
}

The return is simply a tuple: (Pressure [Pa], Temperature [K]).
Atmus expects the altitude in kilometers.

Development References


lib.rs:

This crate is a Rust port of the 1976 US Standard Atmosphere.

No runtime deps