class ASHRAE9012004 < ASHRAE901 # @!group PlantLoop # Set the primary and secondary pumping control types for the chilled water loop, as specified in Appendix G. # # @param plant_loop [OpenStudio::Model::PlantLoop] chilled water loop # @return [Bool] returns true if successful, false if not def plant_loop_apply_prm_baseline_chilled_water_pumping_type(plant_loop) # Determine the pumping type. minimum_area_ft2 = 120_000 # Determine the area served area_served_m2 = plant_loop_total_floor_area_served(plant_loop) area_served_ft2 = OpenStudio.convert(area_served_m2, 'm^2', 'ft^2').get # Determine the primary pump type pri_control_type = 'Constant Flow' # Determine the secondary pump type sec_control_type = 'Riding Curve' if area_served_ft2 > minimum_area_ft2 sec_control_type = 'VSD No Reset' end # Report out the pumping type unless pri_control_type.nil? OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.AirLoopHVAC', "For #{plant_loop.name}, primary pump type is #{pri_control_type}.") end unless sec_control_type.nil? OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.AirLoopHVAC', "For #{plant_loop.name}, secondary pump type is #{sec_control_type}.") end # Modify all the primary pumps plant_loop.supplyComponents.each do |sc| if sc.to_PumpVariableSpeed.is_initialized pump = sc.to_PumpVariableSpeed.get pump_variable_speed_set_control_type(pump, pri_control_type) elsif sc.to_HeaderedPumpsVariableSpeed.is_initialized pump = sc.to_HeaderedPumpsVariableSpeed.get headered_pump_variable_speed_set_control_type(pump, control_type) end end # Modify all the secondary pumps plant_loop.demandComponents.each do |sc| if sc.to_PumpVariableSpeed.is_initialized pump = sc.to_PumpVariableSpeed.get pump_variable_speed_set_control_type(pump, sec_control_type) elsif sc.to_HeaderedPumpsVariableSpeed.is_initialized pump = sc.to_HeaderedPumpsVariableSpeed.get headered_pump_variable_speed_set_control_type(pump, control_type) end end return true end end