A heat engine receives heat from a high temperature source, converts some of the heat into work, and rejects the rest to a low temperature sink. A heat pump and refrigerator are similar but operate in reverse, using work to transfer heat from a low temperature to a high temperature. The performance of heat engines is measured by thermal efficiency, while heat pumps and refrigerators are measured by coefficient of performance (COP), the ratio of desired heat transfer to work input.