Particles in a box: the idea behind MD
A hard-disk caricature of molecular dynamics: every particle follows Newton’s laws, the temperature sets the mean speed, and pressure on the piston emerges from collisions. Real MD replaces these collisions with a force field.