2021-04-15 17:26:00 -04:00
|
|
|
"""
|
|
|
|
heat_pump module defines a heat pump
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
|
|
"""
|
|
|
|
|
2021-09-14 13:46:48 -04:00
|
|
|
from typing import Union
|
|
|
|
|
2021-04-15 17:26:00 -04:00
|
|
|
|
|
|
|
class HeatPump:
|
|
|
|
"""
|
|
|
|
HeatPump class
|
|
|
|
"""
|
|
|
|
def __init__(self):
|
2021-10-18 11:37:20 -04:00
|
|
|
self._model = None
|
|
|
|
self._cooling_pf = None
|
|
|
|
self._cooling_pa = None
|
|
|
|
self._cooling_qw = None
|
|
|
|
self._heating_pf = None
|
|
|
|
self._heating_pa = None
|
|
|
|
self._heating_qw = None
|
2021-04-15 17:26:00 -04:00
|
|
|
|
|
|
|
@property
|
2021-10-18 11:37:20 -04:00
|
|
|
def model(self):
|
2021-04-15 17:26:00 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
Get model name
|
|
|
|
:return: str
|
2021-04-15 17:26:00 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
return self._model
|
2021-04-15 17:26:00 -04:00
|
|
|
|
|
|
|
@property
|
2021-10-18 11:37:20 -04:00
|
|
|
def cooling_pf(self):
|
2021-04-15 17:26:00 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
Get cooling capacity in kW
|
|
|
|
:return: [[float]]
|
2021-04-15 17:26:00 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
return self._cooling_pf
|
2021-04-15 17:26:00 -04:00
|
|
|
|
2021-10-18 11:37:20 -04:00
|
|
|
@cooling_pf.setter
|
|
|
|
def cooling_pf(self, value):
|
2021-04-15 17:26:00 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
Set cooling capacity in kW
|
|
|
|
:param value: [[float]]
|
2021-04-15 17:26:00 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
if self._cooling_pf is None:
|
|
|
|
self._cooling_pf = value
|