Skip to content

Command line UI lets a user generate a variety of customizable N-body simulations in three dimensions.

Notifications You must be signed in to change notification settings

collinsinclair/N-Body-Improved

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-Body-Improved

by Collin Sinclair and Brandon Korb (collectively, Snorto - see option 10 in the menu ;) )

More info here.


Welcome to my new-and-improved N-Body Simulation application! This command line-based app will walk you through selecting a customizing an N-body simulation of any of the following varieties:

  • Sun-Earth System
  • Sun-Earth-Moon System
  • Kepler-16A Circumbinary Planet System
  • Random Cube of Bodies
  • Uniform Cube of Bodies
  • Pythagorean System (3-4-5 triangle)
  • Figure 8
  • Planetesimal Disk
  • Tiny Star Cluster

Once the user provides input for all customizable values, the program will generate, save, and display an animation of the system.

Usage

Clone the repo to your device and navigate to its directory. First, to ensure that the simulation has all of the resources needed to run, use pip3 install -r requirements.txt or equivalent. It is also necessary to install ffmpeg to create the animation. Then, simply run python3 main.py and have fun!

About

Command line UI lets a user generate a variety of customizable N-body simulations in three dimensions.

Resources

Stars

Watchers

Forks