Presets
Playback
Nest sites
Colony
Dance and view
Camera
Layers
Quality
Model check
The science
What you see
A Blender-built meadow. The swarm hangs from an oak branch in the middle. Candidate home A is a hollow tree and B is a nest box; their distance and compass bearing come from the sliders (1 km = 6 world units, bees are drawn about ten times too large so you can see them). Orange and cyan bees shuttle between the cluster and the site they are committed to, white bees are uncommitted scouts, and the sun shows where the dance code points. On the comb at the left a dancer repeats the waggle run for the leading site; the arrow shows the run direction measured from straight up. When one site reaches the quorum the swarm lifts off towards it.
What is modelled
A swarm of honey bees hangs in a cluster while about 300 scouts look for a new home. Each scout is in one of three states: uncommitted, committed to site A, or committed to site B. The page runs two descriptions of the same process side by side. The dashed lines are the mean-field ODE; the solid lines are one random run in which every scout is an individual and events happen at random times (an exact Gillespie simulation).
Equations. With xi the fraction of scouts committed to site i and u = 1 - x1 - x2: dxi/dt = (gammai + rhoi xi) u - alphai xi - beta x1 x2. The bracket is discovery plus waggle-dance recruitment (committed bees advertise the site and recruit uncommitted bees), alpha is abandonment, and beta is the stop signal that bees from one site give to dancers of the other.
Link to the dance. Dance strength grows with site quality q: rhoi = r0 qi / (1 + taui/0.15 h) where taui = 2 di / 27 km/h is the flight round trip. Abandonment is alphai = a0 (1.25 - qi) and discovery falls with distance. The swarm lifts off when one site reaches the quorum (75 of 300 scouts by default; real colonies use roughly 10 to 20 bees counted at the site, and treating the quorum as a simple head count is the main simplification here).
The dance code. A waggle run lasting t seconds points to a site at d = t / 0.9 km (the calibration differs between races of bees; about one second per kilometre is typical). The angle of the run from vertical on the comb equals the compass bearing of the site minus the sun azimuth, so the code shifts as the sun moves about 15 degrees per hour. The sun model is a straight-line approximation of azimuth around noon.
Checks on this page
(1) One-site RK4 compared with the exact logistic solution. (2) Measured RK4 convergence order close to 4. (3) The long-time state equals 1 - alpha/rho. (4) The dance code decodes back exactly at three times of day. (5) The mean of 200 random-scout runs agrees with the ODE.
Simplifications
Scouts are well mixed (no geometry on the cluster), all rates are constant, the two sites are scouted independently, and the quorum is a plain count. Time is in hours of scouting; real swarms usually decide over one to several days.