moons 0.0.1

Moon celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    let earth = moons::interactions::earths::ensure_earths_binary_or_simulate();
    let open = moons::environment::radiation::RadiationEnvironment::nominal_surface();
    let shelter = moons::environment::radiation::RadiationEnvironment::sheltered(3.0);
    let thermal = moons::environment::thermal::ThermalEnvironment {
        local_time_hours: moons::LUNAR_DAY_HOURS * 0.5,
        latitude_deg: -85.0,
        shadowed: true,
    };

    println!(
        "mode={:?} open_msv_day={:.3} shelter_msv_day={:.3} temp_k={:.2}",
        earth.mode,
        open.effective_daily_dose_msv(),
        shelter.effective_daily_dose_msv(),
        thermal.surface_temperature_k(),
    );
}