Any device, like a refrigerator or air conditioner, that removes heat from a cold region and transfers it to a hot region is basically a heat engine in reverse. Work W is done on the system, causing heat QL to be transferred from the lower-temperature region. Heat QH is transferred from the system at a higher temperature.
By conservation of energy:
W + |QL| = |QH|
A refrigerator or air conditioner consists of a fluid pumped through a closed system. Four steps are involved in the cycle.
A refrigerator is rated by its coefficient of performance K, the ratio of the heat removed from the fridge to the work required to remove it:
K = |
|
The P-V diagram shown above is over-simplified, showing two adiabatic processes and two isobaric (constant pressure) processes but neglecting the two changes of state that occur. This gives you the general flavor of the cycle, however.