Skip to content

Commit

Permalink
invert acceleration sign in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhmaj committed Mar 28, 2024
1 parent 0e3c327 commit 06eedbf
Show file tree
Hide file tree
Showing 4 changed files with 18,545 additions and 18,523 deletions.
2 changes: 1 addition & 1 deletion script/analytical_cube_gravity.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _evaluate_acceleration(X: float, Y: float, Z: float, i: int):
total_sum = (total_sum_1 - total_sum_2).evalf()
else:
total_sum = total_sum.evalf(subs={_x3: 1 - Z}) - total_sum.evalf(subs={_x3: -1 - Z})
return total_sum * GRAVITATIONAL_CONSTANT * DENSITY
return total_sum * GRAVITATIONAL_CONSTANT * DENSITY * -1.0


def evaluate_acceleration(X: float, Y: float, Z: float):
Expand Down
Loading

0 comments on commit 06eedbf

Please sign in to comment.