Voxel mixing laboratory

Density ≠ Boundary

A matched comparison: both samples begin with the same density step, but only the miscible pair can diffuse across the interface.

Linked views Three.js core Drag to orbit
Immiscible pair

Sharp phase interface

Density ordering separates the phases, while immiscibility prevents molecular crossing.

Density profile height ↑
ρ low ρ high
Boundary persists
Miscible pair

Interface dissolves

The same density contrast is present, but molecular diffusion lets the labeled components interpenetrate.

Density profile height ↑
ρ low ρ high
Interface present

Educational lattice model: equal-volume voxels represent equal-volume portions of two components. The right panel uses conservative local diffusion on a six-neighbor grid; the left panel permits no diffusion. It illustrates the role of miscibility rather than solving full fluid dynamics.