ioss 0.0.3

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

impl RegolithResource {
    pub fn oxygen_mass_kg(&self, processed_mass_kg: f64) -> f64 {
        processed_mass_kg * self.oxygen_yield_fraction
    }
    pub fn ice_feedstock_kg(&self, processed_mass_kg: f64) -> f64 {
        processed_mass_kg * self.ice_fraction
    }
}

pub fn sulfur_rich_resource() -> RegolithResource {
    RegolithResource {
        ice_fraction: 0.00,
        oxygen_yield_fraction: 0.20,
        bulk_density_kg_m3: 2_500.0,
    }
}