TrafficTwin

Urban Traffic Simulation with Cellular Automata

Simulate realistic traffic flow using the Nagel-Schreckenberg model. Visualize congestion heatmaps, manage intersections, and analyze traffic patterns in real time.

Quick Stats

3 Simulations
4 Presets

Available Presets

Light Traffic

Low density traffic with favorable light timing

Vehicles: 20 Max Speed: 5 Braking: 0.15
Moderate Traffic

Normal urban traffic conditions

Vehicles: 60 Max Speed: 5 Braking: 0.3
Rush Hour

High density peak-hour traffic

Vehicles: 120 Max Speed: 3 Braking: 0.5
Accident Scenario

Simulates blocked lanes and slow-moving traffic

Vehicles: 80 Max Speed: 2 Braking: 0.7

Recent Simulations

ID Name Status Steps Vehicles Actions
3 Light Evening Traffic created 0 15 Open
2 Rush Hour Scenario created 0 120 Open
1 Downtown Grid created 0 60 Open

Features

Nagel-Schreckenberg Model

Realistic cellular automata traffic simulation with acceleration, gap detection, and random braking.

🗺

Grid Visualization

Canvas-based real-time rendering of the road network, vehicles, and traffic lights.

🔥

Congestion Heatmaps

Dynamic heatmap overlay showing vehicle density and congestion hotspots.

📊

Traffic Analytics

Throughput, density, flow rate, speed distribution, and congestion zone analysis.