1
0

add Energy display

This commit is contained in:
Thibault Barnouin
2022-01-11 14:13:41 +01:00
parent 62b9f0a0bc
commit 700c0d2111
2 changed files with 15 additions and 2 deletions

View File

@@ -14,7 +14,11 @@ def main():
m = np.array([1., 1., 1e-1],dtype=np.longdouble)*Ms/Ms # Masses in Solar mass
a = np.array([1., 1., 5.],dtype=np.longdouble)*au/au # Semi-major axis in astronomical units
e = np.array([0., 0., 0.],dtype=np.longdouble) # Eccentricity
<<<<<<< HEAD
psi = np.array([0., 0., 80.],dtype=np.longdouble)*np.pi/180. # Inclination of the orbital plane in degrees
=======
psi = np.array([0., 0., 0.],dtype=np.longdouble)*np.pi/180. # Inclination of the orbital plane in degrees
>>>>>>> 22fa187 (add Energy display)
x1 = np.array([0., -1., 0.],dtype=np.longdouble)*a[0]*(1.+e[0])
x2 = np.array([0., 1., 0.],dtype=np.longdouble)*a[1]*(1.+e[1])