/nBodySimulator

An N-body simulator animated with matplotlib.

Primary LanguagePythonMIT LicenseMIT

N-Body Simulator

A simple N-body simulator animated with matplotlib. Just assign the positions, velocities and masses and the simulation will take from there!

=== Examples included:

  • earthMoon - The moon orbiting around the earth
  • figureEight - A 3 body system that traces out a figure eight
  • twelveBodies - A system of twelve bodies that has interesting behavior

=== Requirements:

  • matplotlib
  • ffmpeg