How the models work · Wall heat model
5. Heat balance in each slice
For every slice, the rule is conservation of energy: the rate at which its stored heat changes equals the heat flowing in minus the heat flowing out. A slice's temperature rises when more heat arrives from one side than leaves on the other:
Ci × dTi/dt = Gi−1 (Ti−1 − Ti) + Gi (Ti+1 − Ti)
For the outermost slice, the outside neighbour is the sol-air temperature. For the innermost, it is the room air. This is the discrete form of the one-dimensional heat equation. Because it is written for every slice at once, it makes a set of linked equations, one per slice.