Validation in progress
This commit is contained in:
parent
68d2bef9ec
commit
841a6136bb
|
@ -80,7 +80,7 @@ class CercIdf(IdfBase):
|
||||||
self._export()
|
self._export()
|
||||||
|
|
||||||
def _create_geometry_rules(self):
|
def _create_geometry_rules(self):
|
||||||
file = self._files['zones']
|
file = self._files['constructions']
|
||||||
self._write_to_idf_format(file, idf_cte.GLOBAL_GEOMETRY_RULES)
|
self._write_to_idf_format(file, idf_cte.GLOBAL_GEOMETRY_RULES)
|
||||||
self._write_to_idf_format(file, 'UpperLeftCorner', 'Starting Vertex Position')
|
self._write_to_idf_format(file, 'UpperLeftCorner', 'Starting Vertex Position')
|
||||||
self._write_to_idf_format(file, 'CounterClockWise', 'Vertex Entry Direction')
|
self._write_to_idf_format(file, 'CounterClockWise', 'Vertex Entry Direction')
|
||||||
|
|
|
@ -18,10 +18,11 @@ class IdfBase:
|
||||||
'window_materials': str((output_path / 'window_materials.idf').resolve()),
|
'window_materials': str((output_path / 'window_materials.idf').resolve()),
|
||||||
'constructions': str((output_path / 'constructions.idf').resolve()),
|
'constructions': str((output_path / 'constructions.idf').resolve()),
|
||||||
'zones': str((output_path / 'zones.idf').resolve()),
|
'zones': str((output_path / 'zones.idf').resolve()),
|
||||||
|
'surfaces': str((output_path / 'surfaces.idf').resolve()),
|
||||||
|
'fenestration': str((output_path / 'fenestration.idf').resolve()),
|
||||||
'occupancy': str((output_path / 'occupancy.idf').resolve()),
|
'occupancy': str((output_path / 'occupancy.idf').resolve()),
|
||||||
'lighting': str((output_path / 'lights.idf').resolve()),
|
'lighting': str((output_path / 'lights.idf').resolve()),
|
||||||
'appliances': str((output_path / 'appliances.idf').resolve()),
|
'appliances': str((output_path / 'appliances.idf').resolve()),
|
||||||
'surfaces': str((output_path / 'surfaces.idf').resolve()),
|
|
||||||
'shading': str((output_path / 'shading.idf').resolve()),
|
'shading': str((output_path / 'shading.idf').resolve()),
|
||||||
'infiltration': str((output_path / 'infiltration.idf').resolve()),
|
'infiltration': str((output_path / 'infiltration.idf').resolve()),
|
||||||
'ventilation': str((output_path / 'ventilation.idf').resolve()),
|
'ventilation': str((output_path / 'ventilation.idf').resolve()),
|
||||||
|
|
|
@ -31,7 +31,7 @@ class IdfWindow(IdfBase):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def add(self, building):
|
def add(self, building):
|
||||||
file = self._files['surfaces']
|
file = self._files['fenestration']
|
||||||
for thermal_zone in building.thermal_zones_from_internal_zones:
|
for thermal_zone in building.thermal_zones_from_internal_zones:
|
||||||
for index, boundary in enumerate(thermal_zone.thermal_boundaries):
|
for index, boundary in enumerate(thermal_zone.thermal_boundaries):
|
||||||
building_surface_name = f'Building_{building.name}_surface_{index}'
|
building_surface_name = f'Building_{building.name}_surface_{index}'
|
||||||
|
|
|
@ -159,8 +159,6 @@ class TestExports(TestCase):
|
||||||
UsageFactory('nrcan', city).enrich()
|
UsageFactory('nrcan', city).enrich()
|
||||||
WeatherFactory('epw', city).enrich()
|
WeatherFactory('epw', city).enrich()
|
||||||
try:
|
try:
|
||||||
idf = EnergyBuildingsExportsFactory('idf', city, self._output_path).export()
|
|
||||||
# idf.run()
|
|
||||||
idf = EnergyBuildingsExportsFactory('cerc_idf', city, self._output_path).export()
|
idf = EnergyBuildingsExportsFactory('cerc_idf', city, self._output_path).export()
|
||||||
idf.run()
|
idf.run()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user