31 lines
1.1 KiB
Julia
31 lines
1.1 KiB
Julia
# -----------------------------------------------------------------------------
|
|
# DEFINING CONSTANTS
|
|
# -----------------------------------------------------------------------------
|
|
|
|
export Body, Sun, Mercury, Venus, Earth, Moon, Mars
|
|
export Jupiter, Saturn, Uranus, Neptune, Pluto
|
|
export G, AU, init_STM, hour, day, year, second
|
|
export Pathlist
|
|
|
|
const Sun = Body(1.32712440018e11, 696000., "Electric", 10)
|
|
const Mercury = Body(2.2032e4, 2439., "heat", 1)
|
|
const Venus = Body(3.257e5, 6052., "turbid", 2)
|
|
const Earth = Body(3.986004415e5, 6378.1363, "Blues", 399)
|
|
const Moon = Body(4.902799e3, 1738., "Greys", 301)
|
|
const Mars = Body(4.305e4, 3397.2, "Reds", 4)
|
|
const Jupiter = Body(1.266865361e8, 71492., "solar", 5)
|
|
const Saturn = Body(3.794e7, 60268., "turbid", 6)
|
|
const Uranus = Body(5.794e6, 25559., "haline", 7)
|
|
const Neptune = Body(6.809e6, 24764., "ice", 8)
|
|
const Pluto = Body(9e2, 1151., "matter", 9)
|
|
|
|
const G = 6.67430e-20 #universal gravity parameter
|
|
const AU = 149597870.691 #km
|
|
const init_STM = vec(Matrix{Float64}(I,6,6))
|
|
const second = 1.
|
|
const hour = 3600.
|
|
const day = 86400.
|
|
const year = 365 * day
|
|
|
|
Pathlist = Vector{Vector{Vector{Float64}}}
|