Form the SDK documentation, if use addDemandBranchForComponent method, it will create a new ControllerWaterCoil if hvacComponent is a CoilCoolingWater or a CoilHeatingWater.
so from openstudio, should be like this:
however, when I add heating water coils to loop by this ruby scripts:
coils = model.getCoilHeatingWaters
plant = model.getPlantLoopByName('Hot Water Loop')
coils.each do |coil|
plant.addDemandBranchForComponent(coil)
end
there is no controller in openstudio:
so any suggestions? Thanks!!!!!