Traffic Flow Theory

Traffic flow theory involves the development of mathematical relationships among the primary elements of a traffic stream: flow, density, and speed. These macroscopic relationships help engineers understand traffic behavior, predict congestion, and design efficient transportation facilities.

Time-Space Diagrams

A fundamental graphical tool used to analyze traffic streams.

Time-Space Diagram

A two-dimensional plot with time (usually in seconds) on the x-axis and distance (usually in meters or feet) on the y-axis. The trajectory of a single vehicle is plotted as a line or curve on this graph.

Interpreting Time-Space Diagrams

  • Vehicle Trajectories: The path of an individual vehicle over time and space.
  • Speed (uu): The slope of the trajectory line (Δx/Δt\Delta x / \Delta t). A steeper slope indicates a higher speed. A horizontal line (zero slope) indicates a stopped vehicle.
  • Headway (hh): The horizontal distance between two parallel trajectories at a constant distance (e.g., passing a specific point).
  • Spacing (ss): The vertical distance between two parallel trajectories at a constant time (e.g., a snapshot of the roadway).
  • Shockwaves: When traffic states change (e.g., from free-flow to congested), the boundary between these states forms a shockwave, visually identifiable as the intersection points of different trajectory slopes.

Queueing Theory Applications

Mathematical modeling of waiting lines in transportation facilities.

Queueing Models in Traffic

  • Deterministic Queueing (D/D/1): Used for predictable situations like toll booths or signalized intersections where arrivals and departures are constant. It uses cumulative input and output curves (bottleneck models) to calculate total delay and maximum queue length.
  • Stochastic Queueing (M/M/1, M/G/1): Used when arrivals are random (Poisson distribution) and service times are variable (exponential or general). Essential for analyzing uncontrolled intersections, parking lots, or airport runways where the exact timing of arrivals cannot be known.
  • Key Metrics: Average waiting time, average queue length, maximum queue length, and system utilization factor (ρ=λ/μ\rho = \lambda / \mu).

Fundamental Equation of Traffic Flow

The core relationship linking the three main macroscopic parameters—flow (qq), density (kk), and speed (uu)—is given by:
q=k×uq = k \times u
Where:
  • qq = Flow rate: Number of vehicles passing a point per hour (veh/hr or vph)
  • kk = Density: Number of vehicles occupying a given length of a lane or roadway at a given instant (veh/km or veh/mi)
  • uu = Space mean speed: The average speed of vehicles over a specific length of roadway (km/hr or mph)

  1. Fundamental Traffic Variables

Traffic Flow Theory (Greenshields Model)

Model Parameters

Free-Flow Speed (u_f)80 km/h
Jam Density (k_j)100 veh/km

Current Traffic State

Current Density (k)25 veh/km
Speed (u)60.0 km/h
Flow (q)1500 veh/h
Capacity (q_max)2000 veh/h
Optimum Speed40.0 km/h
Flow vs. Density (q-k)
Loading chart...
Speed vs. Density (u-k)
Loading chart...
To understand the macroscopic variables (q,k,uq, k, u), we must first understand their microscopic counterparts.

Flow (qq) and Headway (hh)

Checklist

They are inversely related:
q=3600havgq = \frac{3600}{h_{avg}}
(Where havgh_{avg} is in seconds, yielding flow in vehicles per hour)

Density (kk) and Spacing (ss)

Checklist

They are inversely related:
k=1000savgk = \frac{1000}{s_{avg}}
(Where savgs_{avg} is in meters, yielding density in vehicles per kilometer)

Speed (uu)

Checklist

Key Takeaways
  • Flow (qq), Density (kk), and Speed (uu) form the three macroscopic variables linked by q=k×uq = k \times u.
  • Space Mean Speed (usu_s) is the harmonic mean of individual speeds and properly links macroscopic flow to density.

Time-Space Diagrams (Trajectories)

Visualizing vehicle movement over time and space.
A fundamental tool in traffic flow theory is the Time-Space Diagram. It plots the position of a vehicle (xx) on the vertical axis against time (tt) on the horizontal axis.
  • The line representing a vehicle's path is called its trajectory.
  • The slope of the trajectory (dx/dtdx/dt) at any point represents the vehicle's speed.
  • A steeper slope indicates a faster speed; a horizontal line indicates a stopped vehicle.
  • The vertical distance between two parallel trajectories is the spacing (ss).
  • The horizontal distance between two parallel trajectories is the time headway (hh).

Measurement Methods

The Moving Observer Method

A practical field technique for simultaneously estimating traffic flow (qq) and average speed (uu) on a roadway segment is the Moving Observer Method. A test vehicle travels along the segment in both directions, recording:
  1. The number of vehicles it overtakes.
  2. The number of vehicles that overtake the test vehicle.
  3. The number of opposing vehicles met (when traveling in the opposite direction).
  4. The travel time of the test vehicle. Through algebraic relationships, these counts and times can accurately estimate the stream flow and speed without installing stationary sensors.

  1. Traffic Stream Models

