Post · 1 min read· pp. 19–20

Global constants

In pykep the access a number of common constants are provided for convenience. The user can overwrite their values if needed. These constants are not used in the pykep internals, they are only provided for convenience for the user to instantiate / use the various pykep objects and functionalities.

Pykep global constants

Constant’s NameSymbol in pykepUnitsValue
Astronomical Unitpykep.AUmm1.495978707e+11
Cavendish constantpykep.CAVENDISHm3sec2kg\frac{m^3}{sec^2 kg}6.67430e-11
Sun’s gravitational parameterpykep.MU_SUNm3sec2\frac{m^3}{sec^2}1.32712440041279419e20
Earth’s gravitational parameter (JPL DE440)pykep.MU_EARTHm3sec2\frac{m^3}{sec^2}3.98600435507e+14
Moon’s gravitational parameter (JPL DE440)pykep.MU_MOONm3sec2\frac{m^3}{sec^2}4.902800118e+12
Earth’s velocitypykep.EARTH_VELOCITYmsec\frac{m}{sec}29784.691831696804
Earth’s radiuspykep.EARTH_RADIUSmm6378137.0
Earth’s J2J_2pykep.EARTH_J2–0.00108262668
CR3BP: Moon-Earth parameterpykep.CR3BP_MU_EARTH_MOON–0.01215058439470971
BCP: Moon-Earth parameter (same as for the CR3BP)pykep.BCP_MU_EARTH_MOON–0.01215058439470971
BCP [SimoGomezJM95]: Scaled mass of the Sunpykep.BCP_MU_S–328900.55970856483
BCP [SimoGomezJM95]: Scaled Sun–(Earth + Moon) distancepykep.BCP_RHO_S–3.88811143E2
BCP [SimoGomezJM95]: Scaled angular velocity of the Sunpykep.BCP_OMEGA_S–-9.25195985E-01
Seconds in one daypykep.DAY2SEC–86400.0
Days in one secondpykep.SEC2DAY–1.1574074074074073e-05
Degrees in one radianspykep.RAD2DEG–57.29577951308232
Radians in one degreepykep.DEG2RAD–0.017453292519943295
Days in one yearpykep.YEAR2DAY–365.25
Years in one daypykep.DAY2YEAR–0.0027378507871321013