lib/openstudio-standards/standards/Standards.FluidCooler.rb in openstudio-standards-0.2.12 vs lib/openstudio-standards/standards/Standards.FluidCooler.rb in openstudio-standards-0.2.13.rc3
- old
+ new
@@ -12,12 +12,19 @@
# by the efficiency. Thus the fan power used as
# an input to the simulation divided by the design flow
# rate will not (and should not)
# exactly equal the minimum tower performance.
#
+ # @param fluid_cooler [OpenStudio::Model::FluidCoolerSingleSpeed,
+ # OpenStudio::Model::FluidCoolerTwoSpeed,
+ # OpenStudio::Model::EvaporativeFluidCoolerSingleSpeed,
+ # OpenStudio::Model::EvaporativeFluidCoolerTwoSpeed] the fluid cooler
+ # @param equipment_type [String] heat rejection equipment type enumeration used for lookup query,
+ # options are 'Closed Cooling Tower', modeled as an EvaporativeFluidCooler,
+ # or 'Dry Cooler', modeled as a FluidCooler
# @return [Bool] true if successful, false if not
- def fluid_cooler_apply_minimum_power_per_flow(fluid_cooler)
+ def fluid_cooler_apply_minimum_power_per_flow(fluid_cooler, equipment_type: 'Closed Cooling Tower')
# Get the design water flow rate
if fluid_cooler.designWaterFlowRate.is_initialized
design_water_flow_m3_per_s = fluid_cooler.designWaterFlowRate.get
elsif fluid_cooler.autosizedDesignWaterFlowRate.is_initialized
design_water_flow_m3_per_s = fluid_cooler.autosizedDesignWaterFlowRate.get
@@ -34,11 +41,11 @@
# in the hvac standards data set.
search_criteria = {}
search_criteria['template'] = template
# Closed cooling towers are fluidcooler objects.
- search_criteria['equipment_type'] = 'Closed Cooling Tower'
+ search_criteria['equipment_type'] = equipment_type
# TODO: Standards replace this with a mechanism to store this
# data in the fluid cooler object itself.
# For now, retrieve the fan type from the name
name = fluid_cooler.name.get
@@ -119,6 +126,6 @@
fluid_cooler.setLowFanSpeedFanPower(0.3 * fan_motor_actual_power_w)
end
return true
end
-end
\ No newline at end of file
+end