These models attempt to describe the empirical relationships between speed, density, and flow under uninterrupted conditions.

Greenshields Model (Linear)

The simplest and most widely taught macroscopic model. It assumes a linear, inverse relationship between speed and density. As the road gets more crowded, drivers slow down linearly.
u=uf(1kkj)u = u_f \left( 1 - \frac{k}{k_j} \right)
Where:

Checklist

Substituting this into the fundamental equation (q=ukq = uk), we get a parabolic flow-density relationship:
q=ufkufkjk2q = u_f k - \frac{u_f}{k_j} k^2

The Derivation of Maximum Capacity (qmaxq_{max})

Understanding why capacity occurs at exactly half of the free-flow speed and jam density.
To find the mathematical peak of the parabolic flow-density curve (which represents the absolute maximum capacity of the roadway segment), we apply differential calculus.
We start with the parabolic flow equation derived from Greenshields:
q=ufkufkjk2q = u_f k - \frac{u_f}{k_j} k^2
To find the maximum flow (qmaxq_{max}), we take the derivative of flow (qq) with respect to density (kk) and set it to zero:
dqdk=uf2(ufkj)k=0\frac{dq}{dk} = u_f - 2 \left( \frac{u_f}{k_j} \right) k = 0
Solving for kk, we find the optimal density (kok_o):
2(ufkj)ko=uf    ko=kj22 \left( \frac{u_f}{k_j} \right) k_o = u_f \implies k_o = \frac{k_j}{2}
Substituting ko=kj/2k_o = k_j / 2 back into the original linear speed equation yields the optimal speed (uou_o):
uo=uf(1kj/2kj)=uf(10.5)=uf2u_o = u_f \left( 1 - \frac{k_j / 2}{k_j} \right) = u_f \left( 1 - 0.5 \right) = \frac{u_f}{2}
Finally, applying the fundamental equation qmax=uo×koq_{max} = u_o \times k_o:
qmax=(uf2)×(kj2)=uf×kj4q_{max} = \left( \frac{u_f}{2} \right) \times \left( \frac{k_j}{2} \right) = \frac{u_f \times k_j}{4}

Note

Maximum Flow (Capacity)
In the Greenshields model, maximum flow (qmaxq_{max}, also called capacity) occurs exactly when the traffic stream is at half the jam density and half the free-flow speed.
  • Optimum Density (kok_o): kj/2k_j / 2
  • Optimum Speed (uou_o): uf/2u_f / 2
qmax=uf×kj4q_{max} = \frac{u_f \times k_j}{4}

Greenberg's Logarithmic Model

Greenshields breaks down at very low densities (predicting finite speed instead of matching free-flow limits realistically) and very high densities. Greenberg proposed a logarithmic model that fits dense traffic conditions much better, though it fails at low densities (predicting infinite speed at zero density).

Greenberg's Logarithmic Model

Calculates the speed of traffic based on a logarithmic relationship with density, particularly effective for dense traffic conditions.

$$ u = u_o \ln\left( \frac{k_j}{k} \right) $$
Key Takeaways
  • The Greenshields Model forms a linear inverse relationship between speed and density, causing a parabolic flow-density curve.
  • Optimum flow (capacity) occurs halfway to the jam density (kj/2k_j/2) and halfway to free-flow speed (uf/2u_f/2).

Macroscopic Fundamental Diagram (MFD)

Extending flow theory from a single roadway segment to an entire urban network.
While traditional models analyze a single link, the Macroscopic Fundamental Diagram (MFD) (or Network Fundamental Diagram) plots the relationship between the average network flow (production) and the average network density (accumulation) for an entire city region or downtown core.

MFD Characteristics

  • It proves that an entire urban network behaves similarly to a single road: as the number of vehicles in the downtown area increases, the total network throughput increases up to a critical capacity point.
  • If accumulation exceeds that critical point, gridlock sets in, and total network throughput drops drastically.
  • Engineers use the MFD to implement perimeter metering (e.g., holding cars at suburban traffic signals) to ensure the downtown core never exceeds its critical accumulation, thus maintaining maximum city-wide throughput.

  1. Shockwave Theory

Traffic conditions on a roadway are rarely uniform. When there is a sudden change in capacity (due to a lane closure, a crash, or a red light) or a sudden change in demand (like a stadium emptying out), the boundary between the two different traffic states propagates along the highway. This moving boundary is called a shockwave.
Understanding shockwaves is critical for safety analysis, as they represent areas where drivers must suddenly decelerate, leading to high risks of rear-end collisions. Traffic engineers use shockwave theory to calculate how fast a queue will grow, how long it will take to dissipate, and where to place advanced warning signs for stopped traffic.
A shockwave in traffic represents a boundary between two distinct states of traffic flow (e.g., free-flowing traffic hitting a sudden queue). It is the propagation of a change in density and flow along the roadway.
The speed of the shockwave (uswu_{sw}) is calculated as the slope of the chord connecting the two traffic states (Points 1 and 2) on the flow-density (qkq-k) curve.
usw=q2q1k2k1u_{sw} = \frac{q_2 - q_1}{k_2 - k_1}

