import numpy as np

# Physical constant and parameters

params = {
    "G": 6.67430e-11,  # Gravitational constant (m^3 kg^-1 s^-2)
    "M_E": 5.9722e24,  # Earth mass (kg)
    "M_M": 7.3477e22,  # Moon mass (kg)
    "R_E": 6.3710e6,  # Earth radius (m)
    "R_M": 1.7374e6,  # Moon radius (m)
    "rho0": 1.225,  # Sea-level air density (kg/m^3)
    "H": 8.50e3,  # Atmospheric scale height (m)
    "m_S": 2.6e6,  # Spacecraft mass (kg)
    "A": 77.0,  # Effective drag area (m^2)
    "C_D": 1.0,  # Drag coefficient (dimensionless)
}


# Earth--Moon initial conditions

# Epoch: 2026-01-01 00:00:00 UTC
# Fixed axes: initial Earth-to-Moon direction is +x.
r_rel = np.array([361024834.7968357, 0.0])       # m
v_rel = np.array([-16.992366011, 1088.819191257])  # m/s