ioss 0.0.3

Io celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct RegolithLayer {
    pub thickness_m: f64,
    pub density_kg_m3: f64,
    pub ice_fraction: f64,
}

impl RegolithLayer {
    pub fn porosity(&self) -> f64 {
        (1.0 - self.density_kg_m3 / 3_500.0).clamp(0.0, 1.0)
    }
    pub fn thermal_inertia(&self) -> f64 {
        self.density_kg_m3 * (250.0 + 100.0 * self.ice_fraction)
    }
}

pub fn sulfur_crust_regolith() -> RegolithLayer {
    RegolithLayer {
        thickness_m: 3.0,
        density_kg_m3: 2_000.0,
        ice_fraction: 0.0,
    }
}

pub fn so2_frost_layer() -> RegolithLayer {
    RegolithLayer {
        thickness_m: 0.5,
        density_kg_m3: 1_500.0,
        ice_fraction: 0.80,
    }
}