Hello, I'm trying to call the maximum flow rate of a fan. First there's a sizing run, and then a segment that attempts to call the maximum flow rate:
model.runSizingRun()
model.getAirLoopHVACs.each do |air_loop|
supply_components = air_loop.supplyComponents
supply_components.each do |supply_component|
unit = supply_component.to_FanVariableVolume
if not unit.empty?
fan_vv = unit.get
runner.registerInfo("#{fan_vv.name}")
if fan_vv.isMaximumFlowRateAutosized == true
runner.registerInfo("Autosized")
flow_rate = fan_vv.getMaximumFlowRate
runner.registerInfo("#{flow_rate}")
else
runner.registerInfo("Not Autosized")
end
end
end
end
The info message for flow_rate
results in a '#' instead of a value.
I'm not sure if I'm using the get.MaximumFowRate
method correctly.
Thanks in advance for any assistance!