Lite / Engineering Complex Systems / Week 12
A greenhouse is a first-order system
Open the greenhouse door on a cold morning and the air cools in minutes. Shut it and the heater takes far longer to win it back. Why the asymmetry?
Why should I care?
Thermal systems are the classic first-order plant, and they are everywhere: homes, ovens, battery packs, data centres. Model one carefully and you have a template for all of them.
- Derive a first-order thermal model C·dT/dt = P − G·(T − T_out) and identify its τ and K.
- Predict the greenhouse's step response to a heater change and check it in simulation.
- Explain how changing insulation or air volume changes τ and K.
Predict
You double the greenhouse's insulation (halve G). What happens to the time constant τ = C/G?
- Halves
- Doubles
- Stays the same
- Falls to zero
Guess first, then reveal
τ = C/G doubles. The greenhouse holds heat longer, so it also takes longer to change temperature. K = 1/G doubles too: the same heater gives twice the temperature rise.
Discover
Open the Smart Greenhouse at Level 2. Switch the heater on at a fixed power with no control and log the air temperature. Mark the 63 % point and estimate τ. Then predict, before running it, what happens when you halve the heater power.
What the interactive shows (text version)
With the heater switched on at fixed power, the greenhouse air temperature rises steeply at first and then levels off at a few degrees above outside, following a first-order curve. Halving the heater power halves the final rise but leaves the time to reach 63 % unchanged.
Understand
An energy balance is a first-order model
One energy store (the air and contents), one way in (the heater), one way out (the walls): C·dT/dt = P − G·(T − T_out). Rearranged, it is exactly τ·dy/dt + y = K·u with y = T − T_out, τ = C/G and K = 1/G.
Why cooling can be faster than heating
Opening the door makes G much larger, so τ = C/G becomes much smaller and the air rushes towards T_out. Shut the door and G drops back; now the heater fights the slow τ. The model is the same equation with a different parameter, which is why the asymmetry isn't mysterious.
The model's honest limits
One lumped temperature assumes the air is well mixed. Real greenhouses have warm ceilings and cold floors, soil that stores heat with its own slow τ, and sunshine that varies. A first-order model is a good start for control design; it isn't a full thermal simulation.
Explain it another way
Intuitive
The greenhouse is a leaky bucket of heat. The heater pours in; the walls leak out faster the hotter it is inside. Bigger bucket or smaller leak: slower to change.
Technical
Lumped-capacitance thermal model, valid when internal temperature differences are small compared with the wall drop. τ = C/G, steady-state rise ΔT = P/G.
Mathematical
With C = 600 kJ/K and G = 400 W/K: τ = 600,000/400 = 1,500 s = 25 min. A 2 kW heater gives ΔT∞ = 2,000/400 = 5 K.
Applied
Building engineers quote a U-value (W/m²K) for walls; multiply by area to get G. Thermal mass (C) is why stone houses stay cool through a hot afternoon.
Derivation: From an energy balance to τ and K
Energy stored in the air and plants: C·T, with C the heat capacity (J/K). Its rate of change = heat in − heat out.
Heat in: heater power P. Heat out through the walls: G·(T − T_out), with G the loss coefficient (W/K).
So C·dT/dt = P − G·(T − T_out). Divide by G: (C/G)·dT/dt + (T − T_out) = P/G.
Compare with τ·dy/dt + y = K·u, where y = T − T_out and u = P: τ = C/G and K = 1/G.
Better insulation (smaller G) raises both τ and K: slower to respond, but each watt buys more temperature.
Worked example 1
A greenhouse settles 8 °C above outside with its heater on, and τ = 15 min. Starting at outside temperature, how far above outside is it after 30 min?
y(30) = 8(1 − e^(−30/15)) = 8(1 − 0.135) = 6.92 °C above outside.
Common mix-ups
Better insulation makes a building heat up faster.
✓ It raises the final temperature for the same heater but also raises τ, so the approach is slower.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
In the Smart Greenhouse build, compare the step response with two different insulation or ventilation settings. Fit τ and K to both and check that the ratio of τ values matches the ratio you'd predict from τ = C/G.
Reflect
Your first-order model fits a greenhouse well for an hour but not overnight. What would you add?
Write your answer on paper or in your own notes. Lite never stores what you write.