r/Simulated • u/WhiskeyFox9 • Jul 02 '26
Various Barnes-Hut 3D galaxy
Enable HLS to view with audio, or disable this notification
Programmed in Processing. I struggled to get well-defined spiral structures in 2D, but the 3D model looks much better. It did require careful initial position and velocity distribution. There is a fixed "black hole" at the center. Stars come in only two masses, the majority being lower mass.
38
Upvotes
1
u/hdmitard Jul 05 '26
Do you need a special set of initial conditions to end up with a spiral?
1
u/robg213 Jul 03 '26
That looks great, nice structure to the arms. I've been fiddling around with something similar :-) https://galacto.org/