Skip to main content

Diffusion & Mixing

Two gases separated by a removable barrier. Set the mass and size of gas B, lift the wall and watch mixing entropy rise toward its maximum.

  • 16.2 KB .bexode
  • 10 live inputs
  • Responsive fit Layout
Live runtime

Use it

The code follows your customizations. Install with npm i exodeui.

import { ExodeUICanvas } from 'exodeui';

// sci-diffusion.bexode goes in /public (download it below)
export function SciDiffusion() {
  return (
    <ExodeUICanvas
      src="/sci-diffusion.bexode"
      fit="Layout"   // responsive: redraws at any container size
      autoPlay
      interactive
      style={{ width: '100%', height: 560 }}
    />
  );
}

Inputs

InputTypeDefaultRange
titleTextDiffusion & Mixing—
tempNumber20040 – 600
massBNumber41 – 16
sizeBNumber10.6 – 2
countNumber300100 – 500
speedNumber10.1 – 3
accentText#5ee0ffhex colour
accent2Text#ff7a59hex colour
bgText#06080bhex colour
textText#e6edf3hex colour