The vapor-compression refrigeration cycle is analogous to the Rankine cycle but runs in the opposite direction (counter-clockwise on the TS diagram vs. clockwise for the Rankine power cycle). This example uses R-134a as the working fluid, but that can be readily changed to another refrigerant.

Use of the CoolProp Excel add-in makes testing other fluids and multiple parameters a snap.