Traffic Flow
Traffic behaves like a fluid made of cars: the flow (cars per hour) is the density (cars per kilometer) times the speed. Because drivers slow down as the road fills, flow rises to a maximum, the road's capacity, and then falls, and the boundary between two kinds of traffic, like the back of a queue at a red light, moves at a speed you can read straight off that curve.
What the symbols mean
- Flow (volume)
Vehicles passing a point per hour, veh/h. What a loop detector in the pavement counts.
- Density
Vehicles per kilometer of lane at one instant, veh/km. What an aerial photo counts.
- Space-mean speed
The average speed of the vehicles on the stretch, km/h.
What the symbols mean
- Free-flow speed
How fast drivers go on a nearly empty road, km/h.
- Jam density
Density at a standstill, bumper to bumper, typically 100 to 160 veh/km per lane.
What the symbols mean
- Capacity
The most vehicles per hour the lane can carry.
What the symbols mean
- Shockwave speed
How fast the boundary between traffic state 1 and state 2 moves, km/h. Negative means it moves upstream, against the traffic.
- Flow in state 1
With its density k₁; state 2 has q₂ and k₂.
Explanation
Traffic flow is the study of how many vehicles pass a point, how tightly they're packed and how fast they go, and how those three trade off against each other. Engineers treat traffic like a fluid with three quantities: (the flow, vehicles per hour past a point), (the density, vehicles per kilometer of lane at one instant) and (their average speed). The whole lesson rests on one line, , plus one fact about drivers: the more crowded the road, the slower everyone goes. Put those together and out come the most cars a lane can ever carry, the reason a jam can form for no visible reason and the speed at which a queue grows backward from a red light. It's three letters and a straight line; bear with it.
Where comes from. Stand beside a lane for one hour. Every car that is within kilometers upstream of you at the start of the hour, moving at km/h, will pass you during that hour. That stretch holds cars, so . The units check: (veh/km) × (km/h) = veh/h. Two everyday translations: the average headway (time between cars passing a point) is seconds, and the average spacing (distance between cars) is meters.
Drivers slow down as the road fills. On an empty road you drive at the free-flow speed . At the jam density nobody moves. The simplest model, Greenshields', joins those two with a straight line: . Real data curve a little, but the straight line captures the behavior and makes the math clean.
The fundamental diagram. Substitute the speed into :
That's a parabola in : zero flow at (no cars) and at (cars that don't move). Its peak is where the derivative is zero, just like any optimization problem: gives . There the speed is and the flow is the capacity
Every flow below capacity happens at two densities: an uncongested one (few cars, fast) and a congested one (many cars, slow). Same count of cars per hour, very different drive. And notice the speed hiding in the picture: is the slope of the line from the origin to the point on the curve.
Shockwaves: where two kinds of traffic meet. When fast, sparse traffic (state 1) runs into slow, dense traffic (state 2), the boundary between them moves at some speed . Sit on the boundary and count cars crossing it. Upstream cars catch up to it at relative speed , bringing cars per hour; downstream cars leave it at per hour. Cars aren't created or destroyed at the boundary, so those are equal:
That's the slope of the chord joining the two states on the fundamental diagram. A negative means the boundary moves upstream, against the traffic.
A red light. Arriving traffic is state 1. The cars stopped at the light are state 2, with and . So , which is negative: the back of the queue moves backward. When the light turns green, the front of the queue leaves at capacity (, ), and a second wave, the "start" wave, moves back through the queue at . It's faster than the back of the queue, so it eventually catches up, and that's when the queue is gone. There's an animation further down that shows the stopping wave car by car.
A common mistake. It's tempting to think more cars on the road means more cars getting through. That's only true up to . Past it, each extra car slows everyone down by more than it adds, and the flow drops. That's why ramp meters hold cars back at the on-ramp: keeping the freeway just below the critical density keeps it near capacity.
A second one. The back of a queue doesn't move at the cars' speed. The cars all drive forward (54 km/h in the second example), yet the place where they stop slides backward (36 km/h). The shockwave is a pattern, like a wave in a stadium crowd, not a vehicle.
The idea that cars are conserved, so density can only change when more cars flow in than out, is a partial differential equation, ; the lab listed with this lesson shows small slowdowns riding backward along it.
See it
Worked examples
A freeway lane follows the Greenshields model with free-flow speed km/h and jam density veh/km. (a) Find its capacity and the density and speed at capacity. (b) At what densities and speeds does the lane carry 1500 veh/h?
- 1
Write the flow as a function of density. Start from and put in the speed model: .
An arterial lane has km/h and veh/km (Greenshields). Traffic arrives at a signal at 40 veh/km when the light turns red for 30 s. How fast does the back of the queue move, how long is the queue when the light turns green, and how many cars are in it? Then find the speed of the start wave after the green.
- 1
Arriving speed from the model: km/h.
Practice
Type your answer and check it. Solve them all to complete the lesson.
An aerial photo of a freeway lane shows 35 vehicles per kilometer, and their average speed is 72 km/h. What is the flow, in veh/h?
A loop detector counts 1800 vehicles per hour in one lane, and the average speed is 90 km/h. What is the average spacing between vehicles, in meters?
A highway lane follows the Greenshields model with free-flow speed 88 km/h and jam density 100 veh/km. What is its capacity, in veh/h?
A lane follows the Greenshields model with km/h and veh/km. As an incident slows things down, the density rises from 50 to 80 veh/km. What happens to the flow?
A lane follows the Greenshields model with km/h and veh/km, and it's carrying 1800 veh/h in stop-and-go (congested) traffic. What is the average speed, in km/h?
Cars approach a signal at 60 km/h with a density of 25 veh/km. When stopped, they pack at 125 veh/km. The light turns red. How long is the queue after 40 s of red, in meters? Give 3 significant figures.
On a city street, measurements fit the speed-density model , with in km/h and in veh/km. Use calculus to find the street's capacity (maximum flow), in veh/h, to 3 significant figures.
The hardest one here. Get it, and you've got this lesson.
A signal approach follows the Greenshields model with km/h and veh/km. Traffic arrives at 20 veh/km, the light is red for 40 s, and after the green the queue discharges at capacity. How long, in meters, does the queue get before the start wave reaches its back and it begins to dissolve? Give 3 significant figures.
Where it's used
Traffic engineers size freeways and signal timings with exactly these numbers: a lane's capacity sets how many lanes a corridor needs, and the shockwave speeds tell a signal designer whether a red phase will spill its queue back into the upstream intersection. Ramp meters, variable speed limits and the queue-warning signs on freeways all exist to keep density below the critical value, where the fundamental diagram says flow is highest, and navigation apps estimate jam growth from the same conservation of cars.