This is a yield-controlled roundabout, not a signalized intersection: there are no traffic lights or fixed timers anywhere in the model. A car waiting to enter constantly measures the time it would take the nearest approaching circulating car to reach the entry point. If that time is at least the critical gap, it merges immediately; otherwise it waits, re-checking every frame, exactly like a real give-way line. Circulating traffic always has priority — it never yields to entering traffic.
Once merged, every car follows an Intelligent-Driver-Model car-following law along the ring's arc length, decelerating for the vehicle ahead of it in its lane. Each car is assigned a random exit leg the instant it merges and peels off automatically when it reaches that leg.
- Arrivals per leg — average vehicles/min spawned at each of the four approaches.
- North–South heavy demand — doubles arrivals on the N and S legs to create an asymmetric-demand scenario.
- Critical gap — the minimum time-to-arrival a driver accepts before entering; raise it to model cautious drivers and watch queues grow even though the ring itself is far from full.
- Ring speed limit — the free-flow speed circulating cars target on the curve.
- Ring capacity — switching to 2 lanes lets a merging car pick either lane independently, roughly doubling throughput before gridlock sets in.
This is the mechanism behind real single-lane and double-lane roundabouts, and the gap-acceptance math (critical gap, follow-up time) is the same theory highway engineers use to size them — distinct from a signal-timed intersection or a single-lane car-following road.