hub/city_model_structure/energy_systems/pv_system.py

123 lines
3.0 KiB
Python
Raw Normal View History

"""
pv_system defines a pv system including all components: PV panels, transformer...
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
class PvSystem:
"""
PvSystem class
"""
def __init__(self):
self._modules_mean_seasonal_efficiency = None
self._total_area = None
self._module_area = None
self._number_of_modules = None
self._overall_system_performance_ratio = None
self._electricity_generation = None
@property
2021-09-14 13:46:48 -04:00
def modules_mean_seasonal_efficiency(self) -> Union[None, float]:
"""
Get mean modules efficiency (-)
2021-09-14 13:46:48 -04:00
:return: None or float
"""
return self._modules_mean_seasonal_efficiency
@modules_mean_seasonal_efficiency.setter
def modules_mean_seasonal_efficiency(self, value):
"""
Set mean modules efficiency (-)
:param value: float
"""
2021-09-14 13:46:48 -04:00
if value is not None:
self._modules_mean_seasonal_efficiency = float(value)
@property
2021-09-14 13:46:48 -04:00
def total_area(self) -> Union[None, float]:
"""
Get total modules area in square meters
2021-09-14 13:46:48 -04:00
:return: None or float
"""
return self._total_area
@total_area.setter
def total_area(self, value):
"""
Set total modules area in square meters
:param value: float
"""
2021-09-14 13:46:48 -04:00
if value is not None:
self._total_area = float(value)
@property
2021-09-14 13:46:48 -04:00
def module_area(self) -> Union[None, float]:
"""
Get module area in square meters
2021-09-14 13:46:48 -04:00
:return: None or float
"""
return self._module_area
@module_area.setter
def module_area(self, value):
"""
Set module area in square meters
:param value: float
"""
2021-09-14 13:46:48 -04:00
if value is not None:
self._module_area = float(value)
@property
2021-09-14 13:46:48 -04:00
def number_of_modules(self) -> Union[None, int]:
"""
Get number of modules
2021-09-14 13:46:48 -04:00
:return: None or int
"""
return self._number_of_modules
@number_of_modules.setter
def number_of_modules(self, value):
"""
Set number of modules
:param value: int
"""
2021-09-14 13:46:48 -04:00
if value is not None:
self._number_of_modules = int(value)
@property
2021-09-14 13:46:48 -04:00
def overall_system_performance_ratio(self) -> Union[None, float]:
"""
Get overall system performance ratio (-)
2021-09-14 13:46:48 -04:00
:return: None or float
"""
return self._overall_system_performance_ratio
@overall_system_performance_ratio.setter
def overall_system_performance_ratio(self, value):
"""
Set overall system performance ratio (-)
:param value: float
"""
2021-09-14 13:46:48 -04:00
if value is not None:
self._overall_system_performance_ratio = float(value)
@property
2021-09-14 13:46:48 -04:00
def electricity_generation(self) -> Union[None, float]:
"""
Get electricity generation in J
2021-09-14 13:46:48 -04:00
:return: None or float
"""
return self._electricity_generation
@electricity_generation.setter
def electricity_generation(self, value):
"""
Set electricity generation in J
:param value: float
"""
2021-09-14 13:46:48 -04:00
if value is not None:
self._electricity_generation = float(value)