Traffic jam with no accident
Watch a small disturbance grow into congestion on a circular road.
Twenty-four cars follow one another around a 240 metre circular road. The Prelude updates every driver from the previous positions and speeds. A one-metre displacement of the first car breaks the symmetry and can grow into a congestion wave. Cars are four metres long; a safety cap prevents overlap in this idealized optimal-velocity model.
Adjust driver response a and desired speed V, then restart to compare runs. The lower diagram shows position around the road horizontally and the last eight simulated seconds vertically, newest at the top. Its opening history repeats the seed. Each firing advances 0.1 simulated second. Edit the Prelude to change the desired-speed rule.
JavaScript is required to view the interactive plot.