All Questions
Tagged with numerical-methods physics
2 questions
1
vote
2
answers
129
views
Gravity Simulation failing at short distances
I have a 2D space simulation with gravity acting on three bodies (e.g. sun and 2x planets). The simulation seems pretty stable with RK4 (was unstable with Euler). The problem arises if the orbit of ...
0
votes
2
answers
317
views
Integration error in high velocity
I've implemented a simple simulation of two planets (simple 2D disks really) in which the only force is gravity and there is also collision detection/response (collisions are completely elastic). I ...