Ideal-gas equation
At fixed volume, increasing particle count or temperature raises pressure.
Thermodynamics · molecular motion
Hard spheres bounce elastically off one another and all six box walls. Individual collisions look random, but their speeds settle toward the 3D Maxwell-Boltzmann distribution tracked by the live histogram.
Physics tutorial
BackgroundA gas contains many continually colliding particles. Temperature describes their mean energy scale, while pressure comes from momentum transferred to container walls.
Why it mattersIt shows how statistical distributions predict macroscopic behavior without tracking every particle.
Start with the essentials
At fixed volume, increasing particle count or temperature raises pressure.
Each of three translational degrees of freedom contributes kBT/2.
Typical misconceptionAll particles at one temperature move equally fast.
Better mental modelTemperature sets the energy scale of a broad speed distribution.
Typical misconceptionGas pressure mainly comes from particles pushing each other apart.
Better mental modelIdeal-gas pressure is momentum flux from particles striking the walls.
Choose Warm and let the histogram settle.
What to observe: Individual bins fluctuate while the overall distribution stabilizes.Hold count fixed and heat the gas.
What to observe: The distribution shifts and broadens while speed and pressure rise.Hold temperature fixed and add particles.
What to observe: Mean speed stays similar while pressure increases.