Many years ago, for my high school senior project, I wrote a solver for the N-body problem that is performance-optimized using the Barnes-Hut algorithm. (the optimization algorithm is not relevant to my question.)
In one particular simulation, I simulated a spiral galaxy. The simulation is not...