work started on generation_system.py and generic_generation_system.py

This commit is contained in:
Saeed Ranjbar 2023-09-18 15:44:52 -04:00
parent 73dffdc367
commit ee875859e8
3 changed files with 53 additions and 2 deletions

View File

@ -60,9 +60,9 @@ class EnergySystem:
self._demand_types = value self._demand_types = value
@property @property
def generation_system(self) -> GenerationSystem: def generation_system(self) -> List[GenerationSystem]:
""" """
Get generation system Get generation systems
:return: GenerationSystem :return: GenerationSystem
""" """
return self._generation_system return self._generation_system

View File

@ -22,6 +22,13 @@ class GenerationSystem:
self._storage_capacity = None self._storage_capacity = None
self._generic_generation_system = None self._generic_generation_system = None
self._auxiliary_equipment = None self._auxiliary_equipment = None
self._model_name = None
self._manufacturer = None
self._maximum_heat_output = None
self._minimum_heat_output = None
self._maximum_cooling_output = None
self._minimum_cooling_output = None
@property @property
def generic_generation_system(self) -> GenericGenerationSystem: def generic_generation_system(self) -> GenericGenerationSystem:

View File

@ -24,6 +24,18 @@ class GenericGenerationSystem:
self._source_mass_flow = None self._source_mass_flow = None
self._storage = None self._storage = None
self._auxiliary_equipment = None self._auxiliary_equipment = None
self._source_medium = None
self._supply_medium = None
self._maximum_heat_supply_temperature = None
self._minimum_heat_supply_temperature = None
self._maximum_cooling_supply_temperature = None
self._minimum_cooling_supply_temperature = None
self._heat_output_curve = None
self._heat_fuel_consumption_curve = None
self._heat_efficiency_curve = None
self._cooling_output_curve = None
self._cooling_fuel_consumption_curve = None
self._cooling_efficiency_curve = None
@property @property
def type(self): def type(self):
@ -184,3 +196,35 @@ class GenericGenerationSystem:
:return: GenerationSystem :return: GenerationSystem
""" """
self._auxiliary_equipment = value self._auxiliary_equipment = value
@property
def source_medium(self):
"""
Get the source medium [air, water, ground, district_heating, grid, on_site_electricity]
:return: string
"""
return self._source_medium
@source_medium.setter
def source_medium(self, value):
"""
Set the source medium [air, water, ground, district_heating, grid, on_site_electricity]
:param value: string
"""
self._source_medium = value
@property
def supply_medium(self):
"""
Get the supply medium from ['air', 'water']
:return: string
"""
return self._supply_medium
@supply_medium.setter
def supply_medium(self, value):
"""
Set the supply medium from ['air', 'water']
:param value: string
"""
self._supply_medium = value