Entropy and heat transfer