lib/openstudio-standards/btap/measures.rb in openstudio-standards-0.2.11.rc1 vs lib/openstudio-standards/btap/measures.rb in openstudio-standards-0.2.11.rc2

- old
+ new

@@ -1097,20 +1097,24 @@ iplantloop.components.each do |icomponent| if icomponent.to_BoilerHotWater.is_initialized boiler = icomponent.to_BoilerHotWater.get #set design outlet temp - boiler.setDesignWaterOutletTemperature(@hw_boiler_design_water_outlet_temperature) unless @hw_boiler_design_water_outlet_temperature.nil? + if model.version < OpenStudio::VersionString.new('3.0.0') + boiler.setDesignWaterOutletTemperature(@hw_boiler_design_water_outlet_temperature) unless @hw_boiler_design_water_outlet_temperature.nil? + end #set fuel type boiler.setFuelType(@hw_boiler_fuel_type) unless @hw_boiler_fuel_type.nil? #set thermal eff boiler.setNominalThermalEfficiency(@hw_boiler_thermal_eff) unless @hw_boiler_thermal_eff.nil? #set boiler flow mode unless @hw_boiler_flow_mode.nil? ["ConstantFlow","LeavingSetpointModulated","NotModulated"].include?(@hw_boiler_flow_mode) ? boiler.setBoilerFlowMode(@hw_boiler_flow_mode) : raise("Boiler flow mode #{@hw_boiler_flow_mode} invalid.") end #set setDesignWaterOutletTemperature - boiler.setDesignWaterOutletTemperature(@hotwaterboiler_reset_highsupplytemp) unless @hotwaterboiler_reset_highsupplytemp.nil? + if model.version < OpenStudio::VersionString.new('3.0.0') + boiler.setDesignWaterOutletTemperature(@hotwaterboiler_reset_highsupplytemp) unless @hotwaterboiler_reset_highsupplytemp.nil? + end #set EfficiencyCurveTemperatureEvaluationVariable unless @hw_boiler_eff_curve_temp_eval_var.nil? ["LeavingBoiler","EnteringBoiler"].include?(@hw_boiler_eff_curve_temp_eval_var) ? boiler.setEfficiencyCurveTemperatureEvaluationVariable(@hw_boiler_eff_curve_temp_eval_var) : raise("EfficiencyCurveTemperatureEvaluationVariable #{@hw_boiler_eff_curve_temp_eval_var} invalid.") end