Skip to content

Commit

Permalink
fix(model): Fix bug when not using multipliers
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Oct 9, 2024
1 parent 1c6b7fe commit 66a5119
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dragonfly/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,9 +1474,10 @@ def to_honeybee(self, object_per_model='Building', shade_distance=None,
object_per_model.title() in ('Building', 'District'):
story_rel_types = {}
for bldg in self.buildings:
for i, story in enumerate(bldg.unique_stories):
stories = bldg.unique_stories if use_multiplier else bldg.all_stories()
for i, story in enumerate(stories):
rel_types = []
if i == 0 or bldg.unique_stories[i - 1].multiplier == 1:
if i == 0 or stories[i - 1].multiplier == 1:
rel_types.append(Floor)
if story.multiplier == 1:
rel_types.append(RoofCeiling)
Expand Down
2 changes: 2 additions & 0 deletions dragonfly/room2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2918,6 +2918,8 @@ def to_honeybee(
for hb_plenum in hb_plenums: # transfer the parent's construction set
hb_plenum._properties = self.properties.to_honeybee(hb_plenum)
hb_plenum.exclude_floor_area = True
if self.has_parent:
hb_plenum.story = self.parent.display_name
try: # set the program to unconditioned plenum and assign infiltration
hb_plenum.properties.energy.program_type = None
hb_plenum.properties.energy.hvac = None
Expand Down

0 comments on commit 66a5119

Please sign in to comment.