Soda Bubbles Simulator (2D)
Interactive 2D carbonated-soda simulator: CO2 supersaturation drives bubble nucleation at microscopic glass imperfections, with a carbonation-level slider and a nucleation-site-density slider controlling how bubbles form, grow on the way up and go flat over time.
This 2D simulator renders a glass of carbonated soda in cross-section with a working nucleation model underneath: fixed imperfections on the glass wall act as nucleation sites that release CO2 as steady bubble streams. A carbonation-level slider sets how much dissolved gas is available to drive nucleation and growth, and a nucleation-site-density slider controls how many streams share that supersaturation — more sites means more, smaller streams; fewer sites means fewer, busier ones. Bubbles grow continuously as they rise because falling hydrostatic pressure lets more CO2 diffuse in, and that growing buoyancy accelerates them against the liquid's viscous drag until they burst at the surface. Live readouts track active bubble count, average rise speed, remaining CO2 and total bubbles popped, and carbonation depletes slowly in real time until you hit Refill. Tap the glass for a one-off burst of extra bubbles at every site, the way tapping jars loose trapped gas in a real drink.
Interactive 2D carbonated-soda simulator: CO2 supersaturation drives bubble nucleation at microscopic glass imperfections, with a carbonation-level slider and a nucleation-site-density slider controlling how bubbles form, grow on the way up and go flat over time.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install