CT54.A6.CombinedSwarms — the science of this version

This document describes the simulation as it is in CT54.A6, and only that. It does not cover earlier versions. How to run the program is in the Audit (CT54.A6.CombinedSwarms_AUDIT.md / .html); the build history is in the context file (CT54.A6.CombinedSwarms.md).


0. In one page

The program simulates a honeybee reproductive swarm in the minutes after it leaves the hive. The bees mill in a loose cloud, find the queen by her scent and gather around her. Nothing is scripted: each bee follows a few local rules, and the timing, size and shape of the result come out of them.

There are five options:

# Option Conditions What forms Status in the scientific literature Section
1 Beard mild & calm, 22 °C a long, pointed cluster hanging from a vine stem documented §5
2 Compact (default) cool, 11 °C a tight, rounder, tightly bound cluster documented §5
3 Broad hot, 32 °C a short, broad, looser cluster with about twice the volume documented §5
4 Swaying windy, 18 °C, gusts a short, broad cluster that sways documented §5
5 Hovering ball still air, 20 °C a dense ball of bees flying around a queen who hovers in the open experiment based on the author's observations — not documented §6

Options 1–4 model behaviour that researchers have measured and described. Option 5 is an experiment. It is based on what the author once saw a swarm do. No published study describes it, and §6 sets out plainly how it differs from what is known.

Time is compressed about 8×. A real swarm takes 10–20 minutes or more to condense into a cluster (Seeley 2010). In the simulation the cluster forms over about 2–3 minutes of simulated time. The scent rates and smell thresholds set the pace (§4.5), not a timetable.


1. What a reproductive swarm is

The simulation covers the milling cloud and the forming of the cluster (options 1–4), or the forming of the flying ball (option 5). Choosing a new home and flying off are not simulated (§8).


2. The scene


3. The bees

3.1 Who is in the swarm

Caste Share Body length used Body width used Source
Workers (female) ~97 % 12.8 mm mean, s.d. 1.1, clipped to 10–15 mm 4.2 mm worker length 10–15 mm, width 3–5 mm (dimensions.com)
Drones (male) 3 % 15–17 mm, uniform 5.5 mm drones are larger and stouter than workers; illustrative values
Queen 1 19 mm 4.8 mm queen length 18–20 mm (dimensions.com)

Drone numbers in swarms vary widely. The 3 % and 15–17 mm are reasonable illustrative values, not measurements.

3.2 How they are drawn


4. The model shared by all five options

4.1 Scent in the air

4.2 Milling: the cloud

4.3 Smelling and following

4.4 The queen

The queen mills with the cloud, calmer than the workers. Then she leaves it: * options 1–4: at 12 s she makes for the support and alights under the middle of the beam. Real queens land "apparently at random" (American Bee Journal); the stem stands in for wherever she lands. * option 5: at 20 s she flies to a point in the open air and hovers there (§6.3).

4.5 What sets the pace

The scent emission rates, the decay and the bees' thresholds were tuned so that the whole event takes 2–3 minutes of simulated time instead of the real 10–20 minutes. ?threshold= and ?fan= change the pace.


5. Options 1–4: the hanging cluster (documented)

5.1 What real clusters are like

5.2 How the model forms the cluster

  1. Landing where it touches. An attracted bee lands at the point where it touches the queen or a bee already settled (two equal-volume spheres touching at the packing spacing). Nothing reserves a place for it. It lands there only if it can take a hold above it; otherwise it flies on. So bees build up on the underside and the cluster grows downward.
  2. Grips. Every settled bee has up to three grips: on the support (one bee per foothold) or on a settled bee above it. A bee never hangs from a bee below it, and at most four bees can hang from one bee. A grip is a link of about one body length (a bee hangs by its legs). Footholds on the support are taken only while the cluster is founding, or next to support-holders that carry more than a quarter of their grip strength. Grip strengths are drawn from Shishkov et al.'s 35 ± 14 bee-weights.
  3. Load. Each tick, every bee passes its own weight plus everything hanging from it up to its holds, shared equally. A bee whose load exceeds its grip strength re-grips to a reachable hold above. K shades the bees by load ÷ grip strength, G draws the grips, and N shows the chains inside the cluster.
  4. The shell and the outline. The settled bees fill an envelope, a shape of revolution hanging from the support around the queen. Its volume comes from the bees: their own volume divided by the packing for the air temperature (0.6 at 15 °C falling linearly to 0.3 at 30 °C) in the core and 0.62 in the shell. Inside it the bees pack under a light gravity. The outer ~3 bee-widths are the shell: packed tighter than the core, and drawn facing up. Bees outside the envelope are drawn back each step, so the surface is smooth.
  5. Its proportions come from the weather setting:
Option Air Length ÷ width Top (where it grips) ÷ widest Lower end
1 Beard 22 °C, calm 1.7 0.58 drawn to a point
2 Compact 11 °C, calm 1.0 0.55 rounded
3 Broad 32 °C, calm 0.8 0.85 flat
4 Swaying 18 °C, gusts 0.62 0.85 flat

On the flat beam the cluster spreads along the wood: it is no longer than 0.9 × its width, and its top is wider.

Honesty note. These proportions are chosen to match the observations in §5.1. They are not derived from the bees' mechanics. The bees fill the outline, pack, grip and form their chains on their own; the volume is computed; the outline's shape is given. 6. Wind (option 4). Gusts change smoothly every 1.7 s. They push the hanging bees across the beam, more the lower they hang, and the envelope leans with them, so the cluster sways. They also drift the milling cloud.

5.3 Results (seed 3906, 7,500 bees)

Option 60 s 90 s 120 s 150 s: final shape (length × width of the settled bees)
1 Beard 29 % settled 99.6 % 99.9 % 9.6 × 4.3 in: a long, pointed beard
2 Compact 16 % 76 % 99.9 % 6.8 × 4.4 in: shorter and rounder
3 Broad 30 % 95 % 100 % 7.2 × 5.9 in: broad, the largest volume
4 Swaying 19 % 65 % 95 % 4.9 × 5.3 in: wider than long, sways ~0.7 in

These sit within the 10–30 cm (4–12 in) reported for real clusters. With 7,500 bees they are toward the small end, as expected for a swarm smaller than the typical 10,000.


6. Option 5: the hovering ball — an experiment based on the author's observations

Status: an experiment, not a documented behaviour. Option 5 is built from the author's own observation of a swarm. No published study that could be found describes a dense ball of honeybees flying around a queen who hovers in one place, attached to nothing. Everything below about how option 5 behaves is a model of what the bees would have to do to produce what the author saw. It is not a description of known swarm behaviour.

6.1 What the author saw

Years ago the author watched a swarm. There was first the large cloud, about 10 ft across. Then there was a dense, roughly spherical ball of bees 12–18 in across that seemed not to be attached to anything, with the bees still flying. Later there was a similar ball in a different place. The author did not see the ball form, nor see it move from one place to the other.

6.2 What the literature says

The bees in a flying swarm are tens of centimetres apart. * Clustering means landing. In studies of swarm aggregation, workers that find the queen stand on a surface, face her, expose the Nasonov gland and fan scented air away from her. The cluster forms on something solid around her (Nguyen et al. 2021; SICB abstract on flow-mediated pheromone signalling). * The queen's scent works in flight. It holds the swarm together and draws it to settle (Seeley 2010). * Hovering. Honeybees can hover. A queen holding one spot in still air for minutes has not, as far as could be found, been described. * Queen balling is something else. It is documented, but it is workers clumping tightly around a queen on the comb or the ground, not in the air.

What this means for the experiment. * Density. 5,000 bees in a 15-in ball is about 190,000 bees per m³, roughly 2,000 to 10,000 times denser than any measured swarm in flight. The bees are about 17 mm apart, centre to centre: about one wingspan. * Energy. A worker in flight burns sugar fast. Hovering for many minutes would drain the honey the swarm carries for its move (Seeley 2010). * A possible explanation. A ball that looks free-floating could be a cluster on something small or hidden (a thin twig, a wire, a leaf), with the outer bees still flying and crawling over it so that it looks unattached. The two balls in different places could be an ordinary short relocation: a swarm that has settled can lift off and re-cluster a short distance away, and beekeepers often see this. * Why the experiment is still worth running. The observation stands as an observation. Option 5 tests what it would take for bees to stay close around a queen in open air, and what the ball would do if she moved.

