How to locate each heating water coil by Ruby binding?
I have some redundant heating water coil in plant loop, OpenStudio model, but I'm not sure how to locate them. My primary idea is checking whether these coils belong to any other HVAC Components (reheater, etc), or belong to some air loop. any other possibility? here is my Ruby code:
coils = model.getCoilHeatingWaters
hotWaterLoop = model.getPlantLoopByName('hot water loop')
coils.each do |coil|
if coil.airLoopHVAC.empty?
if coil.containingHVACComponent.empty?
hotWaterLoop.removeDemandBranchWithComponent(coil)
end
end
end