Physics
Heat pump: move heat
Move heat from a cold reservoir into a warm one using electrical work.

Try this
Increase the temperature lift and watch the coefficient of performance fall. Stop the compressor and compare the energy ledgers.
The model and its limits
Finite heat stores and a fraction of the Carnot heating COP, with an operating temperature interlock. The refrigerant path is explanatory; no real refrigerant equation of state is solved.
Equations used in the module
Equations Q_h = Q_c + W COP_h = Q_h / W COP_Carnot = T_h / (T_h - T_c)


