/NBodyGalaxySimulation

N-body simulation of colliding galaxies: final project for UCSD Physics 141 and Physics 244, 2015. Jason Bunk.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

GalaxySimulationPhys141Winter2015

N-body simulation of colliding galaxies: final project for UCSD Physics 141, Winter 2015.

https://github.com/jasonbunk/GalaxySimulationPhys141Winter2015

Requirements (Dependencies)

See below

Notes

Video:

<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/oy0zjWEDhac" width="420"></iframe>

OpenCL parallelization diagram:

GPU Parallelization Scheme for O(N^2) Gravitational Code

Requirements (Dependencies)

Required for simulation (need to install before use):

python

numpy

for GPU code, OpenCL libraries

Required for 3D renderer:

Code::Blocks

OpenGL

SFML -- http://www.sfml-dev.org/

Required for plotting (e.g. Plummer density distribution):

matplotlib

Required for making videos:

ffmpeg