Traffic Speed, Density and Flow: Fundamental Diagram and Time-Space View (2D)
Top-down lane close-up with Blender-rendered cars, a ring overview, and a time-space diagram that shows jams travelling backward against the model's predicted queue-wave speed. The same shared model as the 3D scene.
Traffic engineers describe a lane with three linked quantities: density k (cars per kilometre), space-mean speed v and flow q = k v. As density rises, speed falls, so flow first increases and then collapses once the road passes its capacity. This simulator puts a multi-lane ring road in front of you, with cars that follow the Nagel-Schreckenberg cellular automaton (accelerate, brake to the gap, brake at random, move). The speed, density and flow measured from those cars are plotted on the fundamental diagram of your choice (Greenshields, Greenberg or Underwood), together with the HCM-style level of service from A (free flow) to F (breakdown).
Use it to see where the analytic curves are good and where they are not: how random braking at medium density creates phantom jams that travel backward, how the queue-tail shock-wave speed follows from the Rankine-Hugoniot condition w = (q2 - q1)/(k2 - k1), and why capacity is reached long before the road is full. The science panel lists the equations, honest simplifications (single vehicle type, no lane changing, closed ring) and seven numerical checks, including a Godunov solution of the Lighthill-Whitham-Richards equation.
Top-down lane close-up with Blender-rendered cars, a ring overview, and a time-space diagram that shows jams travelling backward against the model's predicted queue-wave speed. The same shared model as the 3D scene.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install