Caught in a Mosh

The physics of moving together.

Build a crowd. Find the flow.

This free, interactive mosh pit simulator lets you explore crowd motion through a playful physics model. Change the rules, inspect one person’s forces, and compare repeatable experiments to see how local motion can form a larger pattern.

One result from our model: in three paired runs, raising neighbor alignment from 0% to 90% lowered mean speed at 15 seconds from 0.926 to 0.572 m/s. Matching nearby motion can also slow a mixed crowd. Explore the comparison and methods →

Concert floor20 × 10 m
STAGE
person
A top-down interactive particle simulation. Use the person selector below as an accessible alternative.Paused
Counterclockwise preference
Mean speed1.02 m/s
Circulation CCW − / CW ++0.05
Contact pairs0
Kinetic energy6.6 kJ
Click to inspect · ← / → to move selectionWhite: selected net force

Select a person to inspect their forces.Seed 12 · 160 people

A SMALL EXPERIMENT

Change one rule. Compare the result.

Read the model results →

How does matching nearby velocities change a disordered crowd?

Compare mean speed and the motion of nearby arrows. Alignment is velocity matching, so it can also slow people moving in different directions.

Load A or B to start paused with the same crowd seed.

The run stops at its checkpoint. Manual controls return to free exploration.

One person. Many forces.

Click a particle. Follow the push and pull.

right = +x · down = +y

Same scale for every arrow.
Net force is white.

Person #7383 kg

Speed
1.31 m/s
Velocity (x, y)
-1.17, 0.59 m/s
Preferred heading
153°
Personal gap
0.35 m
Nearby people
5

Heading: 0° right, 90° down.
Dashed halo: half the desired gap.

Forcex (N)y (N)Size (N)
Self-propulsion-35.517.939.7
Neighbor alignment199.4-63.7209.3
Personal space / avoidance0.00.00.0
Circle-route preference340.13.0340.1
Body contact0.00.00.0
Damping31.2-15.734.9
Boundary response0.00.00.0
Resultant force535.2-58.6538.4

Acceleration = net force ÷ mass. Values are model units expressed in N; they are not measurements of real people.

Why does a pit move?

Simple rules. Collective behavior.

People supply the motion

Each person tries to reach a preferred velocity. Muscles turn chemical energy into movement; feet push against the floor, which pushes back. Music motivates movement—it is not a mechanical force in this model.

Contact passes a push along

Overlapping bodies act like soft, damped springs. A pair feels equal and opposite contact forces. Walls also push back, exchanging momentum with the venue.

Steering is a choice

Personal space and looking a little ahead encourage avoidance. Alignment nudges a person toward nearby velocities. Circle mode adds a gentle preference to run around the center; no person follows a fixed track.

Energy in. Energy out.

Drive and steering can add or remove kinetic energy. Damping and inelastic contacts dissipate it. Switch self-propulsion off: all active steering stops, and the crowd settles. People are an active system, so crowd momentum and kinetic energy are not conserved on their own.

Under the hood: equations & limits
m a = Fdrive + Falign + Favoid + Froute + Fcontact + Fdamp + Fwall

Drive: m(v₀e − v)/τ, with τ = 1.5 − 0.85I seconds. Intensity I also increases random heading changes. Damping: −0.32mv. At zero preferred speed, avoidance may still reposition people; turn propulsion off to remove all active behavior. Alignment matches the mean velocity within 1.8 m. Avoidance uses the desired edge-to-edge gap plus a 0.45 s look-ahead.

Contacts use a 30,000 N/m spring and 450 N·s/m normal dashpot, clamped to repel only. Agents have masses 55–100 kg and radii 0.22–0.255 m. These are illustrative choices, not fitted measurements.

Circle mode steers headings toward a selected tangent and adds a soft radial preference near 3.15 m from the center. It deliberately supplies a route and turning direction. Collective spacing and disruptions emerge from local forces; this does not demonstrate spontaneous direction selection.

The solver uses fixed 1/120 s steps and semi-implicit Euler integration. Boundary impulses prevent escape; an 8 m/s numerical speed ceiling prevents blow-ups. Long frame gaps are discarded instead of jumping the physics. Reset reproduces the same seed; New crowd changes it.

Circulation is the mean signed tangential fraction of velocity: −1 is counterclockwise, +1 clockwise. It is a coherence score, not angular velocity. Density counts particle centers per 1 m² cell. Contacts counts touching pairs at the current physics step.

No fear, fatigue, falling, limbs, consent, obstacles, exits, music response, or real human decision-making. No parameter has been calibrated for injury or crowd-safety prediction.

From the video

The simulator was inspired by Dr. NEMO’s exploration of mosh pits. At 1:44–2:44, people circulate around an opening. The narrator reports 129 counterclockwise examples. That sample is not proof that clockwise pits never occur.

At 20:29–24:10, he explores alignment and directional bias, then explicitly treats the explanation as a hypothesis.

In this model

Soft discs, masses, steering strengths, the venue, and circle-route preference are our modeling choices. This is an original educational sandbox, not a reproduction of the video's experiment.

Related research: Silverberg et al. (2013) studied gas-like mosh motion and vortex-like circle pits using a simplified flocking model.

An educational model

Explore patterns.
Not a validated crowd-safety prediction tool.

What is the physics of a mosh pit?

How a room full of individual decisions can look like one moving system.

See the model equations →

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.