A Python-based code for modeling the thermodynamics of the vapor compression cycle applied to residential heat pumps

Authors

  • Rebecca Allen
  • Eirik Svortevik
  • Henrik Bergersen

DOI:

https://doi.org/10.3384/ecp200022

Keywords:

Heat pump modeling, Vapor compression cycle, Python, Open-source, User-friendly, Extendable

Abstract

Heat pumps are an attractive heating system in residential buildings. They operate based on the vapor compression cycle used in refrigeration systems. Design questions surrounding heat pumps can be investigated and answered using modelling tools that incorporate the necessary thermodynamics, fluid mechanics, and machinery component efficiency. Several modelling tools are available, however there is a need for more open-source, script-based programs that are competitive to those already available. This work presents a Python-based code for modeling the thermodynamics of the vapor compression cycle (VCC) in typical heat pumps. The main contribution of this work is an openly available online code, complete with a few examples to show its functionality, that provides the basic thermodynamic model of a heat pump for researchers or development engineers to use, modify, and extend. Its current features include choice of refrigerant, heat exchanger size and characteristics, compressor, and other design parameters such as heating load, and fluid temperatures in and out of the heat exchangers. Simulation outputs include the P-h and T-s diagrams and coefficient of performance (COP). The code is flexible and suggestions for future code development are given.

Downloads

Published

2023-10-19