Home▸Articles▸Toys & Play

Lava Lamp Metaballs: Understanding Convection in 2D

A fascinating display of fluid dynamics that reveals the principles behind convection currents.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Lava Lamp Metaballs Are

Lava Lamp Metaballs is a mesmerizing visual representation of fluid dynamics in two dimensions. The term 'metaballs' refers to a technique for modeling smooth, organic shapes that can merge and split dynamically. In this simulation, these metaball shapes represent wax blobs that float in a liquid medium due to temperature differences.

The wax blobs are heated at the bottom and cooled at the top, creating convection currents as they rise and fall, mimicking the behavior of real lava lamps.

Why It Happens

Convection in Lava Lamp Metaballs occurs due to density differences caused by temperature variations. When wax is heated at the bottom of the container, it expands and becomes less dense than the surrounding cooler liquid. This causes the hot wax to rise, while the denser, cooler liquid sinks, creating a circulation pattern.

As the wax cools and rises to the top, it eventually loses heat to the surroundings and becomes denser again, causing it to sink back down, thus completing the cycle.

live demo · related simulation● LIVE

Real-World Applications

The principles of convection demonstrated in Lava Lamp Metaballs are fundamental to many natural phenomena and industrial processes. For example, in meteorology, convection plays a crucial role in weather patterns such as thunderstorms and hurricanes.

In the context of heat exchangers used in power plants or refrigeration systems, understanding convection is essential for optimizing energy transfer and system efficiency.

How It Relates to Other Fluid Dynamics

Lava Lamp Metaballs share similarities with other fluid dynamics phenomena such as the Rayleigh-Bénard convection, where a layer of fluid is heated from below and cooled from above. This setup often leads to complex flow patterns including cells, rolls, or even chaotic behavior depending on parameters like temperature difference and fluid properties.

Understanding these dynamics helps in designing more efficient cooling systems, predicting weather patterns, and developing better models for climate change.

Frequently asked questions

What are metaballs?

Metaballs are a method of representing smooth, organic shapes that can merge and split dynamically. They are often used in computer graphics to create soft, fluid-like forms without sharp edges.

How does the heat toggle work in this simulation?

The heat toggle controls whether the wax blobs are heated at the bottom of the container. When activated, it initiates convection currents as the hot wax rises and cools down to sink again.

Can I use this simulation for educational purposes?

Absolutely! This simulation can be used to teach concepts like fluid dynamics, convection, and thermodynamics in an engaging and interactive way. It provides a visual representation of complex physical phenomena that are otherwise difficult to grasp.

Are there real-world lava lamps similar to this simulation?

Yes, many commercial lava lamps operate on the same principles as those simulated here. They use wax or other heat-sensitive materials in a liquid medium to create convection currents that result in the characteristic rising and falling of the blobs.

Try it live

Everything above runs in your browser — open Lava Lamp Metaballs: 2D and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Lava Lamp Metaballs: 2D simulation

What did you find?

Add reproduction steps (optional)