N-body simulation

The N-body simulation is an interesting topic in Physics, and finds applications in astrophysics, biomoecular studies and other areas of science. Mathematical soultions of this problem are not possible, so numerical methods are necessary for visualisation. The problem basically involves several bodies with defined properties and also a well defined force that acts between each of these bodies, and involves studying how the system evolves with time. Parallel programming is used for increasing performance, and problems of this type are ideally suited for the parallel programming paradigm.


^ This is a screenshot of a simulation in action with 5 bodies. The program works well with 20 bodies.

  • OpenACC is used for parallel programming
  • Gnuplot is used for visulisation of data
  • Performance improvement over sequential code easily apparent
  • Uses compiler pgcc. For testing of non parallel programs, the files can also be compiled using gcc

Received the Best Research Project during the Science & Technology Summer Camp 2016.

Website: http://sagnikb.github.io/Simulati-ON/ LaTeX Report: report.pdf Github Wiki: Simulati-ON Wiki