Flow of heat in a system