Elementary n-body simulation accounting only for baryonic matter and ignoring particles g forces on each other
SFML is required to run this program
- MacOS
brew install sfml - Linux
sudo apt update sudo apt install libsfml-dev
g++ main.cpp -I<path_to_SFML> -L<path_to_SFML> -lsfml-graphics -lsfml-window -lsfml-system./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)