The science inside the simulator
A model is useful when its rules are visible. This page translates the equation and force table on the concert floor into plain English, then explains what the calculation can and cannot show.
The short equation
mass × acceleration = drive + alignment + avoidance + route + contact + damping + wall
Acceleration is the change in a person's simulated velocity. The terms on the right are vectors: each has a size and a direction. We add their horizontal and vertical components separately. Divide the resulting net force by that person's mass to find the next acceleration. The browser advances the agents with a fixed time step of 1/120 second.
| Force | In plain English | What to notice |
|---|---|---|
| Drive | Moves a person toward their preferred velocity. | Supplies ongoing motion; turning propulsion off removes active steering. |
| Alignment | Pulls velocity toward the mean of nearby velocities. | Neighbors matter within a limited 1.8 m radius. |
| Avoidance | Steers away from close and approaching neighbors. | A preference for space appears before bodies touch. |
| Route | In Circle mode, favors a tangent and a soft radius. | The route is supplied by the model, so a circle is not wholly spontaneous. |
| Contact | Repulsive spring and normal damping for touching discs. | Equal and opposite pair pushes transfer momentum. |
| Damping | Resists motion. | Removes kinetic energy from this simplified system. |
| Wall | Keeps people inside the rectangular floor. | Boundaries exchange momentum with the crowd. |
Reading the inspector
Select a person on the canvas or with the person menu. The colored arrows share one scale, so their lengths compare contributions for that person at the current instant. The white arrow is the vector sum. A large force does not guarantee a large speed: it may point against existing motion, and mass controls acceleration. Pause the animation for a stable reading, then use Reset to revisit the same seed.
What the numbers summarize
Mean speed averages the agents' speed without direction. Contact pairs counts touching disc pairs at the current physics step. Kinetic energy sums one half mass times speed squared, reported in kilojoules. Circulation measures the signed tangential part of velocity about the floor center: negative means counterclockwise and positive clockwise. It is a coherence score, not an angular speed or a safety rating. The density overlay bins agent centers into one-square-meter cells.
How the ideas relate to research
The Vicsek model shows how local alignment and noise can create group order among self-driven particles. The Social Force Model expresses desired motion and spacing as force-like terms. Silverberg and colleagues studied mosh and circle-pit patterns using a different flocking model. Our solver borrows concepts, not a validated parameter set from any of these papers.
Important limits
Discs have no feet, limbs, balance, intentions, fear, fatigue, or ability to fall. The 20 × 10 m floor has no entrance, exit, barrier, or obstacle. Masses, body radii, contact stiffness, and damping are illustrative choices. A numerical speed ceiling helps prevent simulation blow-ups. It should never be interpreted as a physiological limit. The equations answer “what follows from these rules in this sandbox?” They cannot estimate injury, safe venue capacity, or the next movement of actual people. Read the full model disclaimer before applying any intuition outside the browser.