Skip to main content

Ideal Gas Law

Argon atoms in a cylinder with a draggable piston. Change temperature, count and volume and watch pressure, PV/NkT and the Maxwell–Boltzmann distribution respond live.

  • 16.3 KB .bexode
  • 11 live inputs
  • Responsive fit Layout
Live runtime

Use it

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

import { ExodeUICanvas } from 'exodeui';

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

Inputs

InputTypeDefaultRange
titleTextIdeal Gas Law—
tempNumber30040 – 900
countNumber16020 – 500
volumeNumber10030 – 100
isothermalBooleantrue—
tracerBooleanfalse—
speedNumber10.1 – 3
accentText#5ee0ffhex colour
accent2Text#ffb454hex colour
bgText#06080bhex colour
textText#e6edf3hex colour