2021-10-18 11:37:20 -04:00
|
|
|
"""
|
|
|
|
EnergySystem module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
2021-10-21 09:50:02 -04:00
|
|
|
Contributor Peter Yefi peteryefi@gmail.com
|
2021-10-18 11:37:20 -04:00
|
|
|
"""
|
|
|
|
|
|
|
|
from city_model_structure.city_object import CityObject
|
2021-12-15 04:19:10 -05:00
|
|
|
from city_model_structure.energy_systems.air_source_hp import AirSourceHP
|
|
|
|
from city_model_structure.energy_systems.water_to_water_hp import WaterToWaterHP
|
2021-10-18 11:37:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
class EnergySystem(CityObject):
|
2021-10-20 09:00:59 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
EnergySystem(CityObject) class
|
|
|
|
"""
|
|
|
|
|
2021-10-20 09:00:59 -04:00
|
|
|
def __init__(self, name, lod, surfaces, city_lower_corner):
|
|
|
|
super().__init__(name, lod, surfaces, city_lower_corner)
|
2021-12-15 04:19:10 -05:00
|
|
|
self._air_source_hp = None
|
|
|
|
self._water_to_water_hp = None
|
2021-10-21 09:50:02 -04:00
|
|
|
self._type = 'energy_system'
|
2021-10-18 11:37:20 -04:00
|
|
|
|
2021-10-20 09:00:59 -04:00
|
|
|
@property
|
2021-12-15 04:19:10 -05:00
|
|
|
def air_source_hp(self) -> AirSourceHP:
|
2021-10-21 09:50:02 -04:00
|
|
|
"""
|
|
|
|
Heat pump energy system
|
|
|
|
:return:
|
|
|
|
"""
|
2021-12-15 04:19:10 -05:00
|
|
|
return self._air_source_hp
|
2021-10-21 09:50:02 -04:00
|
|
|
|
2021-12-15 04:19:10 -05:00
|
|
|
@air_source_hp.setter
|
|
|
|
def air_source_hp(self, value):
|
2021-10-21 09:50:02 -04:00
|
|
|
"""
|
2021-12-15 04:19:10 -05:00
|
|
|
Set heat pump for energy system
|
|
|
|
:param value: AirSourceHP
|
2021-10-21 09:50:02 -04:00
|
|
|
"""
|
2021-12-15 04:19:10 -05:00
|
|
|
if self._air_source_hp is None:
|
|
|
|
self._air_source_hp = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def water_to_water_hp(self) -> WaterToWaterHP:
|
|
|
|
"""
|
|
|
|
Water to water heat pump energy system
|
|
|
|
:return:
|
|
|
|
"""
|
|
|
|
return self._water_to_water_hp
|
|
|
|
|
|
|
|
@water_to_water_hp.setter
|
|
|
|
def water_to_water_hp(self, value):
|
|
|
|
"""
|
|
|
|
Set water to water heat pump for energy system
|
|
|
|
:param value: WaterToWaterHP
|
|
|
|
"""
|
|
|
|
if self._water_to_water_hp is None:
|
|
|
|
self._water_to_water_hp = value
|
2021-10-21 09:50:02 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def type(self) -> str:
|
|
|
|
"""
|
|
|
|
Type of city object
|
|
|
|
:return: str
|
|
|
|
"""
|
|
|
|
return self._type
|