Home▸Everyday Physics▸Traffic Flow Dynamics (2D): Ring-Road Car-Following Model

Traffic Flow Dynamics (2D): Ring-Road Car-Following Model

Interactive 2D ring-road traffic simulator using the Optimal Velocity car-following model: tune vehicle density, speed limit and driver adaptivity and watch stable flow break into stop-and-go shockwaves.

Everyday Physics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-traffic-flow-dynamics ↗ Open standalone

This 2D companion drives the same "traffic flow" idea as the 3D version through the actual physics literature uses to explain it: the Optimal Velocity car-following model on a closed ring road. Every car continuously relaxes its speed toward a target set only by the gap to the vehicle ahead, and at high density or low driver adaptivity that feedback loop goes unstable on its own — no crash needed — producing the same self-sustaining stop-and-go shockwave measured in real ring-road experiments.

⚙ Under the hood

Ring-road traffic simulator built on the Optimal Velocity car-following model; tune density, speed limit and driver adaptivity and watch uniform flow break into a stop-and-go shockwave.

traffic flowcar-following modeloptimal velocity modelshockwavecongestion2d

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)