Each bead is an active Brownian particle. In the overdamped limit its position obeys dr/dt = v₀·e(θ) + μ·F, where e(θ) = (cos θ, sin θ), the heading diffuses as dθ = √(2·Dr·dt)·N(0,1), and F is the sum of short-range repulsions, F = k·(σ − r) along the line of centres for r < σ (k = 400 in units of σ per second). Positions live in a periodic square whose side L follows from the packing fraction, φ = N·π·σ²/(4·L²).
Nothing in this model attracts or aligns. Yet above a threshold in the Péclet number Pe = 3·v₀/(Dr·σ) and in φ, the uniform state is unstable: a bead that runs into others is blocked by them while it still pushes, so it lingers, which raises the local density and blocks more beads. The measured effective speed ⟨v·e⟩/v₀ falls inside clusters. The system separates into a dense, slow phase and a dilute, fast gas. This is motility-induced phase separation (Cates and Tailleur, Annu. Rev. Condens. Matter Phys. 2015; Stenhammar et al., Soft Matter 2014).
Simplifications: no translational diffusion and no hydrodynamics, the contact force is a soft harmonic spring (beads can overlap by about v₀/k), and only 800 particles run in the browser, so clusters are small and fluctuate strongly; the true phase boundary needs far larger systems and longer runs. The cluster measure counts beads whose centres are closer than 1.05σ. Pe values here use the usual definition for hard disks; with soft contacts the threshold is shifted.