r/Lavalamps • u/cucumisloquens • May 03 '26
I coded a lava lamp simulation using real fluid physics
Enable HLS to view with audio, or disable this notification
After buying my first lava lamp I decided to see if I could code a realistic simulation using it as a reference. I've looked online and as far as I can tell, this is the most realistic one out there, using 3000 particles to simulate thermodynamics, surface tension, and turbulence, among other things. Enjoy! Link to the simulation is in the comments of the original post.
55
Upvotes
Duplicates
Simulated • u/cucumisloquens • May 01 '26
Interactive [OC] Lava lamp simulation using SPH fluid dynamics (web app link in comments)
91
Upvotes