Finished defining the data structure heat pump
This commit is contained in:
parent
143b397ef3
commit
1951861061
|
@ -2,15 +2,17 @@
|
||||||
heat_pump module defines a heat pump
|
heat_pump module defines a heat pump
|
||||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||||||
|
Contributor Peter Yefi peteryefi@gmail.com
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import Union
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
class HeatPump:
|
class HeatPump:
|
||||||
"""
|
"""
|
||||||
HeatPump class
|
HeatPump class
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._model = None
|
self._model = None
|
||||||
self._cooling_pf = None
|
self._cooling_pf = None
|
||||||
|
@ -21,15 +23,24 @@ class HeatPump:
|
||||||
self._heating_qw = None
|
self._heating_qw = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def model(self):
|
def model(self) -> str:
|
||||||
"""
|
"""
|
||||||
Get model name
|
Get model name
|
||||||
:return: str
|
:return: str
|
||||||
"""
|
"""
|
||||||
return self._model
|
return self._model
|
||||||
|
|
||||||
|
@model.setter
|
||||||
|
def model(self, value):
|
||||||
|
"""
|
||||||
|
Set model (name, indicated in capacity)
|
||||||
|
:param value: str
|
||||||
|
"""
|
||||||
|
if self._model is None:
|
||||||
|
self._model = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def cooling_pf(self):
|
def cooling_pf(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get cooling capacity in kW
|
Get cooling capacity in kW
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
|
@ -44,3 +55,93 @@ class HeatPump:
|
||||||
"""
|
"""
|
||||||
if self._cooling_pf is None:
|
if self._cooling_pf is None:
|
||||||
self._cooling_pf = value
|
self._cooling_pf = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cooling_pa(self) -> List[float]:
|
||||||
|
"""
|
||||||
|
Get cooling compressor power input in kW
|
||||||
|
:return: [[float]]
|
||||||
|
"""
|
||||||
|
return self._cooling_pa
|
||||||
|
|
||||||
|
@cooling_pa.setter
|
||||||
|
def cooling_pa(self, value):
|
||||||
|
"""
|
||||||
|
Set the cooling compressor in kW
|
||||||
|
:param value: [[float]]
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self._cooling_pa is None:
|
||||||
|
self._cooling_pa = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cooling_qw(self) -> List[float]:
|
||||||
|
"""
|
||||||
|
Get Water flow in m3/h
|
||||||
|
:return: [[float]]
|
||||||
|
"""
|
||||||
|
return self._cooling_qw
|
||||||
|
|
||||||
|
@cooling_qw.setter
|
||||||
|
def cooling_qw(self, value):
|
||||||
|
"""
|
||||||
|
Set water flow in m3/h
|
||||||
|
:param value: [[float]]
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self._cooling_qw is None:
|
||||||
|
self._cooling_qw = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def heating_pf(self) -> List[float]:
|
||||||
|
"""
|
||||||
|
Get heating capacity kW
|
||||||
|
:return: [[float]]
|
||||||
|
"""
|
||||||
|
return self._heating_pf
|
||||||
|
|
||||||
|
@heating_pf.setter
|
||||||
|
def heating_pf(self, value):
|
||||||
|
"""
|
||||||
|
Set the heating capacity in kW
|
||||||
|
:param value: [[float]]
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self._heating_pf is None:
|
||||||
|
self._heating_pf = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def heating_pa(self) -> List[float]:
|
||||||
|
"""
|
||||||
|
Get heating compressor power kW
|
||||||
|
:return: [[float]]
|
||||||
|
"""
|
||||||
|
return self._heating_pa
|
||||||
|
|
||||||
|
@heating_pa.setter
|
||||||
|
def heating_pa(self, value):
|
||||||
|
"""
|
||||||
|
Set the heating compressor power in kW
|
||||||
|
:param value: [[float]]
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self._heating_pa is None:
|
||||||
|
self._heating_pa = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def heating_qw(self) -> List[float]:
|
||||||
|
"""
|
||||||
|
Get heating water flow in m3/h
|
||||||
|
:return: [[float]]
|
||||||
|
"""
|
||||||
|
return self._heating_qw
|
||||||
|
|
||||||
|
@heating_qw.setter
|
||||||
|
def heating_qw(self, value):
|
||||||
|
"""
|
||||||
|
Set the heating water flow in m3/h
|
||||||
|
:param value: [[float]]
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self._heating_qw is None:
|
||||||
|
self._heating_qw = value
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
XlsxHeatPumpParameters import the heat pump information
|
XlsxHeatPumpParameters import the heat pump information
|
||||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
Copyright © 2020 Project Author
|
Copyright © 2020 Project Author Peter Yefi peteryefi@gmail.com
|
||||||
Contributor Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
Contributor Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user