Galaxy computer simulation

This is a low resolution n-body simulation of the birth of a simulated galaxy containing 10k particles. The galaxy measures ~100k light years across and we simulate ~ million years per second. The Barnes-Hut algorithm and treecode is enabled for optimization, and our gravitational field is finite with smoothing. You can see that the galaxy takes the form of a Barred-Spiral galaxy. Particles are colored by netforce per step.
Back to Top