add massless object
10
main.py
@@ -12,9 +12,9 @@ from lib.units import *
|
||||
|
||||
def main():
|
||||
#initialisation
|
||||
m = np.array([1., 1., 1e-1],dtype=np.longdouble)*Ms#/Ms # Masses in Solar mass
|
||||
a = np.array([1.0, 1.0, 7.0],dtype=np.longdouble)*au#/au # Semi-major axis in astronomical units
|
||||
e = np.array([0., 0., 0.10],dtype=np.longdouble) # Eccentricity
|
||||
m = np.array([1., 1., 0.],dtype=np.longdouble)*Ms#/Ms # Masses in Solar mass
|
||||
a = np.array([1.00, 1.00, 10.0],dtype=np.longdouble)*au#/au # Semi-major axis in astronomical units
|
||||
e = np.array([0., 0., 0.25],dtype=np.longdouble) # Eccentricity
|
||||
psi = np.array([0., 0., 80.],dtype=np.longdouble)*np.pi/180. # Inclination of the orbital plane in degrees
|
||||
|
||||
x1 = np.array([0., -1., 0.],dtype=np.longdouble)*a[0]*(1.+e[0])
|
||||
@@ -28,12 +28,12 @@ def main():
|
||||
v = np.array([v1, v2, v3],dtype=np.longdouble)
|
||||
|
||||
#integration parameters
|
||||
duration, step = 5000*yr, np.longdouble(1./1.*86400.) #integration time and step in seconds
|
||||
duration, step = 5000*yr, np.longdouble(1./2.*86400.) #integration time and step in seconds
|
||||
integrator = "leapfrog"
|
||||
n_bodies = 3
|
||||
display = False
|
||||
gif = False
|
||||
savename = "{0:d}bodies_{1:s}".format(n_bodies, integrator)
|
||||
savename = "{0:d}bodies_massless_{1:s}".format(n_bodies, integrator)
|
||||
display_param = True
|
||||
|
||||
#simulation start
|
||||
|
||||
BIN
plots/3bodies_1_leapfrog_E.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
plots/3bodies_1_leapfrog_L.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
plots/3bodies_1_leapfrog_a_e.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
plots/3bodies_1_leapfrog_dEm.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
plots/3bodies_1_leapfrog_dL2.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
plots/3bodies_1_leapfrog_phi.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
plots/3bodies_massless_leapfrog_E.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
plots/3bodies_massless_leapfrog_L.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
plots/3bodies_massless_leapfrog_a_e.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
plots/3bodies_massless_leapfrog_dEm.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
plots/3bodies_massless_leapfrog_dL2.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
plots/3bodies_massless_leapfrog_phi.png
Normal file
|
After Width: | Height: | Size: 90 KiB |