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

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.