EIGENROOMLAB WORKSHEET 28ANSWER KEY · FOR INSTRUCTORSThermal control
Match heat loss with PI
Goal
Find which part of a PI controller supplies the heat a room keeps losing, and compare PI with an ON-OFF relay.
Setup
Lab eigenroom.com/lab/thermal?lesson=thermal-pi · short link eigenroom.com/thermal-pi
Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:
- Heat capacity C
- 1000 J/K
- Heat loss H
- 5 W/K
- Ambient Ta
- 20 °C
- Initial temperature
- 20 °C
- Target temperature
- 60 °C
- Maximum heater
- 400 W
- Controller
- PI
- Kp
- 20 W/K
- Ki
- 0.1 W/(K·s)
- Conditional anti-windup
- On
- Event
- No event
- Duration
- 900 s
- APreset, exactly as the link opens it.
- BChange only: Ki → 0 W/(K·s).
- CChange only: Controller → ON-OFF.
- DChange only: Ki → 0.3 W/(K·s). (ext.)
1. Predict
At the target the temperature error is zero, but the room still removes heat. Which part of PI can supply the needed power?
P = Kp·error vanishes at zero error. With no bias and Ki = 0, this plant settles below 60 °C: about 52 °C for Kp = 20. The integral term can retain approximately 200 W when error becomes small. The PI actuator here accepts continuously modulated power; real relay hardware needs a suitable PWM or time-proportioning design, which is not modeled.
2. Observe
| Quantity | Where to read it | A | B | C | D ext. |
|---|---|---|---|---|---|
| Temperature at t = 900 s (°C) | Readout at 900 s | 59.90 °C | 52.00 °C | 59.49 °C | 60.00 °C |
| Applied power at t = 900 s (W) | Readout at 900 s | 200.00 W | 160.00 W | 0.00 W | 199.99 W |
| Integral term at t = 900 s (W) | Readout at 900 s | 197.99 W | 0.00 W | Not applicable | 200.00 W |
| Time within ±1 °C (%) | Results below the plots | 51.09% | 0.00% | 77.51% | 71.49% |
Values computed by Thermal engine 1.0.0 at the settings above. A replay readout can differ in the last digit if the slider is not exactly at the stated time; values read from a plot are approximate.
3. Explain
Run B settles below the target. Use the applied power at the end to explain the offset.
With P only, power is Kp × error. To supply the 160.00 W that heat loss takes at 52.00 °C, the error must stay at 8.00 °C with Kp = 20 W/K.
In run A, which term supplies the heater power at the end?
The integral term: 197.99 W of the 200.00 W applied. The P term contributes only Kp times the small remaining error.
The ON-OFF run spends more of its time within ±1 °C than PI. Is it the better controller?
Not on that number alone: 77.51% against 51.09% includes the warm-up, where the relay's full power helps. The relay switches full power 69 times, wearing a real relay, while PI needs a heater whose power can be varied continuously.
Extension (optional)
Raise Ki to 0.3 W/(K·s). Does the PI run reach the band sooner, and at what cost?
Sooner: time within ±1 °C becomes 71.49% against 51.09%. The cost is overshoot: the temperature now peaks at 61.46 °C, while run A never exceeds 59.90 °C. A larger Ki builds the needed power faster and carries the temperature past the target before the integral settles.