class Standard # @!group CoilCoolingWaterToAirHeatPumpEquationFit # Prototype CoilCoolingWaterToAirHeatPumpEquationFit object # Enters in default curves for coil by type of coil # @param plant_loop [] the coil will be placed on the demand side of this plant loop # @param air_loop_node [] the coil will be placed on this node of the air loop # @param name [String] the name of the system, or nil in which case it will be defaulted # @param type [String] the type of coil to reference the correct curve set # @param cop [Double] rated cooling coefficient of performance def create_coil_cooling_water_to_air_heat_pump_equation_fit(model, plant_loop, air_loop_node: nil, name: 'Water-to-Air HP Clg Coil', type: nil, cop: 3.4) clg_coil = OpenStudio::Model::CoilCoolingWaterToAirHeatPumpEquationFit.new(model) # add to air loop if specified clg_coil.addToNode(air_loop_node) unless air_loop_node.nil? # set coil name clg_coil.setName(name) # add to plant loop if plant_loop.nil? OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', 'No plant loop supplied for cooling coil') return false end plant_loop.addDemandBranchForComponent(clg_coil) # set coil cop if cop.nil? clg_coil.setRatedCoolingCoefficientofPerformance(3.4) else clg_coil.setRatedCoolingCoefficientofPerformance(cop) end # curve sets if type == 'OS default' # use OS default curves else # default curve set clg_coil.setTotalCoolingCapacityCoefficient1(-4.30266987344639) clg_coil.setTotalCoolingCapacityCoefficient2(7.18536990534372) clg_coil.setTotalCoolingCapacityCoefficient3(-2.23946714486189) clg_coil.setTotalCoolingCapacityCoefficient4(0.139995928440879) clg_coil.setTotalCoolingCapacityCoefficient5(0.102660179888915) clg_coil.setSensibleCoolingCapacityCoefficient1(6.0019444814887) clg_coil.setSensibleCoolingCapacityCoefficient2(22.6300677244073) clg_coil.setSensibleCoolingCapacityCoefficient3(-26.7960783730934) clg_coil.setSensibleCoolingCapacityCoefficient4(-1.72374720346819) clg_coil.setSensibleCoolingCapacityCoefficient5(0.490644802367817) clg_coil.setSensibleCoolingCapacityCoefficient6(0.0693119353468141) clg_coil.setCoolingPowerConsumptionCoefficient1(-5.67775976415698) clg_coil.setCoolingPowerConsumptionCoefficient2(0.438988156976704) clg_coil.setCoolingPowerConsumptionCoefficient3(5.845277342193) clg_coil.setCoolingPowerConsumptionCoefficient4(0.141605667000125) clg_coil.setCoolingPowerConsumptionCoefficient5(-0.168727936032429) end return clg_coil end end