Home▸Energy & Thermodynamics▸Heat Pump Cycle (2D): Vapour-Compression Refrigerant Loop

Heat Pump Cycle (2D): Vapour-Compression Refrigerant Loop

2D vapour-compression heat pump: compressor, condenser, expansion valve and evaporator animated as one refrigerant loop, with live COP, heat delivered and electrical input computed from the indoor/outdoor temperature gap.

Energy & Thermodynamics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-heat-pump-cycle ↗ Open standalone

This 2D companion animates the same vapour-compression cycle that powers real heat pumps and refrigerators: refrigerant particles travel around a compressor → condenser → expansion valve → evaporator loop, changing colour with their thermodynamic state, while a Heating/Cooling switch reverses which coil is indoors. A live readout computes COP, heat delivered and electrical input directly from the indoor/outdoor temperature gap and compressor settings you control with the sliders.

⚙ Under the hood

2D vapour-compression heat pump with a Carnot-limited COP scaled by a compressor isentropic-efficiency factor, computed live from indoor/outdoor temperature, compressor speed and efficiency sliders.

heat pumpvapour compression cycleCOPrefrigerationthermodynamics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What is COP and why does it change with outdoor temperature?

Coefficient of Performance is heat delivered divided by electrical work consumed. It is capped by the Carnot limit Th/(Th−Tc), where Th and Tc are the condenser and evaporator absolute temperatures — so COP falls as the outdoor temperature drops and the indoor/outdoor gap widens, exactly as the readout shows when you slide the outdoor-temperature control down.

What happens when you switch to Cooling mode?

The cycle direction is unchanged, but which coil sits indoors flips: the evaporator moves indoors and absorbs heat from the room (the useful cooling effect), while the condenser rejects that heat plus the compressor's work to the outside air — the same hardware running as an air conditioner instead of a heater.

What did you find?

Add reproduction steps (optional)