Flocking: Vicsek to Murmuration
Each dot is a self-propelled particle moving at constant speed. Every step it just turns to match the average heading of its neighbors, plus a little random noise. Out of that one rule, flocks appear. Slide the noise up and watch the order melt. Then switch to Murmuration and give the birds a few more real-starling habits, and the flock starts to breathe.
Simulation
Tip: click the sky to drop a falcon right there.
What you are looking at
This is the Vicsek model
(1995), the simplest model that shows a flocking phase transition. There is no leader and
no goal. The order parameter phi is the length of the average velocity vector,
normalized to [0, 1]: it sits near 0 when the swarm is a disordered gas and rises
toward 1 when everyone points the same way. Push the noise slider past the critical value and
the plot collapses; pull it back and order re-condenses.
Metric mode: a particle aligns with everyone inside a fixed radius
r. Topological mode: it instead aligns with its k
nearest neighbors regardless of distance. Real starling flocks were found to be topological
(each bird tracks ~7 others), which keeps cohesion as the flock stretches and thins.
The box has periodic boundaries, which means it is really a flat torus: leave one edge and you re-enter on the opposite side. Hit View: Torus to glue those edges up for real and watch the flock circulate on the donut (drag to orbit). This is the same torus renderer used in the Brownian Studio.
Why real murmurations breathe
A Vicsek flock never does the thing starlings are famous for: swelling, pinching, folding over itself, with dark ripples racing across it. Murmuration mode keeps the topological neighbors and adds four ingredients from the starling research.
Turning inertia. A Vicsek particle snaps to its neighbors' heading instantly. Here neighbors only apply a torque to each bird's turn rate, and the turn rate carries momentum. Cavagna, Attanasi and colleagues found that real flocks work like this: a turn started at one edge sweeps across the flock as a wave at nearly constant speed instead of fading out. Slide Turn inertia up for big, swinging turns or down for twitchy ones.
Variable speed. The pull from your neighbors is split in two. The sideways part steers you; the forward part makes you speed up or ease off. Birds that fall behind sprint and birds in front slow down, so bands of squeezed and stretched flock roll along its length. This is where the expansion and contraction comes from; the orange line on the plot is the flock's spread so you can watch it breathe.
A roost. Starlings dance over the spot where they will sleep. The flock is tied to a slowly wandering roost: anyone who drifts too far curls back, so the whole mass keeps turning and folding over itself. Birds also drift gently toward the flock's center, standing in for the fact that starlings react to the dark mass of the flock they can see, not just to their seven nearest neighbors.
A falcon. Birds close to the falcon flee outward and a hole tears open (a "flash expansion"). Panic is contagious: every step each bird catches most of its most frightened neighbor's fear, so an agitation wave runs through the flock faster than any single bird can fly. Click the sky to drop a falcon wherever you like.
The dark bands. From the ground, a bird flying level is nearly edge-on, while a bird banked into a turn shows you its whole wing. Each bird here is drawn with a wing area that follows its bank angle, which follows its turn rate. So every turning or panic wave shows up as a dark band sweeping across the flock, just like the ripples you see over a real roost at dusk.
