lib/openstudio-standards/standards/Standards.CoilCoolingWaterToAirHeatPumpEquationFit.rb in openstudio-standards-0.2.15 vs lib/openstudio-standards/standards/Standards.CoilCoolingWaterToAirHeatPumpEquationFit.rb in openstudio-standards-0.2.16.rc1

- old
+ new

@@ -101,11 +101,10 @@ # # @param coil_cooling_water_to_air_heat_pump [OpenStudio::Model::CoilCoolingWaterToAirHeatPumpEquationFit] coil cooling object # @param sql_db_vars_map [Hash] hash map # @return [Hash] hash of coil objects def coil_cooling_water_to_air_heat_pump_apply_efficiency_and_curves(coil_cooling_water_to_air_heat_pump, sql_db_vars_map) - successfully_set_all_properties = true # Get the search criteria search_criteria = {} search_criteria['template'] = template capacity_w = coil_cooling_water_to_air_heat_pump_find_capacity(coil_cooling_water_to_air_heat_pump) @@ -114,11 +113,18 @@ # Look up the efficiency characteristics coil_props = model_find_object(standards_data['water_source_heat_pumps'], search_criteria, capacity_btu_per_hr, Date.today) # Check to make sure properties were found if coil_props.nil? - OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.CoilCoolingWaterToAirHeatPumpEquationFit', "For #{coil_cooling_water_to_air_heat_pump.name}, cannot find efficiency info using #{search_criteria}, cannot apply efficiency standard.") - successfully_set_all_properties = false + # search again without capacity + matching_objects = model_find_objects(standards_data['water_source_heat_pumps'], search_criteria, nil, Date.today) + if matching_objects.size.zero? + # This proves that the search_criteria has issue finding the correct coil prop + OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.CoilCoolingWaterToAirHeatPumpEquationFit', "For #{coil_cooling_water_to_air_heat_pump.name}, cannot find efficiency info using #{search_criteria}, cannot apply efficiency standard.") + else + # Issue warning indicate the coil size is may be too large + OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.CoilCoolingWaterToAirHeatPumpEquationFit', "The capacity of the coil: #{coil_cooling_water_to_air_heat_pump.name} maybe too large to be found in the efficiency standard. The coil capacity is #{capacity_btu_per_hr} Btu/hr.") + end return sql_db_vars_map end # @todo Add methods to set coefficients, and add coefficients to data spreadsheet # using OS defaults for now