marss 0.0.3

Mars celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
pub const MARS_MASS: f64 = 6.4171e23;
pub const MARS_RADIUS: f64 = 3_389_500.0;
pub const MARS_EQUATORIAL_RADIUS: f64 = 3_396_200.0;
pub const MARS_POLAR_RADIUS: f64 = 3_376_200.0;
pub const SURFACE_GRAVITY: f64 = 3.720_76;
pub const J2_MARS: f64 = 1.960_45e-3;
pub const MOI_FACTOR: f64 = 0.3644;

pub const SEMI_MAJOR_AXIS_AU: f64 = 1.523_679;
pub const ECCENTRICITY: f64 = 0.0934;
pub const INCLINATION_DEG: f64 = 1.851;
pub const LONGITUDE_ASCENDING_NODE_DEG: f64 = 49.558;
pub const ARGUMENT_PERIHELION_DEG: f64 = 286.502;
pub const MEAN_ANOMALY_J2000_DEG: f64 = 19.3564;

pub const SIDEREAL_DAY_S: f64 = 88_642.66;
pub const SOL_S: f64 = 88_775.244;
pub const AXIAL_TILT_DEG: f64 = 25.19;
pub const OMEGA_MARS: f64 = 7.088_218e-5;

pub const SURFACE_PRESSURE_PA: f64 = 636.0;
pub const CO2_FRACTION: f64 = 0.9532;
pub const N2_FRACTION: f64 = 0.027;
pub const AR_FRACTION: f64 = 0.016;
pub const ATMOSPHERE_MOLAR_MASS: f64 = 0.04334;
pub const CO2_MOLAR_MASS: f64 = 0.04401;
pub const R_SPECIFIC: f64 = 191.84;
pub const MEAN_TEMPERATURE_K: f64 = 210.0;
pub const SUBSOLAR_MAX_TEMP_K: f64 = 293.0;
pub const POLAR_MIN_TEMP_K: f64 = 130.0;
pub const CO2_FROST_POINT_K: f64 = 148.0;
pub const BOND_ALBEDO: f64 = 0.250;
pub const SCALE_HEIGHT_M: f64 = 11_100.0;
pub const LAPSE_RATE: f64 = 0.0025;

pub const MEAN_DUST_OPTICAL_DEPTH: f64 = 0.5;
pub const GLOBAL_STORM_OPTICAL_DEPTH: f64 = 4.0;

pub const OLYMPUS_MONS_HEIGHT_M: f64 = 21_900.0;
pub const HELLAS_DEPTH_M: f64 = 7_152.0;
pub const DICHOTOMY_OFFSET_M: f64 = 5_500.0;

pub const CORE_RADIUS_M: f64 = 1_830_000.0;
pub const CORE_DENSITY: f64 = 6_000.0;
pub const MANTLE_DENSITY: f64 = 3_500.0;
pub const CRUST_DENSITY: f64 = 2_900.0;
pub const CRUST_THICKNESS_M: f64 = 50_000.0;
pub const SURFACE_HEAT_FLUX_MW_M2: f64 = 20.0;

pub const ICE_DENSITY: f64 = 917.0;
pub const CO2_ICE_DENSITY: f64 = 1_562.0;
pub const NORTH_CAP_ICE_VOLUME_KM3: f64 = 1_200_000.0;
pub const SOUTH_CAP_AREA_KM2: f64 = 350_000.0;
pub const CELSIUS_TO_KELVIN: f64 = 273.15;

pub const SECONDS_PER_SOL: f64 = SOL_S;
pub const SECONDS_PER_YEAR: f64 = 3.155_76e7;
pub const MARS_YEAR_SOLS: f64 = 668.5991;
pub const MARS_YEAR_S: f64 = MARS_YEAR_SOLS * SOL_S;

pub const STONY_ASTEROID_DENSITY: f64 = 3_000.0;
pub const IRON_ASTEROID_DENSITY: f64 = 7_874.0;
pub const MT_TNT_TO_JOULE: f64 = 4.184e15;
pub const KT_TNT_TO_JOULE: f64 = 4.184e12;

pub const KLEIBER_A: f64 = 3.5;
pub const MCNAB_A: f64 = 0.024;
pub const GEN_TIME_A: f64 = 4.88;
pub const LIFESPAN_A: f64 = 11.8;

pub const SURFACE_AIR_DENSITY: f64 = 0.020;
pub const MARS_SURFACE_AREA: f64 = 1.4437e14;
pub const GEOTHERMAL_GRADIENT: f64 = 0.005;

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;