@@ -15,38 +15,25 @@ module celestial_body_module
1515 ! ! A celestial body (Planet, moon, etc.)
1616 ! ! The `ID` from the [[base_class]] is the NAIF SPICE ID code for the body
1717 real (wp) :: mu = zero ! ! gravitational parameter \( \mu \) [\(km^3/s^2\)]
18+ ! note: also should add radius, etc.
1819 end type celestial_body
1920
20-
21- type (celestial_body),parameter ,public :: body_ssb = &
22- celestial_body(0 , ' SSB' , 0.0_wp ) ! ! solar-system barycenter
21+ type (celestial_body),parameter ,public :: body_ssb = celestial_body(0 , ' SSB' , 0.0_wp ) ! ! solar-system barycenter [note: don't have mu defined here yet]
2322
2423 ! define some bodies:
2524 ! MU values from: https://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/gm_de431.tpc
26- type (celestial_body),parameter ,public :: body_sun = &
27- celestial_body(10 , ' Sun' ,1.3271244004193938E+11_wp )
28- type (celestial_body),parameter ,public :: body_mercury = &
29- celestial_body(199 ,' Mercury' ,2.2031780000000021E+04_wp )
30- type (celestial_body),parameter ,public :: body_venus = &
31- celestial_body(299 ,' Venus' ,3.2485859200000006E+05_wp )
32- type (celestial_body),parameter ,public :: body_earth = &
33- celestial_body(399 ,' Earth' ,3.9860043543609598E+05_wp )
34- type (celestial_body),parameter ,public :: body_earth_moon_barycenter = &
35- celestial_body(3 ,' Earth-Moon Barycenter' ,4.0350323550225981E+05_wp )
36- type (celestial_body),parameter ,public :: body_moon = &
37- celestial_body(301 ,' Moon' ,4.9028000661637961E+03_wp )
38- type (celestial_body),parameter ,public :: body_mars = &
39- celestial_body(499 ,' Mars' ,4.282837362069909E+04_wp )
40- type (celestial_body),parameter ,public :: body_jupiter = &
41- celestial_body(599 ,' Jupiter' ,1.266865349218008E+08_wp )
42- type (celestial_body),parameter ,public :: body_saturn = &
43- celestial_body(699 ,' Saturn' ,3.793120749865224E+07_wp )
44- type (celestial_body),parameter ,public :: body_uranus = &
45- celestial_body(799 ,' Uranus' ,5.793951322279009E+06_wp )
46- type (celestial_body),parameter ,public :: body_neptune = &
47- celestial_body(899 ,' Neptune' ,6.835099502439672E+06_wp )
48- type (celestial_body),parameter ,public :: body_pluto = &
49- celestial_body(999 ,' Pluto' ,8.696138177608748E+02_wp )
25+ type (celestial_body),parameter ,public :: body_sun = celestial_body(10 , ' Sun' , 1.3271244004193938E+11_wp )
26+ type (celestial_body),parameter ,public :: body_mercury = celestial_body(199 ,' Mercury' , 2.2031780000000021E+04_wp )
27+ type (celestial_body),parameter ,public :: body_venus = celestial_body(299 ,' Venus' , 3.2485859200000006E+05_wp )
28+ type (celestial_body),parameter ,public :: body_earth = celestial_body(399 ,' Earth' , 3.9860043543609598E+05_wp )
29+ type (celestial_body),parameter ,public :: body_earth_moon_barycenter = celestial_body(3 , ' Earth-Moon Barycenter' ,4.0350323550225981E+05_wp )
30+ type (celestial_body),parameter ,public :: body_moon = celestial_body(301 ,' Moon' , 4.9028000661637961E+03_wp )
31+ type (celestial_body),parameter ,public :: body_mars = celestial_body(499 ,' Mars' , 4.282837362069909E+04_wp )
32+ type (celestial_body),parameter ,public :: body_jupiter = celestial_body(599 ,' Jupiter' , 1.266865349218008E+08_wp )
33+ type (celestial_body),parameter ,public :: body_saturn = celestial_body(699 ,' Saturn' , 3.793120749865224E+07_wp )
34+ type (celestial_body),parameter ,public :: body_uranus = celestial_body(799 ,' Uranus' , 5.793951322279009E+06_wp )
35+ type (celestial_body),parameter ,public :: body_neptune = celestial_body(899 ,' Neptune' , 6.835099502439672E+06_wp )
36+ type (celestial_body),parameter ,public :: body_pluto = celestial_body(999 ,' Pluto' , 8.696138177608748E+02_wp )
5037
5138! *****************************************************************************************
5239 end module celestial_body_module
0 commit comments