mirror of
https://rs-loy-gitlab.concordia.ca/PMAU/DynamicBuildingSimulation.git
synced 2024-12-22 21:15:43 -05:00
Adding the Dompark gml file
This commit is contained in:
parent
4c23a112a1
commit
51f0cf0176
@ -4,7 +4,7 @@
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<content url="file://$MODULE_DIR$/../libs" />
|
||||
<content url="file://$MODULE_DIR$/../simplified_radiosity_algorith" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.7 (venv)" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.7 (DynamicBuildingSimulation)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -1,10 +0,0 @@
|
||||
<component name="ProjectDictionaryState">
|
||||
<dictionary name="Pilar">
|
||||
<words>
|
||||
<w>alkis</w>
|
||||
<w>ashrae</w>
|
||||
<w>incongruences</w>
|
||||
<w>nrcan</w>
|
||||
</words>
|
||||
</dictionary>
|
||||
</component>
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (venv)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (DynamicBuildingSimulation)" project-jdk-type="Python SDK" />
|
||||
</project>
|
41
main.py
41
main.py
@ -16,8 +16,8 @@ function_format = 'hft'
|
||||
construction_format = 'nrel'
|
||||
usage_format = 'comnet'
|
||||
schedules_format = 'comnet'
|
||||
climate_reference_city = 'Montreal'
|
||||
weather_file_name = 'CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw'
|
||||
climate_reference_city = 'Summerland'
|
||||
weather_file_name = 'CAN_BC_Summerland.717680_CWEC.epw'
|
||||
|
||||
example_path = Path(__file__).parent
|
||||
full_path_gml = (example_path / 'tests' / 'tests_data' / name_gml).resolve()
|
||||
@ -29,11 +29,11 @@ keep_insel_file = True
|
||||
keep_weather_file = True
|
||||
keep_ig_file = True
|
||||
|
||||
pickle_geometry = True
|
||||
pickle_weather = True
|
||||
pickle_construction = True
|
||||
pickle_usage = True
|
||||
pickle_schedules = True
|
||||
pickle_geometry = False
|
||||
pickle_weather = False
|
||||
pickle_construction = False
|
||||
pickle_usage = False
|
||||
pickle_schedules = False
|
||||
pickle_file = 'tests/tests_data/one_building_in_kelowna.pickle'
|
||||
|
||||
# Load geometry
|
||||
@ -77,7 +77,7 @@ else:
|
||||
if not pickle_construction or not pickle_usage or not pickle_schedules:
|
||||
|
||||
for building in city.buildings:
|
||||
building.function = 'large office'
|
||||
building.function = 'residential'
|
||||
building.year_of_construction = 2010
|
||||
|
||||
if function_format == 'hft':
|
||||
@ -92,31 +92,6 @@ else:
|
||||
city = City.load(pickle_file)
|
||||
|
||||
# Assign user defined parameters
|
||||
if not pickle_geometry:
|
||||
for building in city.buildings:
|
||||
print(len(building.storeys))
|
||||
print(building.storeys[0].thermal_boundaries)
|
||||
print(building.storeys[0].thermal_zone)
|
||||
print('number of thermal boundaries', len(building.thermal_boundaries))
|
||||
for i_tb, thermal_boundary in enumerate(building.thermal_boundaries):
|
||||
print(i_tb, thermal_boundary.type)
|
||||
for thermal_zone in thermal_boundary.thermal_zones:
|
||||
print(thermal_zone.id)
|
||||
quit()
|
||||
for thermal_zone in building.thermal_zones:
|
||||
print('volume', thermal_zone.volume)
|
||||
for thermal_boundary in thermal_zone.thermal_boundaries:
|
||||
print('type', thermal_boundary.surface.type)
|
||||
print('id', thermal_boundary.surface.id)
|
||||
print('area tb', thermal_boundary.area)
|
||||
for tz in thermal_boundary.thermal_zones:
|
||||
print('delimits', tz.id)
|
||||
print('window ratio', thermal_boundary.window_ratio)
|
||||
for thermal_opening in thermal_boundary.thermal_openings:
|
||||
print('area window', thermal_opening.area)
|
||||
print('frame', thermal_opening.frame_ratio)
|
||||
quit()
|
||||
|
||||
for building in city.buildings:
|
||||
building.heated = True
|
||||
building.cooled = True
|
||||
|
8651
tests/tests_data/Dompark.gml
Normal file
8651
tests/tests_data/Dompark.gml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user