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

- old
+ new

@@ -904,16 +904,16 @@ log << "Found Const Vol Fan #{pump_const.name.get.to_s}" #check that this is indeed connected to an plant loop. unless pump_const.plantLoop.empty? pump_variable = OpenStudio::Model::PumpVariableSpeed.new(model) #pass information from constant speed fan as much as possible. - pump_variable.setRatedFlowRate(pump_const.getRatedFlowRate.get) - pump_variable.setRatedPumpHead(pump_const.ratedPumpHead()) + pump_variable.setRatedFlowRate(pump_const.ratedFlowRate) + pump_variable.setRatedPumpHead(pump_const.ratedPumpHead) pump_variable.setRatedPowerConsumption(pump_const.ratedPowerConsumption.to_f) - pump_variable.setMotorEfficiency(pump_const.motorEfficiency().to_f) - pump_variable.setPumpControlType( pump_const.pumpControlType ) - pump_variable.setFractionofMotorInefficienciestoFluidStream(pump_const.fractionofMotorInefficienciestoFluidStream().to_f) + pump_variable.setMotorEfficiency(pump_const.motorEfficiency.to_f) + pump_variable.setPumpControlType(pump_const.pumpControlType) + pump_variable.setFractionofMotorInefficienciestoFluidStream(pump_const.fractionofMotorInefficienciestoFluidStream.to_f) pump_variable.autosizeRatedFlowRate if pump_const.isRatedFlowRateAutosized pump_variable.autosizeRatedPowerConsumption if pump_const.isRatedPowerConsumptionAutosized #get the hot water loop. hw_loop = pump_const.plantLoop.get @@ -930,11 +930,11 @@ #check that this is indeed connected to an plant loop. unless pump.plantLoop.empty? new_pump = OpenStudio::Model::PumpVariableSpeed.new(model) #pass information from constant speed fan as much as possible. - new_pump.setRatedFlowRate(pump.getRatedFlowRate.get) + new_pump.setRatedFlowRate(pump.ratedFlowRate.get) new_pump.setRatedPumpHead(pump.ratedPumpHead()) new_pump.setRatedPowerConsumption(pump.ratedPowerConsumption.to_f) new_pump.setMotorEfficiency(pump.motorEfficiency().to_f) new_pump.setFractionofMotorInefficienciestoFluidStream(pump.fractionofMotorInefficienciestoFluidStream().to_f) new_pump.setPumpControlType( pump.pumpControlType ) @@ -1069,10 +1069,10 @@ unless @shw_setpoint_sched_name.nil? or @shw_setpoint_sched.nil? item.setSetpointTemperatureSchedule(schedule) end item.setHeaterFuelType(@shw_heater_fuel_type) unless @shw_heater_fuel_type.nil? item.setHeaterThermalEfficiency(@shw_thermal_eff) unless @shw_thermal_eff.nil? - log << item.name.get.to_s << ",#{item.setpointTemperatureSchedule},#{item.heaterFuelType},#{item.getHeaterThermalEfficiency.get}\n" + log << item.name.get.to_s << ",#{item.setpointTemperatureSchedule},#{item.heaterFuelType},#{item.heaterThermalEfficiency}\n" end return log end def ecm_hotwater_boilers( model ) measure_values = [