ioss 0.0.3

Io celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[test]
fn reference_composition_so2_dominant() {
    let sp = ioss::exosphere::species::reference_composition();
    assert!(sp.len() >= 3);
    let dom = ioss::exosphere::species::dominant_species(&sp).unwrap();
    assert_eq!(dom.name, "SO2");
}

#[test]
fn dayside_charging() {
    let d = ioss::exosphere::charging::SurfaceCharging::dayside();
    assert!(d.surface_potential_v().is_finite());
}

#[test]
fn nightside_more_negative() {
    let day = ioss::exosphere::charging::SurfaceCharging::dayside();
    let night = ioss::exosphere::charging::SurfaceCharging::nightside();
    assert!(night.surface_potential_v() < day.surface_potential_v());
}

#[test]
fn jeans_parameter_positive() {
    assert!(ioss::exosphere::escape::jeans_parameter(130.0, 0.064) > 0.0);
}

#[test]
fn ballistic_hop_range() {
    assert!(ioss::exosphere::escape::ballistic_hop_range_m(400.0, 45.0) > 0.0);
}