Presets
Playback
Colony and food
Environment
Run
Camera
Layers
Quality
Model check
The science
What is modelled
A nest, one to three piles of food and a meadow with rocks and puddles. Each ant searches, picks up one unit of food, walks straight home and lays pheromone on the way. Other ants steer toward stronger pheromone. The environment acts on the trail: temperature speeds up evaporation and changes how fast the ants walk, rain washes the trail out, wind carries it downwind, and the trail slowly spreads by diffusion. A rock dropped on the path forces the colony to find a way round.
Equations
- Trail field
φ(x, t)on an 80 x 80 grid (1 cm cells):∂φ/∂t = D ∇2φ - u · ∇φ - λ φ + q Σloaded ants δ(x - xa). Evaporation uses the exact factore-λ Δt, diffusion an explicit five-point scheme, wind a semi-Lagrangian shift. - Loss rate:
λ = λ20 2(T - 20)/10 + 0.0009 Rwith air temperature T in Celsius and rain rate R in mm/h. The doubling per 10 C is the usual rule of thumb for vapour pressure and chemical volatility; the rain coefficient is an assumed value. - Ant speed
v = 2.2 cm/s × Q10(T - 20)/10 (1 - 0.35 R/50)with Q10 = 2 (capped at 1.8, zero below 6 C): ants are cold-blooded. - Trail following (Deneubourg-type choice): an ant looks 1.6 cm ahead to the left, straight and right and picks a direction with probability proportional to
(k + φ)2; k sets how much the trail is trusted. Returning ants steer toward the nest (path integration). - Steady trail mass for a constant number of loaded ants:
M* ≈ q n / λ, drawn as the dashed line in the second graph (it ignores wind outflow and the carried-food phase).
Checks run in the page
- Evaporation of a uniform field against
e-λ t, and the 2x per 10 C law. - Diffusion of a Gaussian spot: mass conservation and variance growth
σ2 = σ02 + 2 D t. - A constant point source against the exact geometric sum.
- Wind drift of a spot against
u t. - Food accounting: initial food = left in piles + carried + delivered.
Honest simplifications
- Real ants lay trails with several chemicals, sometimes also on the way out, and use vision, memory and the sun compass. This model has one pheromone, deposited only by loaded ants, and perfect homing. Real pheromone half-lives range from minutes to hours depending on the species and the substance; the default here (about 70 s) is chosen so the effect is visible in a few minutes.
- Rain and wind act on the trail only; raindrops do not push ants and puddles are simply obstacles. Temperature effects are Q10-style approximations with no upper heat-stress limit.
- The ants are drawn about as long as in life (1 cm) but move at an assumed fixed speed; there is no collision between ants. Random seeds are fixed so a given setting repeats.
What to try
- Compare "Hot dry day" with "Cold morning": hot trails fade fast but ants run fast; cold trails last but ants crawl.
- Start the rain shower: watch the trail fade and the delivery rate drop, and recover when the rain stops.
- Tick "Click the ground to drop a rock" and block the trail; ants find a detour and reinforce it.
- Raise the wind: the trail drifts away from the line between nest and food.
Loading model...
Loading Blender model...