1 · Shock Wave Builder

Pick two traffic states and watch the queue boundary move

Light traffic (upstream) runs into heavy traffic (downstream). The boundary between them is a shock wave. Its speed is the slope of the chord joining the two states on the fundamental diagram:

w = \frac{q_D - q_U}{k_D - k_U}.

The diagram is the course triangle (Lecture 3): free-flow speed 100 km/h, wave speed 20 km/h, jam density 120 veh/km, so one lane carries at most 2,000 veh/h, at 20 veh/km. Drag the sliders. When the shock speed is negative, the queue grows backward, against the traffic.

NoteBefore you play: predict

A queue stands at a red light, and light traffic keeps arriving. Does the back of the queue move with the traffic, stand still, or move backward? How fast?

Things to try

  1. With k_U = 10, slowly lower k_D from 110. At what downstream density does the shock stop moving backward? Why there?
  2. Make k_U and k_D lie on opposite sides of the critical density k_c = 20 but at the same flow. What is the shock speed? Why?
  3. Swap the two states so that k_U > k_D. What changes, and why is there no single shock line?

This builder uses the course triangle: v_f = 100 km/h, w = 20 km/h, k_j = 120 veh/km. Grey lines are vehicle trajectories; the violet line is the shock.