Project simulating galaxies for a Modelling & Simulation course at RUG.
The C code for this project is in the /src folder. It should be able to compile with any C compiler and has no external dependencies outside the regular libraries. Simply make the source code and run the program ./nbody.
The program generates a lot (500 by default) of image frames. They can be combined into an animated GIF using ImageMagick by running:
make gif
Note: there are many ways to install ImageMagick. On a Mac with Homebrew you can simply brew install imagemagick.
To get rid of all those .pbm images, simply run make clean.
Animation example:
