Traffic Flow Theory
Learning Objectives
- Understand the fundamental relationships between traffic flow, speed, and density.
- Analyze Time-Space Diagrams to interpret vehicle trajectories.
- Apply traffic stream models like Greenshields and Greenberg's models.
- Analyze Shockwave Theory and Queuing Theory for traffic bottlenecks.
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 (): The slope of the trajectory line (). A steeper slope indicates a higher speed. A horizontal line (zero slope) indicates a stopped vehicle.
- Headway (): The horizontal distance between two parallel trajectories at a constant distance (e.g., passing a specific point).
- Spacing (): 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 ().
Fundamental Equation of Traffic Flow
The core relationship linking the three main macroscopic parametersβflow (), density (), and speed ()βis given by:
Where:
- = Flow rate: Number of vehicles passing a point per hour (veh/hr or vph)
- = Density: Number of vehicles occupying a given length of a lane or roadway at a given instant (veh/km or veh/mi)
- = Space mean speed: The average speed of vehicles over a specific length of roadway (km/hr or mph)
- Fundamental Traffic Variables
Interactive Simulation
Use the simulation below to explore traffic flow.
To understand the macroscopic variables (), we must first understand their microscopic counterparts.
Flow () and Headway ()
Flow Components
- Flow (): The macroscopic rate at which vehicles pass a fixed point.
- Headway (): The microscopic time interval between the passage of the front bumpers of consecutive vehicles.
Flow and Headway Relationship
Relates macroscopic flow to microscopic average headway.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Flow rate | veh/hr | |
| Average time headway | s |
Density () and Spacing ()
Density Components
- Density (): The macroscopic concentration of vehicles over a length of road.
- Spacing (): The microscopic distance between the front bumpers of consecutive vehicles.
Density and Spacing Relationship
Relates macroscopic density to microscopic average spacing.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Density | veh/km | |
| Average spacing | m |
Speed ()
Speed Components
- Time Mean Speed (): The arithmetic mean of the spot speeds of vehicles passing a fixed point over a period of time. It is measured using radar guns or loop detectors.
- Space Mean Speed (): The harmonic mean of spot speeds, representing the average speed of vehicles present on a segment of roadway at a given instant. This is the speed () used in the fundamental equation .
Time-Space Diagrams (Trajectories)
Visualizing vehicle movement over time and space.
Analyzing Trajectories
A fundamental tool in traffic flow theory is the Time-Space Diagram. It plots the position of a vehicle () on the vertical axis against time () on the horizontal axis.
- The line representing a vehicle's path is called its trajectory.
- The slope of the trajectory () 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 ().
- The horizontal distance between two parallel trajectories is the time headway ().
Measurement Methods
The Moving Observer Method
Moving Observer Technique
A practical field technique for simultaneously estimating traffic flow () and average speed () on a roadway segment is the Moving Observer Method. A test vehicle travels along the segment in both directions, recording:
- The number of vehicles it overtakes.
- The number of vehicles that overtake the test vehicle.
- The number of opposing vehicles met (when traveling in the opposite direction).
- 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.
- 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.
Greenshields Linear Speed-Density Model
Assumes a linear, inverse relationship between speed and density.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Speed of the traffic stream | km/hr or mph | |
| Free-flow speed | km/hr or mph | |
| Density of the traffic stream | veh/km or veh/mi | |
| Jam density | veh/km or veh/mi |
Substituting this into the fundamental equation (), we get a parabolic flow-density relationship:
Greenshields Parabolic Flow-Density Model
Models the flow as a parabolic function of density.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Flow rate | veh/hr | |
| Free-flow speed | km/hr or mph | |
| Density of the traffic stream | veh/km or veh/mi | |
| Jam density | veh/km or veh/mi |
The Derivation of Maximum Capacity ()
Understanding why capacity occurs at exactly half of the free-flow speed and jam density.
Deriving Optimal Capacity
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:
To find the maximum flow (), we take the derivative of flow () with respect to density () and set it to zero:
Solving for , we find the optimal density ():
Substituting back into the original linear speed equation yields the optimal speed ():
Finally, applying the fundamental equation :
Maximum Flow (Capacity)
Maximum Flow (Capacity)
In the Greenshields model, maximum flow (, also called capacity) occurs exactly when the traffic stream is at half the jam density and half the free-flow speed.
- Optimum Density ():
- Optimum Speed ():
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.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Speed of the traffic stream | km/h or mph | |
| Optimum speed at maximum flow | km/h or mph | |
| Jam density (maximum possible density) | veh/km or veh/mile | |
| Current density of the traffic stream | veh/km or veh/mile |
Macroscopic Fundamental Diagram (MFD)
Extending flow theory from a single roadway segment to an entire urban network.
Network Extension
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.
- Shockwave Theory
Understanding Shockwaves
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 () is calculated as the slope of the chord connecting the two traffic states (Points 1 and 2) on the flow-density () curve.
Shockwave Speed Equation
Calculates the speed of the shockwave boundary between two traffic states.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Shockwave speed | km/hr or mph | |
| Flow rate of state 1 | veh/hr | |
| Flow rate of state 2 | veh/hr | |
| Density of state 1 | veh/km or veh/mi | |
| Density of state 2 | veh/km or veh/mi |
Shockwave Types
- Forward Moving Shockwave (): The boundary moves in the direction of traffic. (e.g., A queue dissipating after a green light turns on).
- Backward Moving Shockwave (): The boundary moves against the direction of traffic. (e.g., A queue forming and growing backward from a red light or an accident).
- Stationary Shockwave (): The boundary stays in one place. (e.g., The front of a queue at a steady bottleneck where arrival rate exactly equals departure rate).
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.
Where:
- is the acceleration of the following vehicle after a reaction time .
- is the relative speed (stimulus).
- is the spacing between the vehicles.
- 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 (). 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.
- 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)
Deterministic Queuing Traits
- Assumptions: Arrival rate () and service rate () are constant and deterministic. There is 1 server.
- Mechanism: A queue forms whenever the arrival rate exceeds the service rate ().
- Analysis: Often visualized using cumulative arrival and departure curves over time. Total Delay is the area between these two curves.
Stochastic Queuing (M/M/1)
Stochastic Queuing Traits
- Assumptions: Arrivals are random (following a Poisson distribution, hence Markovian 'M'), service times are exponentially distributed (also 'M'), and there is 1 server.
- Condition: The system only reaches a steady state if the utilization ratio . If , the queue grows infinitely.
- Key Metric: Average queue length () is given by:
M/M/1 Delay Analysis
Calculates the average time a vehicle spends waiting in the queue and the total time spent in the system.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Average time spent waiting in the queue | hours or minutes | |
| Mean arrival rate | veh/hr | |
| Mean service rate | veh/hr |
Total Time in System
Calculates the total average time a vehicle spends in the M/M/1 queuing system (wait time + service time).
Variables
| Symbol | Description | Unit |
|---|---|---|
| Average total time spent in the system | hours or minutes | |
| Average time spent waiting in the queue | hours or minutes | |
| Mean arrival rate | veh/hr | |
| Mean service rate | veh/hr |
Mathematical Formulations in Flow Theory
The Greenshields Model Equation
The Greenshields Model assumes a linear relationship between speed and density:
Greenshields Speed-Density Formula
Assumes a linear relationship between speed and density.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Speed of the traffic stream | km/hr or mph | |
| Free-flow speed | km/hr or mph | |
| Density of the traffic stream | veh/km or veh/mi | |
| Jam density | veh/km or veh/mi |
Substituting this into the fundamental equation () yields a parabolic relationship for flow:
Greenshields Parabolic Flow Model
Models the flow as a parabolic function of density.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Flow rate | veh/hr | |
| Free-flow speed | km/hr or mph | |
| Density of the traffic stream | veh/km or veh/mi | |
| Jam density | veh/km or veh/mi |
Maximum capacity () occurs when density is exactly half of the jam density () and speed is half of the free-flow speed ():
Maximum Flow (Capacity) Formula
Calculates the maximum flow rate based on free-flow speed and jam density.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Maximum flow rate (capacity) | veh/hr | |
| Free-flow speed | km/hr or mph | |
| Jam density | veh/km or veh/mi |
Shockwave Velocity
The velocity of a shockwave () propagating between two different traffic states (state 1 and state 2) is defined as the change in flow divided by the change in density:
Shockwave Velocity Equation
Calculates the velocity of a shockwave between two traffic states.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Shockwave speed | km/hr or mph | |
| Flow rate of state 1 | veh/hr | |
| Flow rate of state 2 | veh/hr | |
| Density of state 1 | veh/km or veh/mi | |
| Density of state 2 | veh/km or veh/mi |
- Flow (), Density (), and Speed () form the three macroscopic variables linked by .
- Space Mean Speed () is the harmonic mean of individual speeds and properly links macroscopic flow to density.
- 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 forms a linear inverse relationship between speed and density, causing a parabolic flow-density curve where optimum flow (capacity) occurs halfway to the jam density () and halfway to free-flow speed ().
- Shockwaves visualize moving boundaries between two distinct traffic states with differing flows and densities.
- Shockwave Theory describes how changes in traffic states (like a queue forming or dissipating) propagate along a roadway. Speed of a shockwave represents the rate of queue growth or dissipation.
- Queuing Theory assesses bottlenecks by analyzing arrival rates () vs. service rates () to calculate delays and queue lengths.
- When , queues grow infinitely; analyzing these helps predict delays and needed capacity expansion.