working project with all results

This commit is contained in:
Pilar Monsalvete 2023-05-29 15:10:15 -04:00
parent f9f31ac154
commit 8dd6d4c235
3 changed files with 7 additions and 6 deletions

View File

@ -43,10 +43,11 @@ class EnergySystemsSizing:
_building_generation_system = GenerationSystem()
_building_generation_system.generic_generation_system = \
copy.deepcopy(_generic_building_energy_system.generation_system)
if cte.HEATING in _building_energy_equipment.demand_types:
_building_generation_system.heat_power = building.heating_peak_load[cte.YEAR]['heating peak loads'][0]
_building_generation_system.heat_power = building.heating_peak_load[cte.YEAR][cte.HEATING_PEAK_LOAD][0]
if cte.COOLING in _building_energy_equipment.demand_types:
_building_generation_system.cooling_power = building.cooling_peak_load[cte.YEAR]['cooling peak loads'][0]
_building_generation_system.cooling_power = building.cooling_peak_load[cte.YEAR][cte.COOLING_PEAK_LOAD][0]
_building_energy_equipment.generation_system = _building_generation_system
_building_energy_equipment.distribution_system = _building_distribution_system
_building_energy_equipment.emission_system = _building_emission_system

View File

@ -13,7 +13,7 @@ from energy_systems_sizing import EnergySystemsSizing
try:
file_path = (Path(__file__).parent / 'input_files' / 'selected_building_1517.geojson')
file_path = (Path(__file__).parent / 'input_files' / 'selected_building.geojson')
climate_reference_city = 'Montreal'
weather_file = 'CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw'
weather_format = 'epw'

View File

@ -94,9 +94,9 @@ class Results:
monthly_electricity_peak = [0.9 * peak_lighting + 0.7 * peak_appliances]*12
conditioning_peak = []
for i, value in enumerate(building.heating_peak_load[cte.MONTH]['heating peak loads']):
if cooling * building.cooling_peak_load[cte.MONTH]['cooling peak loads'][i] > heating * value:
conditioning_peak.append(cooling * building.cooling_peak_load[cte.MONTH]['cooling peak loads'][i])
for i, value in enumerate(building.heating_peak_load[cte.MONTH][cte.HEATING_PEAK_LOAD]):
if cooling * building.cooling_peak_load[cte.MONTH][cte.COOLING_PEAK_LOAD][i] > heating * value:
conditioning_peak.append(cooling * building.cooling_peak_load[cte.MONTH][cte.COOLING_PEAK_LOAD][i])
else:
conditioning_peak.append(heating * value)
monthly_electricity_peak[i] += 0.8 * conditioning_peak[i]