Skip to content

toruseo/traffic-flow-demo

Repository files navigation

traffic-flow-demo

Interactive demonstration of fundamentals of traffic flow and simulation on the web

How to use

Access the online versions below, or download this repo and open bottleneck_min.html or loop_min.html using a common web browser (e.g., Firefox, Chrome, Edge, Safari)

Online versions with explanations

Files

  • bottleneck_min.html: simulator for a bottleneck
  • loop_min.html: simulator for a ring road
  • mainloop.js: code for execution and animation
  • model.js: code of traffic flow models etc.
  • scenario_bottleneck.js, scenario_loop.js: codes defining the scenarios
  • util.js: general utility

Updates

  • 2023-08-10: Increased the width of time-space diagram and cumulative plot
  • 2023-07-14: Implemented pause function
  • 2022-08-16: Initial release

Releases

No releases published

Packages

No packages published