refrigeration cycle explained
Turn a heat engine around and it becomes a refrigerator. Instead of letting heat fall from the hot side to the cold side and taking work, you spend work to push heat from the cold side up to the hot side. That is the only way heat climbs the hill backward, and every fridge, freezer, and heat pump moves this way.
Heat on the cold side climbs to the hot side only if you spend work, and the hot side receives QH = QC + W. Heat would rather run from hot to cold on its own, so pushing it backward needs a pump, and the work you spend turns entirely into heat and adds onto the hot side.
In a real fridge the refrigerant visits four devices. It boils in the evaporator and soaks up heat on the cold side, the compressor raises the pressure, it condenses and gives heat off on the hot side, and the expansion valve drops the pressure. This is a Rankine cycle turned around, and the refrigerant boils at so low a temperature that it evaporates even in a cold box and soaks up heat, the same idea as sweat cooling the skin.
A refrigerator is judged not by efficiency but by a coefficient COP = QCW, the heat moved per unit of work, and it is usually greater than 1. That is because it moves more heat than the work it spends. Passing 1 does not create energy: the machine does not invent heat, it only scoops heat that was already there and carries it out of the cold place, so the heat moved can exceed the work spent.
The same machine is a refrigerator when you want the cold side cold, and then the useful piece is QC, and it is a heat pump when you want the hot side warm, and then the useful piece is QH. Because QH = QC + W, the heat-pump coefficient is always 1 above the refrigerator coefficient. Heating with a heat pump therefore beats an electric heater, which turns one parcel of electricity into one parcel of heat, while the pump scoops free heat from outside air or the ground and delivers several times that.
Refrigeration is an engine turned around, moving heat uphill always costs work, it is judged by a coefficient, and the best COP = TC(TH−TC) grows as the temperature gap shrinks. That closes the loop, from one state, through the laws, to the cycles that turn the world. The force of that gap shows up at home too: a heat pump works hardest on the coldest day, when the difference between inside and outside is widest.