Presets
Playback
Apparatus
Model checks
The science
What is modelled
A chameleon is an ectotherm: its body temperature follows the air around it, so it walks along the perch to the spot nearest its preferred 28 C. The heat lamp makes a warm patch, the night is cooler, and the humidity of the air sets the vapour-pressure deficit that dries the animal. Warmer bodies also burn their energy reserve faster according to a Q10 rule.
Equations
- Saturation pressure (Magnus-Tetens)
es(T) = 0.6108 exp(17.27 T/(T + 237.3))kPa and deficitVPD = es(1 − RH/100). - Body temperature relaxes as
dTb/dt = (Tlocal − Tb)/τwith τ = 0.25 h; the lamp patch is a GaussianTc + (Ts − Tc) exp(−((s − sL)/0.28)²). - Metabolism
Q10(T − 25)/10times 2.4 % of the reserve per hour; evaporation2.2 % per hour per kPaof deficit. - Behaviour: choose the perch position minimising
|Tlocal − 28|plus a small walking cost.
Checks run in the page
- Saturation pressure against table values and the deficit identity.
- Body warming by RK4 and by the exact exponential step against the closed form.
- Q10 rule: ten degrees multiplies the rate by Q10.
- Basking choice against a fine search, plus the day totals of reserve burnt and water lost.
Honest simplifications
The rates (2.4 % per hour of reserve, 2.2 % per hour per kPa) and the thermal time constant are illustrative game-balance values, not measurements of a real animal, whose reserves last days. The body is one lump at one temperature, there is no radiation or conduction detail, and humidity is held constant.
What to try
- Press Hot and dry: the deficit rises sharply and so does the water lost per day.
- Press Cold room, no lamp heat to see the chameleon unable to reach 28 C and the energy burn drop.
- Press Sluggish metabolism (Q10 3.2) and compare the energy burnt per day.