1
0

add plot of sma and ecc for inner binary

This commit is contained in:
Thibault Barnouin
2021-11-19 15:41:09 +01:00
parent 66afb18885
commit 5263826cc6
5 changed files with 41 additions and 21 deletions

View File

@@ -93,11 +93,16 @@ def hermite(dyn_syst, duration, dt, recover_param=False, display=False, savename
N = np.ceil(duration / dt).astype(int)
E = np.zeros(N)
L = np.zeros((N, 3))
sma = np.zeros(N)
ecc = np.zeros(N)
for j in range(N):
HPC(dyn_syst, dt)
E[j] = dyn_syst.E
L[j] = dyn_syst.L
sma[j] = bin_syst.sma
ecc[j] = bin_syst.ecc
if display and j % 100 == 0:
# display progression
@@ -112,4 +117,4 @@ def hermite(dyn_syst, duration, dt, recover_param=False, display=False, savename
system("convert tmp/temp.gif -fuzz 10% -layers Optimize plots/{0:s}_dynsyst.gif".format(savename))
if recover_param:
return E, L
return E, L, sma, ecc