My code for various N-body gravitational simulations.
Fig. Video of real time simulated galaxy merger on cuda using 5000 particles.
Fig. Sample Output of 3D N-Body simulation.
Fig. Sample Output of efficient 2D N-Body simulation at t=i and t=n+i for 1000 particles.
Fig. Sample Output of efficient 2D N-Body simulation CPU(left) and GPU(right) the same timestep for 2000 particles with identical initial conditions.