1
0

Branch with adimensionned variables

This commit is contained in:
Thibault Barnouin
2021-11-26 14:19:54 +01:00
parent 6da8a27606
commit e51f41c6a7
8 changed files with 19 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ def Kick(dyn_syst, dt):
for otherbody in dyn_syst.bodylist:
if body != otherbody:
rij = np.linalg.norm(body.q - otherbody.q)
body.a = body.a - (body.q - otherbody.q) * G * otherbody.m / (rij ** 3)
body.a = body.a - (body.q - otherbody.q) * Ga * otherbody.m / (rij ** 3)
body.v = body.v + dt * body.a