Stellar Grove · Research

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.

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 ρ(x,t) and flow q(ρ) satisfy a conservation law. With Greenshields' speed law v=vf(1−ρ/ρj):

∂ρ∂t+∂q(ρ)∂x=0,q(ρ)=vfρ(1−ρρj)

Information travels at the wave speed q′(ρ)=vf(1−2ρ/ρj), which is negative in dense traffic. Where fast-moving light traffic meets a jam, a shock forms and moves at the Rankine–Hugoniot speed:

s=q(ρL)−q(ρR)ρL−ρR=vf(1−ρL+ρRρj)

During red, arrivals (ρa) meet the stopped jam (ρj): s=−vfρa/ρj=−3.0 m/s. At green an expansion fan opens at the stop line, its back edge moving upstream at −vf. It catches the queue's tail when the queue is longest; with β=ρa/ρj:

t*=R1−β,ℓmax=vfβR1−β,τclear=4β(1−β)R(1−2β)2

Here β=0.2: the queue peaks at 168.8 m at t=56.2 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.

Density in space and time (dark = jammed); the dashed line is the closed-form back of the queue
Density in space and time (dark = jammed); the dashed line is the closed-form back of the queue

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

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