Agent simulation

Back to visual explanations
How does a local rule become a global pattern?

It starts with an encounter.

An infectious agent can pass it on within radius r. Yellow marks a transmission.

S+I→2I
Preparing simulation…0s simulated
One encounter
Susceptible2,400
Infectious0
Immune0
Last 0 simulated seconds

Simple rules. Complex behaviour.

Each agent moves through a shared flow field. Close contact with an infectious neighbour can pass on the infection. Agents recover after 9–16 simulated seconds, remain immune for 35 seconds, then become susceptible again.

Transmission scales the contact rate; it is not a real-world infection probability. Turn it to zero to stop new transmissions. Set movement to zero to freeze positions while recovery continues. Reset keeps your controls and restores the same population.

Yellow lines and rings mark actual transmissions. Blue circles, coral triangles and purple squares distinguish the three states. The camera follows one initial infectious agent, then pulls back without resetting the model. A spatial grid finds nearby agents without checking every possible pair. The population totals and history come directly from the simulation.

Illustrative agent-based model, not a biological model or a forecast. Runs locally. No sound.

    fifteen02