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
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
| Input | Type | Default | Range |
|---|---|---|---|
title | Text | Ideal Gas Law | — |
temp | Number | 300 | 40 – 900 |
count | Number | 160 | 20 – 500 |
volume | Number | 100 | 30 – 100 |
isothermal | Boolean | true | — |
tracer | Boolean | false | — |
speed | Number | 1 | 0.1 – 3 |
accent | Text | #5ee0ff | hex colour |
accent2 | Text | #ffb454 | hex colour |
bg | Text | #06080b | hex colour |
text | Text | #e6edf3 | hex colour |