1
0

add plots for a perturbator with mass

This commit is contained in:
Thibault Barnouin
2021-11-14 00:13:35 +01:00
parent 48b6027406
commit 51ca5d0c0c
4 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ from lib.units import *
def main(): def main():
#initialisation #initialisation
m = np.array([1., 1., 0])*Ms # Masses in Solar mass m = np.array([1., 1., 1e-5])*Ms # Masses in Solar mass
a = np.array([1., 1., 5.])*au # Semi-major axis in astronomical units a = np.array([1., 1., 5.])*au # Semi-major axis in astronomical units
e = np.array([0., 0., 1./4.]) # Eccentricity e = np.array([0., 0., 1./4.]) # Eccentricity
psi = np.array([0., 0., 0.])*np.pi/180. # Inclination of the orbital plane in degrees psi = np.array([0., 0., 0.])*np.pi/180. # Inclination of the orbital plane in degrees
@@ -31,12 +31,12 @@ def main():
dyn_syst.COMShift() dyn_syst.COMShift()
duration, step1, step2 = 100*yr, 1e4, 1e5 duration, step1, step2 = 100*yr, 1e4, 1e5
E1, L1 = dyn_syst.leapfrog(duration, step1, recover_param=True)#, display=True) E1, L1 = dyn_syst.leapfrog(duration, step1, recover_param=True, display=True)
E2, L2 = dyn_syst.leapfrog(duration, step2, recover_param=True)#, display=True) E2, L2 = dyn_syst.leapfrog(duration, step2, recover_param=True)#, display=True)
#E1, L1 = dyn_syst.hermite(duration, step1, recover_param=True)#, display=True) #E1, L1 = dyn_syst.hermite(duration, step1, recover_param=True)#, display=True)
#E2, L2 = dyn_syst.hermite(duration, step2, recover_param=True)#, display=True) #E2, L2 = dyn_syst.hermite(duration, step2, recover_param=True)#, display=True)
parameters = [duration, [step1, step2], dyn_syst, "leapfrog"] parameters = [duration, [step1, step2], dyn_syst, "leapfrog"]
display_parameters([E1, E2], [L1, L2], parameters=parameters, savename="3bodies_leapfrog") display_parameters([E1, E2], [L1, L2], parameters=parameters, savename="3bodies_mass_leapfrog")
return 0 return 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB