Presets
Playback
The hunter and the moths
Same model as the 3D lab.
The night sky
Moon phase, height in the sky and cloud.
Layers
Model checks
The science
Reading the map
The map is an 80 m by 80 m patch of meadow seen from above, wrapping at the edges. The dashed circle is the area in which the nightjar can see a moth in the current moonlight (radius rd = L W(A/L), with A set by light level, moth size and moonlight). The pale band behind the bird is the swath swept in the last 40 seconds. Its width is 2 rd, so a bird flying at v clears 2 rd v square metres of sky per second; for a moth that is itself flying at u the speed is replaced by the mean relative speed 〈|v − u|〉. Click a moth to see how far away it is and whether it is inside the disc.
With N moths per square metre the encounter rate is aN. After each catch the bird needs the handling time h and notices nothing else, which gives Holling's type II curve f = aN / (1 + aNh). The three graphs show the live count of moths taken against the formula (the dotted line and its two-standard-deviation band), the split of the night between searching and handling as the sky gets more crowded, and the number of moths per kilometre of flight, which falls as the sky fills up because more and more of the flight is spent handling.
The same agent simulation drives the picture and the headless checks, and the same phys.js is used by the 3D page. Honest simplifications: a flat wrap-around arena where a taken moth is replaced in place by a new one a few seconds later (the meadow never runs out, Holling's no-depletion assumption); moths fly in random directions at one speed and do not react; detection is a circle and purely visual; the bird flies at constant speed along a gently wandering path and handling time is fixed; illuminance and visibility constants are illustrative; the nightjar sprite is drawn about nine times and the moths about 110 times life size; screen brightness is compressed. Moth numbers are kept independent of the moon so that the effect of light on seeing can be separated from the effect on moth activity.
What to try
- Run at 8x and watch the pale swath: its width is the detection diameter, and each yellow ring is a moth taken.
- Press Quick snack (handling 1.5 s): handling time shrinks and the intake rises, but the density at which the curve levels off moves far to the right.
- Raise the moth flight speed to 3 m/s: moths now cross the disc faster than the bird flies at them alone, so the swept sky per second grows.
- Click a moth near the edge of the disc to check its distance against r_d.