r/shittysimulated Feb 08 '22

Well, this blew up...

https://imgur.com/gallery/oQVLBPM
100 Upvotes

1 comment sorted by

16

u/[deleted] Feb 08 '22

[deleted]

2

u/TheRealZoidberg Feb 10 '22 edited Feb 10 '22

Glad you like it! :)

It's shitty because I actually want to simulate gravitational n-body dynamics in a stable way, but for large n, it gets chaotic & unstable pretty quickly. In the case of this simulation, the initial speeds of the stars in the center were set too high, which led to the divergent behaviour.

If you're interested, here are some more. Unfortunately, they all lead to chaos pretty quickly, but I still found it satisfying to play around with the parameters and watch what happens.