Home Download Help Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish

NetLogo User Community Models(back to the NetLogo User Community Models)
WHAT IS IT?
This is a replication of Kai Nagel and Michael Schreckenberg's model of traffic flow, as presented in "A cellular automaton model for freeway traffic".
HOW IT WORKS
Initially, patches are occupied by stationary cars with a density determined by the density slider.
The order of actions is as follows:
The patches are arranged linearly, but represent a ring. Cars leaving on the right return on the left.
HOW TO USE IT
Setup occupies a proportion 'density' of patches with a car with an initial velocity of 0.
The plot "Positions" places a point for each site occupied by a car over the last 1,000 ticks. Points are shaded from red to black for stationary and high speed cars, allowing fine structure to be seen in jams with many cars.
"Flow" shows the total flow rate along the road over the last 1,000 ticks given by the mean speed of cars multiplied by the density. The red line shows the time average of the flow.
THINGS TO NOTICE
Try setting p to 0.5, and changing the density over a range of values. What different behavior can you see in the plots?
For a low density such as 0.1, try varying p during the animation. Can you see any sudden changes in the plots?
Try increasing the world width to 500, or 1,000 patches.
Density < 0.1
Density ~ 0.1
Density > 0.1
Altering p during the animation has a very similar effect to altering the density. Close to the critical density ~0.1, the system is very sensitive. Increasing p from 0 to 0.5 shows gradual decrease in flow rate. Further increase shows a sudden decrease, and phase transition to congestedflow.
The model scales appropriately with worldwidth. Very long roads help remove the effects of the periodic boundary, and allow us to see very interest fractal structures in the model traffic jams with the "Positions" plot. CREDITS AND REFERENCES
Kai Nagel and Michael Schreckenberg, "A cellular automaton model for freeway traffic"
Any suggestions of questions? email: isw3@le.ac.uk 
(back to the NetLogo User Community Models)