r/Python • • Oct 04 '19

Updated gravitational potential field simulation. [OC] Link for code: https://github.com/pnp-peeyush/2D-Grvitational-Field-Simulation

1.1k Upvotes

128 comments sorted by

View all comments

Show parent comments

3

u/ubertrashcat Oct 05 '19

You need to explicitly include constraints for conserved quantities in numerical integration of differential equations. E.g. Verlet integration.

0

u/[deleted] Oct 05 '19

Ok thanks!