Stellar Grove · Concrete Mathematical Modelling
The queue at a red light
Cars stop at a red light and start again at green. How long does the queue get, and how long does it take to clear?
Chapter 11 · Further flow and diffusion. A worked example rebuilt from the chapter's topic in Mike Mesterton-Gibbons, *A Concrete Approach to Mathematical Modelling*; the scenario and numbers are our own illustration, not the book's text.
Headline: During a 45 s red, the back of the queue moves upstream at 3 m/s even though every car moves forward or stands still. It keeps growing after green, peaking at 169 m, and needs 80 s of green to clear completely.
- 169 mlongest queue (about 25 cars), 11 s after green
- 80 sof green needed to dissolve the queue
- 3 m/sspeed at which the queue's back moves upstream
The problem
Traffic arrives at 1,296 vehicles an hour (density 30 per km, free speed 54 km/h) at a light that is red for 45 seconds. Treating traffic as a continuous fluid, how does the queue form and dissolve?
The model (Lighthill–Whitham–Richards)
Cars are conserved, so density and flow satisfy a conservation law. With Greenshields' speed law :
Information travels at the wave speed , which is negative in dense traffic. Where fast-moving light traffic meets a jam, a shock forms and moves at the Rankine–Hugoniot speed:
During red, arrivals () meet the stopped jam (): m/s. At green an expansion fan opens at the stop line, its back edge moving upstream at . It catches the queue's tail when the queue is longest; with :
Here : the queue peaks at 168.8 m at s and has fully dissolved 80 s after green. A numerical (Godunov) solution of the same equation puts the peak queue at 167 m, within 2 m of the formula.
Try it
Red-light queue explorer
The line is the back of the queue (metres upstream of the stop line) over one light cycle.
Key findings
- Jams travel backwards. The queue's back edge is a shock wave moving upstream while every car moves forward or waits: information, not cars, travels at the wave speed.
- The queue keeps growing after green for 11 s, until the restart wave reaches its back.
- Short reds need long greens near capacity: clearing takes 80 s of green for a 45 s red at 1,296 veh/h; at 2,025 veh/h (capacity) it would never clear. This cycle needs at least 64% of its time green.
from books.concrete_mathematics import flow as fl
q = fl.signal_queue(v_free=15.0, jam=0.15, arrival_density=0.03, red=45.0)
print(round(q.max_queue, 1), round(q.t_max_queue, 1), round(q.clear_after_green, 1))
print(round(fl.shock_speed(0.03, 0.15, 15.0, 0.15), 3))
# → 168.8 56.2 80.0
# → -3.0
Assumptions and extensions
- Instant acceleration and a smooth fluid. Real discharge has start-up lost time (2–3 s) that the LWR model omits.
- Greenshields' law gives the parabolic flow curve; a triangular (cell-transmission) curve gives straight-line waves and is standard in traffic software.
- One lane, no turning. Networks of links and signals are solved with the same Godunov scheme (
flow.godunov_traffic).