Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get Maximum Flow Rate

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.

image description

I'm not sure if I'm using the get.MaximumFowRate method correctly.

image description

Thanks in advance for any assistance!