r/Simulated • • 3d ago

Proprietary Software Traffic Jam simulation

This is a simple model of traffic called the Nagel-Schreckenberg model. Each square represents a car. Red means it is at a full stop (stuck in a jam), yellow braking, and green means it is driving at vmax. At each tick, a car increases its speed by 1 or adjusts its speed so it doesn't crash, and with probability p(dawdle) it randomly brakes and decreases speed by 1. Edit: each tick the rows move up one rung, so you what happens over time. Through these very simple rules traffic jams can emerge due to just one person randomly changing speed. If you set vmax to 1 and p(dawdle) to 0, you get Wolfram's rule 184

This is a little TouchDesigner simulation I used to research my video about phantom traffic and its solutions

41 Upvotes

7 comments sorted by

33

u/anoobypro 3d ago

How does this translate to what appears on a road?

15

u/NaCl-more 3d ago

Basically as the video scrolls time is passing. So you see the traffic jam propagate backwards

5

u/matigekunst 3d ago

Thanks, I edited my description:)

2

u/matigekunst 3d ago

It's a model that describes how phantom traffic occurs. The video in the description shows it a bit better

8

u/Quantumtroll 2d ago

Ohhh, the cars are travelling to the left!

That took me way too long to figure out.

2

u/Ayarkay 2d ago

Omg @ the bigass traffic jam near the end