Skip to content

lewisfish/N-body-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-body-sim

N-body simulator. Simulation currently uses Euler integration, and simulates the movement of several of the bodies in the solar system.

alt text

Usage

To run: python main.py

In use:

  • t: enables trails
  • d: enbales debug messages
  • q: toggles quadtree view
  • mouse scroll or p or o: zooms in or out

Requirments

  • pygame
  • numpy

ToDo

  • better integration method
  • Implement Barnes-Hut
  • Optimisations
  • cmd line options