Thermal energy flows in which direction