Refrigeration: Running a Cycle Backward to Pump Heat Uphill
Run a heat engine backward and it becomes a refrigerator: instead of letting heat fall from hot to cold and harvesting work, you spend work to push heat from cold to hot. That is the only way heat ever climbs uphill, and it is how every fridge, freezer, and heat pump works.
Drag the work W. Heat QC only climbs from the cold side to the hot side because you spend work, and the hot side receives QH = QC + W. Heat naturally runs from hot to cold on its own, so forcing it back uphill needs a pump, and the work W you spend turns entirely into heat and adds to the hot side.
In a real fridge the refrigerant loops through four parts: it boils in the evaporator (absorbing QC), is squeezed by the compressor (work in), condenses in the condenser (releasing QH), and drops pressure through the expansion valve. Drag the phase -- it is a Rankine cycle reversed. The refrigerant is a fluid with a very low boiling point, so it evaporates and soaks up heat even inside a cold fridge, the very same trick by which evaporating sweat cools your skin.
A fridge is rated by its coefficient of performance, COP = QCW -- the heat moved per unit work -- not an efficiency. It is usually above 1, because you move more heat than the work you pay. A COP above 1 creates no energy, because the machine does not conjure heat but only ferries existing heat out of the cold space, so the heat delivered can exceed the work paid without breaking the first law. Drag W.
The same machine is a fridge if you want the cold side cold (useful output QC) and a heat pump if you want the hot side warm (useful output QH). Since QH = QC + W, the heat-pump COP is always one more. This is why heating with a heat pump beats an electric heater, which turns one unit of electricity into one unit of heat, while a heat pump draws free heat from the outside air or ground and delivers three or four. Toggle them.
Three takeaways: it is an engine run backward, work is required to move heat uphill (the Clausius statement), it is rated by COP, and the best COP = TC(TH−TC) grows as the temperature gap shrinks. That closes the loop -- from a single state, to the laws, to the cycles that run our world. You can feel that temperature gap at home, since a heat pump labors hardest on the coldest days, when the difference between inside and outside is widest.