pv reduction factor to pv area

This commit is contained in:
Pilar Monsalvete 2023-07-31 14:51:23 -04:00
parent bc377bc1fb
commit aeedbd370c

View File

@ -20,7 +20,7 @@ class Building:
self._wall_area = building_info.wall_area self._wall_area = building_info.wall_area
self._windows_area = building_info.windows_area self._windows_area = building_info.windows_area
self._roof_area = building_info.roof_area self._roof_area = building_info.roof_area
self._solar_collectors_area_reduction_factor = building_info.total_pv_area self._total_pv_area = building_info.total_pv_area
self._heating_consumption = building_info.heating_consumption self._heating_consumption = building_info.heating_consumption
self._cooling_consumption = building_info.cooling_consumption self._cooling_consumption = building_info.cooling_consumption
self._domestic_hot_water_consumption = building_info.domestic_hot_water_consumption self._domestic_hot_water_consumption = building_info.domestic_hot_water_consumption
@ -62,7 +62,7 @@ class Building:
polygon.area = self._roof_area polygon.area = self._roof_area
roof = Roof() roof = Roof()
roof.solid_polygon = polygon roof.solid_polygon = polygon
roof.solar_collectors_area_reduction_factor = self._solar_collectors_area_reduction_factor roof.solar_collectors_area_reduction_factor = self._total_pv_area / self._roof_area
return [roof] return [roof]
@property @property