N-Body fun

Posted by Moser on 14 Dec 2010

Update: Replaced the GIF by a video.

We currently have to do a simple two-dimensional n-body simulation of gravitation for a university course in practical parallel programming. It uses MPI and OpenMP for parallelism. For benchmarks we were supplied with a model of a spiral galaxy which (in the original example) was passed by by an massive object. I tweaked the system so that this object now rather goes through the galaxy:

Some numbers: The model consists of 402 objects, a step of simulation is 1000 years long, the loop consists of 1.4M steps, a frame was generated every 2500 steps. This took about 25 minutes using 14 MPI processes (no OpenMP).

blog comments powered by Disqus