Skip to content

Commit

Permalink
Merge pull request #1698 from NREL/nrcan_3.7.0
Browse files Browse the repository at this point in the history
Merging nrcan_3.7.0 into nrcan branch
  • Loading branch information
ckirney authored Mar 1, 2024
2 parents 3345817 + 89f3e3d commit 214b1e1
Show file tree
Hide file tree
Showing 267 changed files with 1,677,858 additions and 1,674,979 deletions.
12 changes: 6 additions & 6 deletions lib/openstudio-standards/standards/necb/ECMS/hvac_systems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1907,10 +1907,10 @@ def add_ecm_hs14_cgshp_fancoils(model:,

# add output variables for district heating and cooling
model.getOutputVariables.each {|ivar| ivar.remove}
dist_htg_var = OpenStudio::Model::OutputVariable.new("District Heating Hot Water Rate",model)
dist_htg_var = OpenStudio::Model::OutputVariable.new("District Heating Water Rate",model)
dist_htg_var.setReportingFrequency("hourly")
dist_htg_var.setKeyValue("*")
dist_clg_var = OpenStudio::Model::OutputVariable.new("District Cooling Chilled Water Rate",model)
dist_clg_var = OpenStudio::Model::OutputVariable.new("District Cooling Water Rate",model)
dist_clg_var.setReportingFrequency("hourly")
dist_clg_var.setKeyValue("*")

Expand Down Expand Up @@ -2029,9 +2029,9 @@ def set_ghx_loop_district_cap(model)
case dist_htg_eqpts[0].iddObjectType.valueName.to_s
when 'OS_DistrictHeating'
dist_htg_eqpt = dist_htg_eqpts[0].to_DistrictHeating.get
when 'OS_DistrictHeatingWater'
when 'OS_DistrictHeating_Water'
dist_htg_eqpt = dist_htg_eqpts[0].to_DistrictHeatingWater.get
when 'OS_DistrictHeatingSteam'
when 'OS_DistrictHeating_Steam'
dist_htg_eqpt = dist_htg_eqpts[0].to_DistrictHeatingSteam.get
end
end
Expand All @@ -2040,7 +2040,7 @@ def set_ghx_loop_district_cap(model)
raise("set_cond_loop_district_cap: condenser loop doesn't have a district heating and district cooling objects") if dist_htg_eqpts.empty? || dist_clg_eqpts.empty?
# District Heating
sql_command = "SELECT ReportVariableDataDictionaryIndex FROM ReportVariableDataDictionary
WHERE VariableName='District Heating Hot Water Rate'"
WHERE VariableName='District Heating Water Rate'"
dhtg_index = model.sqlFile.get.execAndReturnFirstString(sql_command).get
raise("set_ghx_loop_district_cap: EnergyPlus sql results file has no data for district heating hot water rate") if dhtg_index.nil?
sql_command = "SELECT Value FROM ReportVariableWithTime
Expand All @@ -2051,7 +2051,7 @@ def set_ghx_loop_district_cap(model)
dist_htg_s = model.sqlFile.get.execAndReturnVectorOfString(sql_command).get
# District Cooling
sql_command = "SELECT ReportVariableDataDictionaryIndex FROM ReportVariableDataDictionary
WHERE VariableName='District Cooling Chilled Water Rate'"
WHERE VariableName='District Cooling Water Rate'"
dclg_index = model.sqlFile.get.execAndReturnFirstString(sql_command).get
raise("set_ghx_loop_district_cap: EnergyPlus sql results file has no data for district cooling chilled water rate") if dclg_index.nil?
sql_command = "SELECT Value FROM ReportVariableWithTime
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 214b1e1

Please sign in to comment.