1
0

remove dimensionless Ga

This commit is contained in:
Thibault Barnouin
2022-01-18 10:39:58 +01:00
parent 2715244837
commit e10b4a380c
5 changed files with 16 additions and 17 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) * Ga * otherbody.m / (rij ** 3)
body.a = body.a - (body.q - otherbody.q) * G * otherbody.m / (rij ** 3)
body.v = body.v + dt * body.a