mercurys 0.0.3

Mercury celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
pub mod atmosphere;
pub mod biosphere;
pub mod geodata;
pub mod geology;
pub mod hydrology;
pub mod lighting;
pub mod physics;
pub mod rendering;
pub mod satellites;
pub mod temporal;
pub mod terrain;

pub const SURFACE_GRAVITY: f64 = 3.7;
pub const MEAN_DENSITY: f64 = 5427.0;
pub const BOND_ALBEDO: f64 = 0.068;
pub const GEOMETRIC_ALBEDO: f64 = 0.142;
pub const ESCAPE_VELOCITY: f64 = 4250.0;
pub const HILL_SPHERE_RADIUS: f64 = 1.75e8;

pub const SEMI_MAJOR_AXIS_M: f64 = 5.7909e10;
pub const ECCENTRICITY: f64 = 0.205630;
pub const ORBITAL_PERIOD_S: f64 = 7_600_521.6;
pub const ORBITAL_PERIOD_DAYS: f64 = 87.969;
pub const MEAN_ORBITAL_VELOCITY: f64 = 47_360.0;
pub const SYNODIC_PERIOD_DAYS: f64 = 115.88;

pub const SIDEREAL_DAY_S: f64 = 5_067_014.4;
pub const SOLAR_DAY_S: f64 = 15_201_340.8;
pub const AXIAL_TILT_DEG: f64 = 0.034;
pub const AXIAL_TILT_RAD: f64 = 5.9341e-4;
pub const ANGULAR_VELOCITY: f64 = 1.2400e-6;
pub const MOI_FACTOR: f64 = 0.346;
pub const LIBRATION_AMPLITUDE_ARCSEC: f64 = 38.5;

pub const SUBSOLAR_TEMP_K: f64 = 700.0;
pub const NIGHTSIDE_TEMP_K: f64 = 100.0;
pub const MEAN_SURFACE_TEMP_K: f64 = 440.0;
pub const POLAR_COLD_TRAP_TEMP_K: f64 = 50.0;
pub const SOLAR_CONSTANT_PERIHELION: f64 = 14_446.0;
pub const SOLAR_CONSTANT_APHELION: f64 = 6_272.0;
pub const SOLAR_CONSTANT_MEAN: f64 = 9_083.0;
pub const SURFACE_EMISSIVITY: f64 = 0.95;
pub const THERMAL_INERTIA: f64 = 75.0;
pub const CELSIUS_TO_KELVIN: f64 = 273.15;

pub const CORE_RADIUS: f64 = 2_020_000.0;
pub const CORE_RADIUS_FRACTION: f64 = 0.83;
pub const INNER_CORE_RADIUS: f64 = 1_000_000.0;
pub const MANTLE_THICKNESS: f64 = 420_000.0;
pub const CRUST_THICKNESS: f64 = 35_000.0;
pub const CORE_DENSITY: f64 = 7200.0;
pub const MANTLE_DENSITY: f64 = 3400.0;
pub const CRUST_DENSITY: f64 = 3100.0;
pub const CMB_TEMPERATURE: f64 = 2000.0;
pub const HEAT_FLUX_MW_M2: f64 = 20.0;

pub const DIPOLE_MOMENT: f64 = 4.0e19;
pub const EQUATORIAL_FIELD_T: f64 = 300.0e-9;
pub const MAGNETOPAUSE_STANDOFF_R: f64 = 1.45;
pub const DIPOLE_OFFSET_NORTH_KM: f64 = 484.0;

pub const EXOSPHERE_SURFACE_PRESSURE_PA: f64 = 1.0e-10;
pub const NA_COLUMN_DENSITY: f64 = 1.0e15;
pub const K_COLUMN_DENSITY: f64 = 1.0e13;
pub const CA_COLUMN_DENSITY: f64 = 1.0e12;
pub const MG_COLUMN_DENSITY: f64 = 5.0e12;
pub const O_COLUMN_DENSITY: f64 = 1.0e14;
pub const H_COLUMN_DENSITY: f64 = 1.0e13;
pub const HE_COLUMN_DENSITY: f64 = 1.0e14;
pub const NA_SCALE_HEIGHT_KM: f64 = 120.0;
pub const K_SCALE_HEIGHT_KM: f64 = 90.0;
pub const HE_SCALE_HEIGHT_KM: f64 = 230.0;

pub const LOWEST_POINT_M: f64 = -5380.0;
pub const HIGHEST_POINT_M: f64 = 4480.0;
pub const CALORIS_DIAMETER_M: f64 = 1_550_000.0;
pub const REGOLITH_DEPTH_M: f64 = 15.0;
pub const REGOLITH_POROSITY: f64 = 0.45;
pub const CRATER_DENSITY_PER_KM2: f64 = 0.15;

pub const LOVE_H2: f64 = 0.77;
pub const LOVE_K2: f64 = 0.451;
pub const TIDAL_Q: f64 = 100.0;
pub const J2: f64 = 6.0e-5;

pub const POLAR_ICE_MASS_KG: f64 = 1.0e14;
pub const PSR_AREA_KM2: f64 = 12_000.0;
pub const ICE_STABILITY_DEPTH_M: f64 = 0.1;
pub const WATER_ICE_ALBEDO: f64 = 0.8;
pub const RADAR_BRIGHT_CRATERS: u32 = 43;

pub const SECONDS_PER_EARTH_DAY: f64 = 86_400.0;
pub const SECONDS_PER_YEAR: f64 = 31_557_600.0;
pub const J2000_JD: f64 = 2_451_545.0;

pub const MICROMETEORITE_FLUX: f64 = 1.0e-16;
pub const SOLAR_WIND_SPUTTERING_RATE: f64 = 1.0e-9;
pub const NPFP_PRODUCTION_RATE: f64 = 5.0e-18;
pub const DARKENING_TIMESCALE_MYR: f64 = 500.0;