Heat transfer and equilibrium