atmus

Crates.ioatmus
lib.rsatmus
version
sourcesrc
created_at2023-02-16 19:24:07.748124
updated_at2024-11-08 17:38:07.21176
descriptionAtmospheric modeling, focused on the US 1976 Standard Atmosphere for now.
homepagehttps://github.com/OwenShepherd/atmus
repositoryhttps://github.com/OwenShepherd/atmus
max_upload_size
id786980
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Owen Shepherd (OwenShepherd)

documentation

README

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

Commit count: 32

cargo fmt