6.3 How the experiment is modelled

  1. The queen. She mills with the cloud for 20 s, then flies at 6 ft/s to her station, 7 ft up and 4 ft in front of the arbor, in still air. She holds it, wandering slowly about it (rms about 1 in), and releases her scent at the full rate.
  2. The scent. The same air grid as §4.1. Around a point source its steady plume falls off roughly as e^(−r / 5 ft) / r. In-flight scenting: 20 % of the bees in the ball expose the Nasonov gland and add a little scent where they fly. There is no directed fanning stream, because fanning is something bees do standing (§6.2).
  3. Joining. A milling bee whose threshold is passed follows the scent uphill (§4.3). Within 6 ft it sees the queen and flies straight at her. Within 1.6 ft it changes to the slow, agile flight of the ball. A bee that loses the scent (below half its threshold) drops back to milling.
  4. In the ball each bee has a velocity and feels: * a pull toward the queen: 24 ft/s² inside 0.35 ft, plus 80 ft/s² for every foot beyond; * crowding: a push down the gradient of the density of ball bees, stiffening once the bees are closer than a comfortable spacing of 1.35 body lengths; * its own erratic turning; * its own slow cruising speed: 1.6 ft/s (about 0.5 m/s) on average, 0.7–4 ft/s. Bees can fly slowly and hover.
  5. Excursions. Now and then (0.4 % of the bees each second) a bee darts out for 1–3 s and comes back. Bees flung beyond 5 ft follow the scent in again.
  6. The ball's size is not set anywhere. It comes out of two balances: the bees' speed against the pull (a bee flying at speed v against a pull g stays within about v²/g), and personal space against crowding, which makes a bigger swarm a bigger ball.

6.4 Results (seed 3906)

Bees 90 % of the ball within ≈ across
1,500 6.6–7.2 in 13–14 in
5,000 (default) 7.6–7.8 in 15 in
15,000 8.6–10 in 17–20 in

6.5 Moving the queen

On Move queen (G) she flies slowly, 0.8 ft/s, 10 ft to the measuring pole; pressed again, she flies back. The Follow setting chooses how the ball's bees keep with her:

Which is closer to real swarms? Over metres, flying swarms are steered by sight: a few fast streakers fly through the cloud toward the goal and the rest follow (Beekman et al. 2006; Schultz, Passino & Seeley 2008). Over centimetres, inside a dense mass, scent and touch matter more. A real ball would most likely follow by a mix of both: it would lag more than the sight rule and less than the scent rule, and some bees would lose contact.

6.6 What is tuned or not real in the experiment


7. The sound

How the program makes it (synthesised, no recordings):

Part What it does Basis
Buzz waveform fundamental + 13 harmonics falling as h^−1.15 a buzz, not a sine — tuned by ear
Cloud chorus 10 tones over 196–256 Hz, each wandering ±25 cents, spread left and right, low-passed at 1.4 kHz wingbeat range
Wing noise noise band-passed at 260 Hz, plus a faint band at 5 kHz swarm-sound spectrum
Loudness of the cloud (√flying + 0.35 √settled) ÷ distance power sum and 1/r; the 0.35 for the fanning cluster is a guess
Near bees the 16 flying bees nearest the camera each get a voice, with pitch by caste and size, loudness 0.11 ÷ distance in ft, left/right from their place on screen, and Doppler wingbeat range; the size scaling is tuned

In a movie the same sound is re-created sample by sample for every movie frame, so it is locked to the picture.

Not real (yet): the timbre is synthetic; no wind, ground reflection or air absorption; no worker piping before lift-off.


8. What comes next in nature (not simulated)

The cluster is only a bivouac. Usually within a few hours, occasionally after two or three days: 1. Scouts — a few hundred of the oldest foragers, 3–5 % of the swarm — search for a cavity of about 40 litres with a small entrance (Seeley 2010). 2. A scout that finds one comes back and dances on the surface of the cluster. Better sites get longer dances. 3. The choice is made at the site: when about 10–20 or more scouts are there at once, they sense a quorum (Seeley & Visscher 2003). 4. Those scouts pipe on the cluster. The mantle bees warm their flight muscles to about 35 °C, which takes about an hour (Seeley & Tautz 2001). 5. Lift-off: within a minute or so the cluster dissolves into the air, from the surface inward. 6. The flight: the cloud is steered to its new home by streakers flying fast through its upper part (Schultz, Passino & Seeley 2008).


9. Time, determinism and the movie


10. Summary: tuned, measured, given

Kind What
Measured (from the sources) cloud size; flight speed; cluster size range; packing range and its change with temperature; grip strength 35 ± 14; body sizes; wingbeat frequencies; swarm-cloud density in flight
Given from observations the cluster outlines for the four weathers (§5.2); the queen's landing place; the author's 12–18 in ball (option 5)
Tuned to look right scent emission, decay and thresholds (the pace); turning gains; share of fanners; the chain rules; all of option 5's ball forces; the sound's timbre and level
Not modelled temperature regulation; bees walking over the surface; real legs and orientation in the grips; turbulence and fanning jets in the scent; scouts, dances, piping and lift-off

11. Sources