Skip to content

Commit

Permalink
super_hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jimenofonseca committed Nov 12, 2019
1 parent 9081381 commit eca86f8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cea/demand/building_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,16 @@ def geometry_reader_radiation_daysim(self, locator, envelope, occupancy, geometr
df = envelope.merge(occupancy, left_index=True, right_index=True)
df = df.merge(geometry, left_index=True, right_index=True)

df['empty_envelope_ratio'] = 1 - (
(df['void_deck'] * (df['height_ag'] / df['floors_ag'])) / (df['Awall'] + df['Awin']))
def calc_empty_envelope_ratio(void_deck_floors, height, floors, Awall, Awin):
if (Awall + Awin) > 0.0:
empty_envelope_ratio = 1 - ((void_deck_floors * (height/ floors)) / (Awall + Awin))
else:
empty_envelope_ratio = 1
return empty_envelope_ratio

df['empty_envelope_ratio'] = df.apply(lambda x: calc_empty_envelope_ratio(x['void_deck'], x['height_ag'],
x['floors_ag'], x['Awall'],
x['Awin']), axis=1)

# adjust envelope areas with Void_deck
df['Aw'] = df['Awin'] * df['empty_envelope_ratio']
Expand Down

0 comments on commit eca86f8

Please sign in to comment.