This code is a cellular automaton model for simulating traffic spatiotemporal patterns. And the code is written in Python. Only the most useful packages, numpy, matplotlib are used.
This is the circular road condition only, the open road with an on-ramp version will be added later.
In ./figs folder, there are two figs made by the code. You can compare them with the figs in the publised paper.
For more information, please refer to the original text:
Tian, J., Li, G., Treiber, M., Jiang, R., Jia, N., Ma, S., 2016. Cellular automaton model simulating spatiotemporal patterns, phase transitions and concave growth pattern of oscillations in traffic flow. Transportation Research Part B: Methodological 93, 560–575. https://doi.org/10.1016/j.trb.2016.08.008