How reset the UFactorTimesAreaValue of Heating Coil Water loop?
I tried to reset the UFactorTimesArea value of the heating coil water loop. Along the inheritance diagram, i found the relevant objects. After i organize them together, by:
The error shows up when i load the measure into OpenStudio:
It says the assignment is dynamic. However, it is better to do it dynamically, because i do need the check of the heating coil for UFactorTimesAreaValueAutoSized().
My question is how to assign it statically? Or is it because my object inheritance is not right?
air_loops.each do |air_loop|
supply_components = air_loop.supplyComponents
#find coilheating on loop
supply_components.each do |supply_component|
heating_coil=supply_component.to_WaterToAirComponent.to_CoilHeatingWater
if heating_coil.is_initialized
UFactorTimeArea= heating_coil.isUFactorTimesAreaValueAutoSized //here the error occurs
if (UFactorTimeArea.isUFactorTimesAreaValueAutoSized)
UFactorTimeArea.setUFactorTimesAreaValue(user_input);
else
UFactorTimeArea.setUFactorTimesAreaValue(user_input);
end
end
end