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

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

Interactive 2D ring-road traffic simulator driven by 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
Ring-Road Car Following: Traffic Flow vs Density (2D) ↗ Open standalone

A top-down ring-road traffic simulator built on the Optimal Velocity car-following model: each vehicle continuously relaxes its speed toward a target that depends only on the gap to the car ahead. Push density up or adaptivity down and uniform flow spontaneously breaks into a self-sustaining stop-and-go shockwave — the same phantom-jam mechanism measured in real closed-loop traffic experiments.

⚙ Under the hood

A top-down ring-road traffic simulator where you control vehicle density, speed limit and driver adaptivity, and watch a car-following model produce stop-and-go traffic waves.

Traffic FlowCar-Following ModelOptimal Velocity ModelCongestionShockwave

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

What did you find?

Add reproduction steps (optional)