A mosh pit is a changing collection of people moving in the same limited space. From the edge, motion may look random; from above, it can reveal a dense, irregular region or a stream circling an opening. Physics offers useful ways to describe those patterns. It does not reduce a concertgoer to a particle, and it does not make a real crowd predictable from a few sliders.
Active matter: motion with an internal energy source
A ball on a smooth floor coasts until friction or a collision slows it. A person can keep walking, change direction, or stop. In physics, a collection whose members continually supply their own motion is called active matter. That distinction is why the kinetic energy shown in this simulator can rise even when no outside object visibly pushes the crowd. Each modeled person has a preferred velocity, and a drive term nudges their current velocity toward it. The energy comes from the abstract drive rule. The model does not simulate muscles, fatigue, or the music that motivates people.
Our floor is a 20 by 10 meter rectangle. Each person is a disc with position, velocity, mass, and a heading. The browser advances the calculation in fixed steps of 1/120 second. A contact creates a repulsive push; a wall pushes back at the edge. The fixed step helps the animation remain repeatable, but numerical stability alone says nothing about how accurately a disc represents a human body.
Alignment and the Vicsek idea
The Vicsek model asks how self-propelled particles behave if they turn toward the average direction of nearby particles while some randomness perturbs each turn. Under some settings, locally aligned movement becomes an ordered group pattern. The concept is powerful because the particles have no organizer telling them which global direction to choose. Their neighbors supply the information.
Here, alignment is one adjustable ingredient alongside drive, contact, avoidance, walls, and optional route steering. It matches nearby velocities within a limited radius; it is not a faithful implementation of the original fixed-speed Vicsek update. Turn alignment up and a person may follow neighbors more strongly, but the outcome depends on the other terms. In our published three-seed comparison, stronger alignment lowered mean speed at the measured checkpoint. The takeaway is about this solver under those settings, not a rule that real pits slow down when people align.
Why a circle can form in a model
Researchers Silverberg and colleagues described gas-like and vortex-like states in concert videos and reproduced analogous patterns with a simplified flocking simulation. A circle pit is especially interesting because many separate movers can produce a coherent flow around a center. Our Circle mode makes a different modeling choice: it explicitly gives agents a tangential turning preference and a soft preferred radius. A circle is therefore partly built into the rules. Watch how collisions, spacing, and local disruptions change the flow, but do not treat its direction as something that emerged without guidance.
The circulation number is a compact summary of the simulated flow. Positive values mean a stronger clockwise tangential component, negative values mean counterclockwise, and values near zero mean little net circulation. It is a signed coherence measure, not angular velocity. A crowd can have moving people while the measure remains low if their tangential movements cancel. Read the number together with mean speed, contact pairs, and the picture on the canvas.
Social forces are a way to model choices
The Social Force Model expresses intended walking and spacing behavior as force-like terms. A desired-velocity term describes a pedestrian trying to move at a chosen speed. Repulsion describes a preference to avoid other people or boundaries. The word “force” is mathematical shorthand for a change in motion; a preference for personal space is not a literal physical push before bodies touch. Our simulator likewise distinguishes advance avoidance from contact force. The inspector shows their separate contributions for the selected person.
Suppose a disc is heading right while another disc approaches from the upper right. Avoidance may steer before contact, and a collision may then produce a stronger short-range repulsion. Alignment may pull its velocity toward nearby motion, while damping resists movement. Add those terms to get the net force; divide by mass for acceleration. This is Newtonian bookkeeping for the simulated agents, with behavioral choices translated into force-like rules. The science page explains each term in ordinary language.
How to explore without overreading the result
Start with the default crowd, pause, and select a person using the menu below the floor if clicking the canvas is difficult. Change one control at a time and watch the inspector and metrics. Reset returns to the same seed, allowing a cleaner comparison; New crowd changes the arrangement. The experiment guide offers paired recipes and downloadable results for a more disciplined comparison. A single attractive animation can suggest a question, while repeated settings and measurements make the observation easier to inspect.
Every model leaves something out. This one has no falling, fear, fatigue, injury, consent, exits, obstacles, or decisions about whether to join the pit. It cannot estimate safe capacity or predict what will happen at a venue. The safety myths article separates useful physical intuition from unsupported safety claims. Its practical message is modest: the model can help explain interactions, but any real crowd decision belongs to people with direct observation, appropriate training, and venue-specific information.
Keep exploring
Read the history of mosh pits for the cultural context, the Vicsek article for local alignment, or the social force article for the equation behind steering. Then return to the simulator and test one hypothesis yourself. The most useful outcome is a sharper question about which pattern came from the rule, the initial arrangement, or a choice you made while exploring.