Home▸Articles▸Transport & Urbanism

Traffic Flow Simulator: Understanding Congestion Through Fundamental Diagrams and Density Waves

A dynamic tool for exploring how traffic density impacts flow efficiency and the propagation of congestion.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

The Fundamental Diagram

The Fundamental Diagram is a graphical representation that illustrates the relationship between traffic flow (the number of vehicles passing a fixed point per unit time) and traffic density (the number of vehicles in a given length of road). This diagram typically shows three distinct regions: free-flow, where traffic moves at high speeds; congested, where speed drops significantly due to increased density; and jammed, where all lanes are blocked. The slope of the flow-density curve can provide insights into the efficiency of the road network.

By understanding this relationship, transportation engineers can design better infrastructure and implement more effective traffic management strategies.

Density Waves

In the simulation, density waves are visualized as disturbances in the uniform flow of vehicles. These waves propagate through the network due to changes in driving behavior or external factors such as accidents or roadworks. When a vehicle suddenly brakes, it creates a local decrease in speed and an increase in density, which then propagates backward like a wave. This phenomenon can lead to a chain reaction that worsens congestion.

Studying these waves helps in predicting and mitigating the spread of traffic jams, enabling more proactive management of road networks.

live demo · related simulation● LIVE

Congestion Analysis

The simulation allows you to analyze various scenarios to understand how different factors contribute to congestion. By adjusting parameters such as vehicle density, speed limits, and road capacity, you can observe the impact on traffic flow. For instance, increasing the number of vehicles in a fixed length of road will initially increase the flow but eventually lead to a decrease due to higher density and reduced speed.

This analysis is crucial for urban planners and policymakers to make informed decisions about infrastructure improvements and traffic control measures.

Real-World Applications

The principles of the Fundamental Diagram, density waves, and congestion analysis are applied in real-world traffic management systems. Traffic lights can be optimized based on the flow-density relationship to reduce congestion. Dynamic speed limits can be set to prevent the formation of density waves from turning minor incidents into major bottlenecks.

Moreover, these concepts help in developing autonomous vehicle technologies that can communicate with each other and adjust their speeds to maintain optimal traffic flow.

Frequently asked questions

What is a density wave in the context of traffic flow?

A density wave in traffic flow refers to a disturbance or change in vehicle density that propagates through the network, often leading to a decrease in overall traffic speed and an increase in congestion.

How does increasing road capacity affect traffic flow according to the Fundamental Diagram?

Increasing road capacity can initially lead to higher traffic flow by reducing density. However, beyond a certain point, further increases in density will result in decreased flow as vehicles slow down and move less efficiently.

Can you explain why understanding these concepts is important for urban planning?

Understanding the Fundamental Diagram, density waves, and congestion analysis is crucial for urban planners to design efficient road networks, optimize traffic management systems, and reduce the occurrence of traffic jams in cities.

How do autonomous vehicles fit into this model of traffic flow?

Autonomous vehicles can use real-time data from the Fundamental Diagram and density wave analysis to make informed decisions about speed and route, potentially leading to more efficient traffic flow and reduced congestion.

Try it live

Everything above runs in your browser — open Traffic Flow Simulator — Fundamental Diagram, Density Waves, and Congestion Analysis and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Traffic Flow Simulator — Fundamental Diagram, Density Waves, and Congestion Analysis simulation

What did you find?

Add reproduction steps (optional)