Skip to content

Commit

Permalink
small bugfix for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaMans committed May 27, 2016
1 parent e727aab commit 2717cde
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion teaser/data/output/aixlib_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def export_aixlib(prj,
assert corG in [None, True, False]

uses = ['Modelica(version = "3.2.1")',
"AixLib(version=\"0.3.0\")"]
"AixLib(version=\"0.3.1\")"]

# use the same zone templates for all exports
zone_template = Template(
Expand Down
3 changes: 3 additions & 0 deletions teaser/logic/simulation/aixlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def compare_orientation(bldg):
"""

orient_tilt_help = []
bldg.orient_tilt = []
bldg.orientation_bldg = []
bldg.tilt_bldg = []

for zone in bldg.thermal_zones:
for wall in zone.outer_walls:
Expand Down
3 changes: 3 additions & 0 deletions teaser/logic/simulation/annex.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def compare_orientation(bldg, number_of_elements=3):

orient_tilt_help1 = []
orient_tilt_help2 = []
bldg.orientation_bldg = []
bldg.tilt_bldg = []

for zone in bldg.thermal_zones:
for wall in zone.outer_walls:
if wall.orientation != -2:
Expand Down
12 changes: 4 additions & 8 deletions teaser/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,14 @@ def calc_all_buildings(self,
self._used_library_calc = used_library
for bldg in reversed(self.buildings):
try:
bldg.calc_building_parameter()
bldg.calc_building_parameter(
number_of_elements=self._number_of_elements_calc,
merge_windows=self._merge_windows_calc,
used_library=self._used_library_calc)
except:
print(bldg.name)
self.buildings.remove(bldg)

for bldg in self.buildings:

bldg.calc_building_parameter(
number_of_elements=self._number_of_elements_calc,
merge_windows=self._merge_windows_calc,
used_library=self._used_library_calc)

def retrofit_all_buildings(self,
year_of_retrofit,
window_type=None,
Expand Down

0 comments on commit 2717cde

Please sign in to comment.