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.
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.
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.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install
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.
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.