(C) BoingBoing
This story was originally published by BoingBoing and is unaltered.
. . . . . . . . . .



N-body simulation of the gravitational collapse of Spongebob Squarepants [1]

['Rob Beschizza']

Date: 2024-03-17

Pere Rosselló, an astrophysics student at Universidad de La Laguna in Tenerife, Spain, posted an animation depicting the gravitational collapse of Spongebob. "You can see how virial equilibrium is eventually reached," he explained, helpfully.

Gravitational collapse of SpongeBob



You can see how Virial equilibrium is eventually reached pic.twitter.com/Sm9p8cB3os — Pere Rosselló (@PeRossello) March 16, 2024

N-body simulation made with Python, parallelized with numba, and animated with matplotlib. N=100.000. Computation time around 5h for 2.000 steps. Around 1s of compute time per step. Collisions are handled with a softening length. Code will be on my github, eventually

Just imagine being part of a civilization on the cusp of attaining a decent model of the universe's origins—somewhere between Halley and Lemaître, and you start plotting backwards from where we are and where the Big Bang should be you find Spongebob instead. Running the numbers again and again. Such a universe has no need of Lovecraft, cosmic horror would be right there in the maths.

Rosselló solved a three-body problem: the one of animating three bodies to look really cool.

A few three body periodic orbits pic.twitter.com/u1bMVrF3Tc — Pere Rosselló (@PeRossello) June 19, 2023

Previous: Listen to the early voices of SpongeBob and Squidward before they were ready for prime time

[END]
---
[1] Url: https://boingboing.net/2024/03/17/n-body-simulation-of-the-gravitational-collapse-of-spongebob-squarepants.html

Published and (C) by BoingBoing
Content appears here under this condition or license: Creative Commons BY-NC-SA 3.0.

via Magical.Fish Gopher News Feeds:
gopher://magical.fish/1/feeds/news/boingboing/