Checklist

Key Takeaways
  • Shockwaves visualize moving boundaries between two distinct traffic states with differing flows and densities.
  • Speed of a shockwave represents the rate of queue growth or dissipation, aiding in bottleneck delays calculation.

Microscopic Car-Following Models

Modeling the behavior of individual drivers reacting to the car in front of them.
While macroscopic models look at the stream as a whole, car-following models mathematically describe how a single driver (the follower) adjusts their acceleration based on the actions of the vehicle immediately ahead (the leader). These form the basis of modern microscopic traffic simulation software (like VISSIM).

The General Motors (GM) Model

The most famous family of car-following models posits that a driver's response (acceleration/deceleration) is proportional to the stimulus (the relative speed between the two cars) and inversely proportional to their spacing.
Response=Sensitivity×Stimulus\text{Response} = \text{Sensitivity} \times \text{Stimulus}
an+1(t+Δt)=[αlun+1m(t+Δt)[xn(t)xn+1(t)]l]×[un(t)un+1(t)]a_{n+1}(t+\Delta t) = \left[ \frac{\alpha_l \cdot u_{n+1}^m(t+\Delta t)}{[x_n(t) - x_{n+1}(t)]^l} \right] \times [u_n(t) - u_{n+1}(t)]
Where:
  • an+1a_{n+1} is the acceleration of the following vehicle after a reaction time Δt\Delta t.
  • unun+1u_n - u_{n+1} is the relative speed (stimulus).
  • xnxn+1x_n - x_{n+1} is the spacing between the vehicles.
  • α,l,m\alpha, l, m are calibration parameters.

Gap Acceptance Theory

Crucial for modeling unsignalized intersections, roundabouts, and lane changing. A driver on a minor road will only pull into the major traffic stream if the time headway (gap) between approaching vehicles is greater than their personal Critical Gap (tct_c). If the gap is rejected, they wait for the next one. This theory uses probability distributions (like the negative exponential distribution) to predict how long a driver will be delayed before finding a safe gap.

  1. Queuing Theory

Queuing theory is used to analyze delays, queue lengths, and waiting times at bottlenecks (like toll booths or intersections).

Deterministic Queuing (D/D/1)

Checklist

Stochastic Queuing (M/M/1)

Checklist

M/M/1 Delay Analysis

Calculates the average time a vehicle spends waiting in the queue and the total time spent in the system.

$$ W_q = \frac{\lambda}{\mu(\mu - \lambda)} $$

Total Time in System

Calculates the total average time a vehicle spends in the M/M/1 queuing system (wait time + service time).

$$ W = W_q + \frac{1}{\mu} = \frac{1}{\mu - \lambda} $$
Key Takeaways
  • Queuing theory assesses bottlenecks by analyzing arrival rates (λ\lambda) vs. service rates (μ\mu).
  • When λ>μ\lambda \gt \mu, queues grow infinitely; analyzing these helps predict delays and needed capacity expansion.

Mathematical Formulations in Flow Theory

The Greenshields Model Equation

The Greenshields Model assumes a linear relationship between speed and density:
u=vf(1kkj) u = v_f \left( 1 - \frac{k}{k_j} \right)
Where vfv_f is free-flow speed and kjk_j is jam density. Substituting this into the fundamental equation (q=u×kq = u \times k) yields a parabolic relationship for flow:
q=vfk(vfkj)k2 q = v_f k - \left( \frac{v_f}{k_j} \right) k^2
Maximum capacity (qmaxq_{max}) occurs when density is exactly half of the jam density (km=kj/2k_m = k_j / 2) and speed is half of the free-flow speed (um=vf/2u_m = v_f / 2):
qmax=vf×kj4 q_{max} = \frac{v_f \times k_j}{4}

Shockwave Velocity

The velocity of a shockwave (uwu_w) propagating between two different traffic states (state 1 and state 2) is defined as the change in flow divided by the change in density:
uw=q2q1k2k1 u_w = \frac{q_2 - q_1}{k_2 - k_1}
Key Takeaways
  • The fundamental equation of macroscopic traffic flow is q=k×uq = k \times u (Flow = Density × Speed).
  • Time Mean Speed is the arithmetic average of spot speeds; Space Mean Speed is the harmonic average and must be used in the fundamental equation.
  • The Greenshields Model assumes a linear relationship between speed and density, leading to a parabolic relationship between flow and density where capacity (qmaxq_{max}) occurs at uf/2u_f/2 and kj/2k_j/2.
  • Shockwave Theory describes how changes in traffic states (like a queue forming or dissipating) propagate along a roadway.
  • Queuing Theory is used to calculate delays and queue lengths at bottlenecks, analyzing the balance between arrival rates and service rates.