TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Gravitational Collapse of Spongebob

196 pointsby raattgiftabout 1 year ago

9 comments

pfdietzabout 1 year ago
It would be interesting to view the evolution over long periods of time.<p>This simulation is 2D, but it&#x27;s similar to what happens in globular star clusters. In these, there&#x27;s a phenomenon called the &quot;gravothermal catastrophe&quot;.<p>The particles (stars, sponge bits) relax to thermal equilibrium, where the kinetic energy of a particle has a distribution where probability declines exponentially in energy&#x2F;temperature. Some of the particles will have energy high enough to escape to infinity (to &quot;evaporate&quot;). When they leave, the remaining particles are more tightly bound, so the cluster shrinks. The particles then move faster (by the virial theorem, total kinetic energy is always 1&#x2F;2 the negative of the gravitational potential energy). Evaporation accelerates until the cluster basically explodes.<p>Why this doesn&#x27;t happen to actual star clusters was eventually determined to be due to three body collisions that cause binary stars to form, and these stars then inject energy into passing stars (causing the binary star orbits to shrink). This energy injection reheats the cluster, inflating it again and preventing runaway evaporation.<p>I&#x27;m not clear that the simulation here can handle formation of such binaries.
评论 #39733668 未加载
评论 #39733865 未加载
评论 #39734176 未加载
评论 #39734919 未加载
raattgiftabout 1 year ago
That x&#x2F;twitter account has some beautiful physics (especially gravitation-related) animations on it. Worth scrolling through it.
评论 #39735413 未加载
评论 #39735501 未加载
noobcoderabout 1 year ago
Correct me if i am not wrong they probably defining initial conditions for the particles (such as positions (to create the spongebob (althought I wish there was a way to convert an image to these n bodies), velocities, and masses) Then you set up the gravitational interactions between them and futher iteratively update their positions and velocities over time using some numerical integration method (Euler&#x27;s method&#x2F;Runge-Kutta method?) to simulate their motion
评论 #39734002 未加载
评论 #39734572 未加载
dudeinjapanabout 1 year ago
Check out the album “The Mollusk” by Ween—supposedly the musical inspiration for Spongebob.
mort96about 1 year ago
This is cool!<p>...but 1 second per time step is a lot. I wonder how fast it would&#x27;ve been if it wasn&#x27;t in Python. I think we as a society are doing a whole lot of people (especially physicists) a disservice by mainly teaching them Python rather than languages which are literally hundreds of times faster in some cases. Python works well when you just want to glue together existing fast C or Fortran libraries with Python APIs, but it quickly proves limiting.<p>I&#x27;ve personally been caught by the Python trap, where the easiest way to do something was to write a Python script to do it, and it worked, but then I wanted to try to process more data or whatever, and suddenly Python is a huge limiting factor. I then spend more time parallelizing the Python code to make it run faster, and it becomes a beast that&#x27;s hard to debug and which maxes out 32 CPU cores and is still 10x slower than what a single threaded Rust program would&#x27;ve been and I regret my choice of language.<p>EDIT: Also, this is in no way anti-Python, I think it&#x27;s a nice language and there are many uses where it is wholly appropriate.
评论 #39738572 未加载
评论 #39738884 未加载
thih9about 1 year ago
I&#x27;d prefer if the larger areas like eyes consisted of a single large circle with greater gravitational pull, as opposed to multiple small dots.
vorticalboxabout 1 year ago
Does anyone know what software was used?
评论 #39734485 未加载
ameliusabout 1 year ago
No collisions?
评论 #39738589 未加载
throw5323446about 1 year ago
Anybody can post the text for those without an account?
评论 #39734354 未加载
评论 #39733919 未加载
评论 #39734528 未加载
评论 #39733871 未加载
评论 #39734262 未加载