Skip to content

Commit

Permalink
Merge pull request #24 from NREL/ep_24_1
Browse files Browse the repository at this point in the history
EnergyPlus 24.1 and OpenStudio 3.8 results
  • Loading branch information
DavidGoldwasser authored Nov 7, 2024
2 parents 69b2443 + 41dde24 commit e791797
Show file tree
Hide file tree
Showing 14 changed files with 637 additions and 637 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,30 +101,30 @@ def energyPlusOutputRequests(runner, user_arguments)
result << OpenStudio::IdfObject.load("Output:Variable,,#{variable},hourly;").get
end

# add in monthly variables (needed for OpenStudio 3.7 but not 3.8 and later)
category_strs = []
OpenStudio::EndUseCategoryType.getValues.each do |category_type|
category_str = OpenStudio::EndUseCategoryType.new(category_type).valueDescription
category_strs << category_str.gsub(" ","")
end
monthly_array = ['Output:Table:Monthly']
monthly_array << "Building Energy Performance - District Heating Water"
monthly_array << '2'
category_strs.each do |category_string|
monthly_array << "#{category_string}:DistrictHeatingWater"
monthly_array << 'SumOrAverage'
end
result << OpenStudio::IdfObject.load("#{monthly_array.join(',')};").get
monthly_array = ['Output:Table:Monthly']
monthly_array << "Building Energy Performance - District Heating Water Peak Demand"
monthly_array << '2'
monthly_array << "DistrictHeatingWater:Facility"
monthly_array << "Maximum"
category_strs.each do |category_string|
monthly_array << "#{category_string}:DistrictHeatingWater"
monthly_array << 'ValueWhenMaximumOrMinimum'
end
result << OpenStudio::IdfObject.load("#{monthly_array.join(',')};").get
# # add in monthly variables (needed for OpenStudio 3.7 but not 3.8 and later)
# category_strs = []
# OpenStudio::EndUseCategoryType.getValues.each do |category_type|
# category_str = OpenStudio::EndUseCategoryType.new(category_type).valueDescription
# category_strs << category_str.gsub(" ","")
# end
# monthly_array = ['Output:Table:Monthly']
# monthly_array << "Building Energy Performance - District Heating Water"
# monthly_array << '2'
# category_strs.each do |category_string|
# monthly_array << "#{category_string}:DistrictHeatingWater"
# monthly_array << 'SumOrAverage'
# end
# result << OpenStudio::IdfObject.load("#{monthly_array.join(',')};").get
# monthly_array = ['Output:Table:Monthly']
# monthly_array << "Building Energy Performance - District Heating Water Peak Demand"
# monthly_array << '2'
# monthly_array << "DistrictHeatingWater:Facility"
# monthly_array << "Maximum"
# category_strs.each do |category_string|
# monthly_array << "#{category_string}:DistrictHeatingWater"
# monthly_array << 'ValueWhenMaximumOrMinimum'
# end
# result << OpenStudio::IdfObject.load("#{monthly_array.join(',')};").get

result
end
Expand Down
Binary file modified results/RESULTS5-2A.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-2a_OS.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-3A.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-3A_OS.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-3B.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-3B_OS.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-4.xlsx
Binary file not shown.
Binary file modified results/RESULTS5-4_OS.xlsx
Binary file not shown.
378 changes: 189 additions & 189 deletions results/historical/OpenStudio_3_7_0.csv

Large diffs are not rendered by default.

Loading

0 comments on commit e791797

Please sign in to comment.