lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb in openstudio-standards-0.2.2 vs lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb in openstudio-standards-0.2.3
- old
+ new
@@ -43,11 +43,11 @@
search_criteria = {}
search_criteria['template'] = template
search_criteria['fuel_type'] = fuel_type
wh_props = model_find_object(standards_data['water_heaters'], search_criteria, capacity_btu_per_hr)
unless wh_props
- OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.BoilerHotWater', "For #{water_heater_mixed.name}, cannot find water heater properties, cannot apply efficiency standard.")
+ OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.WaterHeaterMixed', "For #{water_heater_mixed.name}, cannot find water heater properties, cannot apply efficiency standard.")
return false
end
# Calculate the water heater efficiency and
# skin loss coefficient (UA) using different methods,
@@ -147,9 +147,10 @@
return false
end
# Convert to SI
ua_btu_per_hr_per_c = OpenStudio.convert(ua_btu_per_hr_per_f, 'Btu/hr*R', 'W/K').get
+ OpenStudio.logFree(OpenStudio::Debug, 'openstudio.standards.WaterHeaterMixed', "For #{water_heater_mixed.name}, skin-loss UA = #{ua_btu_per_hr_per_c} W/K.")
# Set the water heater properties
# Efficiency
water_heater_mixed.setHeaterThermalEfficiency(water_heater_eff)
# Skin loss