Codes

 

GitHub

Instructions

 

  • SCHEME 1: n-lane asymmetric model with PBC
    Example: 3-lane road of length 512, VDR braking with p=0.3, fast cars: 75%, 100 samples
    ./a.out -S 1 -L 512 -s 100000 -p 0.3 -z 0.3 -f 0.75 -l 3 -t 100

  • SCHEME 2: n-lane symmetric model with PBC
    Example: 2-lane road of length 512, VDR braking with p=0.5, fast cars: 50%
    ./a.out -S 1 -L 512 -s 100000 -p 0.5 -z 0.5 -f 0.5 -l 2 -t 1

  • SCHEME 3: n-lane hybrid model with PBC
    Example: 5-lane road of length 512, VDR braking with p=0.5, fast cars: 75%
    ./a.out -S 3 -L 512 -s 100000 -p 0.5 -z 0.5 -f 0.75 -l 5 -t 1

  • SCHEME 4: n-lane asymmetric model with one open lane
    Example: 4-lane road of length 512, VDR braking with p=0.5, fast cars: 75%
    ./a.out -S 4 -L 512 -s 100000 -p 0.5 -z 0.5 -f 0.75 -l 4 -t 1

  • SCHEME 5: n-lane symmetric model with one open lane
    Example: 4-lane road of length 512, VDR braking with p=0.5, fast cars: 75%
    ./a.out -S 5 -L 512 -s 100000 -p 0.5 -z 0.5 -f 0.75 -l 4 -t 1

  • SCHEME 6: n-lane hybrid model with one open lane
    Example: 4-lane road of length 512, VDR braking with p=0.5, fast cars: 75%
    ./a.out -S 6 -L 512 -s 100000 -p 0.5 -z 0.5 -f 0.75 -l 4 -t 1

  • Space-time diagram (PPM):
    awk -f space_time.awk [trace file] > trace.ppm

  • Space-time diagram (PBM):
    awk -f space_time_bw.awk [trace file] > trace_bw.pbm

References

 

  • K. Nagel and M. Schreckenberg, J. Physique I 2, 2221 (1992).
  • M. Rickert, K. Nagel, M. Schreckenberg, and A. Latour, Physica A 231, 534 (1996).
  • D. Chowdhury, D. E. Wolf, and M. Schreckenberg, Physica A 235, 417 (1997).
  • T. Zhang and Y.-C. Lin, Hybrid multilane models for highway traffic, Eur. Phys. J. B 91, 274 (2018).
  •