Skip to content

Elementary n-body simulation accounting only for baryonic matter and ignoring particles g forces on each other

Notifications You must be signed in to change notification settings

samhpark1/N-body-Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

N-body-Sim

Elementary n-body simulation accounting only for baryonic matter and ignoring particles g forces on each other

How to run

SFML is required to run this program

  • MacOS
    brew install sfml
  • Linux
    sudo apt update
    sudo apt install libsfml-dev

Compilation

g++  main.cpp -I<path_to_SFML> -L<path_to_SFML> -lsfml-graphics -lsfml-window -lsfml-system

Execution

./a.out <number of particles> <time value scalar>
  • number of particles: depends on computational power of computer, recommend starting at 5000
  • time value scalar: scalar to speed/slow simulation
    • default: 1
    • suggested max: 5
    • (NOTE: increasing excessively will result in inaccuracies)

About

Elementary n-body simulation accounting only for baryonic matter and ignoring particles g forces on each other

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages