Compare commits
2 Commits
39436e7e6d
...
2702a7ad45
Author | SHA1 | Date | |
---|---|---|---|
2702a7ad45 | |||
236a518973 |
@ -25,9 +25,9 @@ class HubFunctionToNrcanConstructionFunction:
|
|||||||
cte.MEDIUM_OFFICE: 'MediumOffice',
|
cte.MEDIUM_OFFICE: 'MediumOffice',
|
||||||
cte.LARGE_OFFICE: 'LargeOffice',
|
cte.LARGE_OFFICE: 'LargeOffice',
|
||||||
cte.COURTHOUSE: 'MediumOffice',
|
cte.COURTHOUSE: 'MediumOffice',
|
||||||
cte.FIRE_STATION: 'n/a',
|
cte.FIRE_STATION: 'Warehouse',
|
||||||
cte.PENITENTIARY: 'LargeHotel',
|
cte.PENITENTIARY: 'LargeHotel',
|
||||||
cte.POLICE_STATION: 'n/a',
|
cte.POLICE_STATION: 'Warehouse',
|
||||||
cte.POST_OFFICE: 'MediumOffice',
|
cte.POST_OFFICE: 'MediumOffice',
|
||||||
cte.LIBRARY: 'MediumOffice',
|
cte.LIBRARY: 'MediumOffice',
|
||||||
cte.EDUCATION: 'SecondarySchool',
|
cte.EDUCATION: 'SecondarySchool',
|
||||||
@ -54,27 +54,27 @@ class HubFunctionToNrcanConstructionFunction:
|
|||||||
cte.SMALL_HOTEL: 'SmallHotel',
|
cte.SMALL_HOTEL: 'SmallHotel',
|
||||||
cte.LARGE_HOTEL: 'LargeHotel',
|
cte.LARGE_HOTEL: 'LargeHotel',
|
||||||
cte.DORMITORY: 'SmallHotel',
|
cte.DORMITORY: 'SmallHotel',
|
||||||
cte.EVENT_LOCATION: 'n/a',
|
cte.EVENT_LOCATION: 'Warehouse',
|
||||||
cte.CONVENTION_CENTER: 'n/a',
|
cte.CONVENTION_CENTER: 'Warehouse',
|
||||||
cte.HALL: 'n/a',
|
cte.HALL: 'Warehouse',
|
||||||
cte.GREEN_HOUSE: 'n/a',
|
cte.GREEN_HOUSE: 'Warehouse',
|
||||||
cte.INDUSTRY: 'n/a',
|
cte.INDUSTRY: 'Warehouse',
|
||||||
cte.WORKSHOP: 'n/a',
|
cte.WORKSHOP: 'Warehouse',
|
||||||
cte.WAREHOUSE: 'Warehouse',
|
cte.WAREHOUSE: 'Warehouse',
|
||||||
cte.WAREHOUSE_REFRIGERATED: 'Warehouse',
|
cte.WAREHOUSE_REFRIGERATED: 'Warehouse',
|
||||||
cte.SPORTS_LOCATION: 'n/a',
|
cte.SPORTS_LOCATION: 'Warehouse',
|
||||||
cte.SPORTS_ARENA: 'n/a',
|
cte.SPORTS_ARENA: 'Warehouse',
|
||||||
cte.GYMNASIUM: 'n/a',
|
cte.GYMNASIUM: 'Warehouse',
|
||||||
cte.MOTION_PICTURE_THEATRE: 'n/a',
|
cte.MOTION_PICTURE_THEATRE: 'Warehouse',
|
||||||
cte.MUSEUM: 'n/a',
|
cte.MUSEUM: 'Warehouse',
|
||||||
cte.PERFORMING_ARTS_THEATRE: 'n/a',
|
cte.PERFORMING_ARTS_THEATRE: 'Warehouse',
|
||||||
cte.TRANSPORTATION: 'n/a',
|
cte.TRANSPORTATION: 'Warehouse',
|
||||||
cte.AUTOMOTIVE_FACILITY: 'n/a',
|
cte.AUTOMOTIVE_FACILITY: 'Warehouse',
|
||||||
cte.PARKING_GARAGE: 'n/a',
|
cte.PARKING_GARAGE: 'Warehouse',
|
||||||
cte.RELIGIOUS: 'n/a',
|
cte.RELIGIOUS: 'Warehouse',
|
||||||
cte.NON_HEATED: 'n/a',
|
cte.NON_HEATED: 'Warehouse',
|
||||||
cte.DATACENTER: 'n/a',
|
cte.DATACENTER: 'Warehouse',
|
||||||
cte.FARM: 'n/a'
|
cte.FARM: 'Warehouse'
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -164,17 +164,16 @@ class PvSystemAssessment:
|
|||||||
total_hourly_pv_output = [rooftops_pv_output[i] + facades_pv_output[i] for i in range(len(electricity_demand))]
|
total_hourly_pv_output = [rooftops_pv_output[i] + facades_pv_output[i] for i in range(len(electricity_demand))]
|
||||||
imported_electricity = []
|
imported_electricity = []
|
||||||
exported_electricity = []
|
exported_electricity = []
|
||||||
self.building.self_sufficiency['hour'] = []
|
self.building.self_sufficiency['percent'] = []
|
||||||
for i in range(len(electricity_demand)):
|
for i in range(len(electricity_demand)):
|
||||||
transfer = total_hourly_pv_output[i] - electricity_demand[i]
|
transfer = total_hourly_pv_output[i] - electricity_demand[i]
|
||||||
self.building.self_sufficiency['hour'].append(transfer)
|
|
||||||
if transfer > 0:
|
if transfer > 0:
|
||||||
exported_electricity.append(transfer)
|
exported_electricity.append(transfer)
|
||||||
imported_electricity.append(0)
|
imported_electricity.append(0)
|
||||||
else:
|
else:
|
||||||
exported_electricity.append(0)
|
exported_electricity.append(0)
|
||||||
imported_electricity.append(abs(transfer))
|
imported_electricity.append(abs(transfer))
|
||||||
self.building.self_sufficiency['year'] = sum(self.building.self_sufficiency['hour'])
|
self.building.self_sufficiency['percent'] = sum(total_hourly_pv_output) / sum(electricity_demand) * 100
|
||||||
|
|
||||||
results = {
|
results = {
|
||||||
'building_name': self.building.name,
|
'building_name': self.building.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user