lib/openstudio-standards/hvac_sizing/Siz.ThermalZone.rb in openstudio-standards-0.3.1.rc1 vs lib/openstudio-standards/hvac_sizing/Siz.ThermalZone.rb in openstudio-standards-0.3.1.rc2

- old
+ new

@@ -164,15 +164,20 @@ if sql.is_initialized sql = sql.get table_name = 'Zone Sizing Information' + if self.model.version < OpenStudio::VersionString.new('3.5.0') + report_name = 'Initialization Summary' + else + report_name = 'InitializationSummary' + end # Get zone row name query = "SELECT RowName FROM tabulardatawithstrings - WHERE ReportName='Initialization Summary' + WHERE ReportName='#{report_name}' AND ReportForString='Entire Facility' AND TableName='#{table_name}' AND ColumnName='Zone Name' AND Value='#{name}'" @@ -191,11 +196,11 @@ clg_des_air_flow_rate = 0 # Get zone cooling design flow rate query = "SELECT Value FROM tabulardatawithstrings - WHERE ReportName='Initialization Summary' + WHERE ReportName='#{report_name}' AND ReportForString='Entire Facility' AND TableName='#{table_name}' AND ColumnName='User Des Air Flow Rate {m3/s}' AND RowName='#{clg_id}'" val = sql.execAndReturnFirstDouble(query) @@ -206,10 +211,10 @@ end # Get zone heating design flow rate query = "SELECT Value FROM tabulardatawithstrings - WHERE ReportName='Initialization Summary' + WHERE ReportName='#{report_name}' AND ReportForString='Entire Facility' AND TableName='#{table_name}' AND ColumnName='User Des Air Flow Rate {m3/s}' AND RowName='#{htg_id}'" val = sql.execAndReturnFirstDouble(query)