Tests to incorporate HVAC systems to EP workflow
This commit is contained in:
parent
428b31354e
commit
082c44b38d
2473
input_files/summerschool_all_buildings.geojson
Normal file
2473
input_files/summerschool_all_buildings.geojson
Normal file
File diff suppressed because it is too large
Load Diff
12
main.py
12
main.py
|
@ -12,7 +12,7 @@ from sra_engine import SraEngine
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
file_path = (Path(__file__).parent / 'input_files' / '228730.geojson')
|
file_path = (Path(__file__).parent / 'input_files' / 'summerschool_all_buildings.geojson')
|
||||||
construction_format = 'nrcan'
|
construction_format = 'nrcan'
|
||||||
usage_format = 'nrcan'
|
usage_format = 'nrcan'
|
||||||
energy_systems_format = 'montreal_custom'
|
energy_systems_format = 'montreal_custom'
|
||||||
|
@ -23,7 +23,7 @@ try:
|
||||||
print('[simulation start]')
|
print('[simulation start]')
|
||||||
city = GeometryFactory('geojson',
|
city = GeometryFactory('geojson',
|
||||||
path=file_path,
|
path=file_path,
|
||||||
height_field='heightmax',
|
height_field='citygml_me',
|
||||||
year_of_construction_field='ANNEE_CONS',
|
year_of_construction_field='ANNEE_CONS',
|
||||||
function_field='CODE_UTILI',
|
function_field='CODE_UTILI',
|
||||||
function_to_hub=Dictionaries().montreal_function_to_hub_function).city
|
function_to_hub=Dictionaries().montreal_function_to_hub_function).city
|
||||||
|
@ -33,8 +33,14 @@ try:
|
||||||
print('enrich constructions... done')
|
print('enrich constructions... done')
|
||||||
UsageFactory(usage_format, city).enrich()
|
UsageFactory(usage_format, city).enrich()
|
||||||
print('enrich usage... done')
|
print('enrich usage... done')
|
||||||
|
i = 1
|
||||||
|
x = len(city.buildings)
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
building.energy_systems_archetype_name = 'system 3 and 4 electricity'
|
if i < x:
|
||||||
|
building.energy_systems_archetype_name = 'system 1 gas'
|
||||||
|
else:
|
||||||
|
building.energy_systems_archetype_name = 'system 6 gas'
|
||||||
|
i = i + 1
|
||||||
EnergySystemsFactory(energy_systems_format, city).enrich()
|
EnergySystemsFactory(energy_systems_format, city).enrich()
|
||||||
print('enrich systems... done')
|
print('enrich systems... done')
|
||||||
|
|
||||||
|
|
0
test_problems
Normal file
0
test_problems
Normal file
Loading…
Reference in New Issue
Block a user