moons 0.0.2

Moon celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn micrometeorite_overturn_rate_mm_myr(flux_index: f64) -> f64 {
    1.0 + 2.5 * flux_index.max(0.0)
}

pub fn space_weathering_index(exposure_myr: f64, solar_wind_factor: f64) -> f64 {
    (1.0 - (-exposure_myr / 80.0).exp()) * solar_wind_factor.max(0.0)
}

pub fn slope_relaxation_rate_mm_yr(slope_deg: f64, impact_churning: f64) -> f64 {
    slope_deg.max(0.0) * 0.02 + impact_churning.max(0.0) * 0.5
}