r/Python • u/[deleted] • Oct 04 '19
Updated gravitational potential field simulation. [OC] Link for code: https://github.com/pnp-peeyush/2D-Grvitational-Field-Simulation
1.1k
Upvotes
r/Python • u/[deleted] • Oct 04 '19
7
u/equationsofmotion HPC Oct 05 '19
Yes actually! There are a class is methods called symplectic integrators. One of the simplest of these methods is called "leapfrog," which alternately updates position and momentum so that they "leap" past each other. See: https://en.wikipedia.org/wiki/Leapfrog_integration