1
0

debug integrator

This commit is contained in:
Thibault Barnouin
2021-10-22 14:10:12 +02:00
parent b096021fc4
commit 71f00c26a8
3 changed files with 17 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ from lib.integrator import frogleap
def main():
#initialisation
m = np.array([100, 2, 2])
m = np.array([1e5, 1, 1])
x1 = np.array([0, 0, 0])
x2 = np.array([1, 0, 0])
@@ -14,11 +14,11 @@ def main():
q = np.array([x1, x2, x3])
v1 = np.array([0, 0, 0])
v2 = np.array([1, 0, 0])
v3 = np.array([1, 0, 0])
v2 = np.array([0, 0, 0])
v3 = np.array([0, 0, 0])
p = m*np.array([v1, v2, v3])
q, p = frogleap(10, 1, m, q, p, display=True)
q, p = frogleap(10, 0.01, m, q, p, display=True)
return 0
if __name__ == '__main__':