You run the climate of a one-hectare glasshouse growing tomatoes. Sun, outside air and the crop itself push temperature, humidity and CO₂ around every ten minutes; your levers are the roof vents, the heating setpoint, a shade/energy screen, high-pressure fog and CO₂ dosing. Every number comes from an energy and mass balance you can inspect below.
What you will learn
Why a greenhouse overheats in sun, and why ventilation alone cannot cool it below the outside air.
How growers read humidity as vapour pressure deficit (VPD) and keep it in the 0.5–1.2 kPa band.
The trade-offs behind every lever: heat versus fuel, cooling versus water, venting versus humidity and CO₂.
Simulator
Time 0 min
✓Crop comfortable
!Crop under mild stress
✕Crop at risk (heat, cold or disease)
•Fog droplets
≈Heating pipes running
Controls
Air exchange grows with opening and wind. It removes heat, moisture and CO₂ alike.
The boiler heats up to 180 W/m² whenever the air is colder than this.
Closed: blocks 60 % of the light and cuts cover heat loss from 6.2 to 4.0 W/m²K, but also hinders air exchange and traps moisture under it.
Up to 0.4 L/m² per hour. Evaporating droplets cool the air; in humid air they wet the leaves instead.
Up to 8 g/m² per hour. Worth it only while the vents are mostly closed.
Indicators
Greenhouse air temperature
20.0°C
normal
Relative humidity
75%
normal
Vapour pressure deficit (VPD)
0.58kPa
normal
Crop photosynthesis (relative)
0%
critical
Outside temperature
18.4 °C
Outside humidity
58 %
Sunlight outside
371 W/m²
CO₂ concentration
420 ppm
Margin above dew point
4.6 K
Heating power
0 W/m²
Crop transpiration
0.00 L/m²·h
Air changes
1 1/h
Heating energy used
0.00 kWh/m²
Fog water used
0.00 L/m²
CO₂ dosed
0 g/m²
CO₂ fixed by the crop
0.0 g/m²
Heat-stress hours (> 35 °C)
0.0 h
Cold-stress hours (< 10 °C)
0.0 h
Disease-risk hours (RH ≥ 90 % or wet leaves)
0.0 h
Growing degree-days (base 10 °C)
0.00 °C·d
Trend
Crisis scenarios
Level 1 · Heat wave afternoon
Ten in the morning, clear sky, and the forecast says 33 °C outside by mid-afternoon. The vents are only a third open and the greenhouse is already warming. Keep the crop out of heat stress through the afternoon without pouring away water.
Heat-stress time above 35 °C ≤ 15 min
Fog water ≤ 1.8 L/m²
Average VPD ≤ 2.2 kPa
Wet-leaf or very humid time ≤ 30 min
Level 2 · Cold clear night
Six in the evening, a cloudless sky and −4 °C expected before dawn. The day settings are still on: heating to 18 °C, the screen open and the vents cracked. Keep the crop above 10 °C all night on as little fuel as possible, and give it light again at sunrise.
Time below 10 °C ≤ 15 min
Heating energy ≤ 1.4 kWh/m²
Average photosynthesis after sunrise ≥ 12 %
Level 3 · Humid overcast day
A grey, damp day: 9 °C outside, the air outside almost saturated, and the greenhouse closed up since last night at 14 °C. The crop keeps transpiring and the humidity climbs toward grey-mould conditions. Keep humid hours low and the air at least 15.5 °C without burning through your heating budget — and do not shut out the little light there is.
Disease-risk hours ≤ 2 h
Heating energy ≤ 0.8 kWh/m²
Air never below 15.5 °C
Average photosynthesis ≥ 32 %
Basis — the model behind the numbers
Every relation the simulator uses, with its source. Constants marked as assumptions are illustrative calibrations.
Air temperature follows an energy balance: sun in, heat out through the cover and with ventilation air, heat used to evaporate water, plus the heating.
C·dT/dt = τ·I·(1 − 0.6·0.75·screen) − λ·(E_crop + E_fog) + Q_heat + (U·Ac/Af + ρc_p·Q_v)·(T_out − T) + G_soil·(T_soil − T)[1]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Heat loss through the cover is U × area × temperature difference; a closed screen lowers U, a clear night sky raises it.
U = 6.2 − (6.2 − 4.0)·screen W/m²K (single glass → with thermal blanket); ×(1 + 0.25·clear sky) at night[1]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Ventilation is leakage plus wind-driven flow through the open vents.
Q_v = (N·H/3600 + vent·C_w·max(1, u_wind))·(1 − 0.4·screen), N = 0.75 h⁻¹[1][4]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Saturation vapour pressure rises steeply with temperature; VPD is how far the air is from saturation.
Water vapour balance: transpiration and fog add moisture, ventilation and condensation on the cold glass remove it.
H·dχ/dt = E_crop + E_fog − Q_v·(χ − χ_out) − k_c·(Ac/Af)·(1 − 0.7·screen)·max(0, e_a − e_s(T_cover)), χ = e·M_w/(R·T)[6][2]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Transpiration has a radiation part and a part driven by dry air (VPD).
E_crop = A·(1 − e^(−k·LAI))·I_in/λ + B·LAI·VPD (A 0.45, k 0.64, LAI 3, B 0.02 kg/m²·h·kPa by day)[3]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Fog cools only as far as it evaporates: about 2.45 MJ per litre, more in dry air than in humid air.
E_fog = fog·0.4 kg/m²·h × min(1, VPD/0.8); each evaporated kg removes λ = 2.45 MJ of sensible heat; the rest wets leaves[1][2]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
CO₂ balance: dosing in, ventilation and crop uptake out.
H·dC/dt = dose − Q_v·(C − C_out) − P_net; dosing ≈ 5.5 g/m²·h holds ≈ 1000 ppm at 1 air change per hour[1]
Photosynthesis responds to light, CO₂, temperature and VPD; the CO₂ response follows a published rule of thumb for greenhouse fruit crops.
P = P_ref·(1 − e^(−I_in/300))·exp(150/400 − 150/C)·f(T: 1 at 17–27 °C)·f(VPD) (from the CO₂ rule dP/P = 1.5 %·(1000/C)² per 100 ppm)[5][7]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Crop stress counters: hours too hot, too cold, or humid enough for grey mould.
heat hours: T > 35 °C · cold hours: T < 10 °C · disease-risk hours: RH ≥ 90 % or wet leaves · GDD = Σ max(0, T − 10)·Δt[1][7][8][10]
Outside weather: daily temperature curve, constant dew point, sunshine reduced by cloud, random cloud and wind fluctuations.
T_out = T̄ + A·cos(2π(h − 15)/24); e_out = e_s(T_dew); I = I_clear·(1 − 0.75·N^3.4); cloud N and wind fluctuate (normal, seeded)[9][2]Assumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Other constants used by the model.
height 4.5 m · cover/floor 1.2 · τ 0.8 · heat capacity 30 kJ/m²K · heating ≤ 180 W/m² · screen blocks 60 % of light (75 % of that as heat) and 40 % of air exchange, and hides 70 % of the cold glass (condensation) · vents 0.016 m³/s·m² per m/s wind · soil 2 W/m²K · fog ≤ 0.4 L/m²·h · CO₂ ≤ 8 g/m²·h · P_ref 4 g CO₂/m²·h · condensation 1.9·10⁻⁸ kg/m²·s·PaAssumption: greenhouse size, heat capacity, vent, screen, fog and crop coefficients are illustrative values for a modern glasshouse; the physics is a single well-mixed air volume. Real sites calibrate each constant.
Randomness: a seeded mulberry32 generator; distributions used — uniform, exponential (inverse CDF), normal (Box–Muller), Poisson (Knuth). The seed is shown and shareable.