Skip to content

Commit

Permalink
Bug Fix. Natural Ventilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Dec 12, 2017
1 parent ec2c24e commit c7c1140
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Honeybee_ Run Energy Simulation.py
Expand Up @@ -62,7 +62,7 @@
"""
ghenv.Component.Name = "Honeybee_ Run Energy Simulation"
ghenv.Component.NickName = 'runEnergySimulation'
ghenv.Component.Message = 'VER 0.0.62\nOCT_11_2017'
ghenv.Component.Message = 'VER 0.0.62\nDEC_11_2017'
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.application
ghenv.Component.Category = "Honeybee"
ghenv.Component.SubCategory = "10 | Energy | Energy"
Expand Down Expand Up @@ -2343,6 +2343,7 @@ def extracttimeperiod(simulationOutputs):
resultFileFullName = None
performanceSummaryReport= None;
studyFolder = None
eioFileFullName = None
if runEnergyPlus:
print "Analysis is running!..."
# write the batch file
Expand Down
17 changes: 15 additions & 2 deletions src/Honeybee_Set EP Air Flow.py
Expand Up @@ -69,7 +69,7 @@

ghenv.Component.Name = "Honeybee_Set EP Air Flow"
ghenv.Component.NickName = 'setEPNatVent'
ghenv.Component.Message = 'VER 0.0.62\nJUL_28_2017'
ghenv.Component.Message = 'VER 0.0.62\nDEC_11_2017'
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.application
ghenv.Component.Category = "Honeybee"
ghenv.Component.SubCategory = "08 | Energy | Set Zone Properties"
Expand Down Expand Up @@ -266,7 +266,7 @@ def checkWithHBZone(listOfValues, name):
#Check the inputs related to window-driven or custom wind/stack ventilation.
checkData17 = True
checkData18 = True
if natVentMethod == 1 or natVentMethod == 2:
if natVentMethod == 1:
try:
windDisCoeff = windDrivenCrossVent_
stackDisCoeff = stackDischargeCoeff_
Expand All @@ -279,6 +279,19 @@ def checkWithHBZone(listOfValues, name):
stackDisCoeff = None
checkData17 = False
checkData18 = False
elif natVentMethod == 2:
try:
windDisCoeff = windCoefficient_
stackDisCoeff = stackDischargeCoeff_
if windDisCoeff != None:
checkData17 = checkRange([windDisCoeff], 0, 1)
if stackDisCoeff != None:
checkData18 = checkRange([stackDisCoeff], 0, 1)
except:
windDisCoeff = None
stackDisCoeff = None
checkData17 = False
checkData18 = False
else:
windDisCoeff = None
stackDisCoeff = None
Expand Down
Binary file modified userObjects/Honeybee_ Run Energy Simulation.ghuser
Binary file not shown.
Binary file modified userObjects/Honeybee_Set EP Air Flow.ghuser
Binary file not shown.

0 comments on commit c7c1140

Please sign in to comment.