LiquidMix
Stir dye through a WebGL fluid simulation, paint obstacles and adjust viscosity. View velocity and pressure, then save a PNG or WebM recording.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
LiquidMix — Interactive Fluid and Dye-Mixing Simulator
Real-time fluid and dye-mixing simulator in your browser: stir ink with your finger, paint walls, and watch velocity, pressure and curl fields live.
LiquidMix is a free, real-time fluid simulator that runs on your device's GPU. Drag or touch to push the liquid and inject dye, paint solid walls the flow has to go round, and load experiments such as flow past a cylinder, colliding jets, a shear layer or a swirl mixer. Sliders control viscosity, dye and velocity dissipation, pressure iterations, vorticity confinement, splat size and grid resolution, and the view can switch from dye to the velocity, pressure or curl field underneath. It uses Jos Stam's Stable Fluids method — a visual model for learning and play, not a validated engineering CFD solver. Save a PNG or record a WebM clip; settings are remembered in your browser.
How to use LiquidMix
- 1
Drag across the canvas to stir the fluid and drop dye, or tap for a single blob; press R for random splats.
- 2
Pick an experiment such as Flow past a cylinder, or choose Paint walls and draw obstacles of your own.
- 3
Adjust viscosity, curl and dissipation, switch to the velocity, pressure or curl view, then save a PNG or record a video.
Why use LiquidMix
Real-time on the GPU
A WebGL stable-fluids solver runs advection, vorticity, viscosity and pressure projection every frame, with a CPU fallback when WebGL is missing.
See the physics
Switch between the dye and the velocity, pressure and curl fields that move it, with walls and preset experiments to test ideas.
Private and free
Everything runs in your browser — no account, upload or server; settings are kept in local storage.
Common use cases
- Show students how vortices shed behind an obstacle and how pressure pushes a flow round it.
- Explore what viscosity, vorticity confinement and pressure iterations each do to a simulated liquid.
- Make swirling ink-in-water art and save it as a PNG wallpaper or a short WebM loop.
Frequently asked questions
Is this a real fluid dynamics (CFD) solver?
It solves the incompressible Navier–Stokes equations with Stam's Stable Fluids method, but on a coarse grid tuned for looks and stability. Treat it as a visual model for learning, not as validated engineering CFD.
Link to answerWhy does it say CPU fallback?
The fast solver needs WebGL with floating-point render targets. If your browser or GPU lacks them, LiquidMix runs a slower JavaScript version of the same algorithm on a coarser grid.
Link to answerCan I record a video?
Yes. Record saves a WebM clip (MP4 on browsers that only support that) of up to 60 seconds, and PNG saves the current frame.
Link to answerWhat do viscosity and vorticity do?
Viscosity diffuses velocity so the flow looks thicker, like syrup. Vorticity confinement adds back small swirls that the coarse grid would otherwise smear out.
Link to answer