Revision history [back]
How to add a controller to a hot water loop
From 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 script:
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?
How to add a controller to a hot water loop
From 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 script:
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?
How to add a controller to a hot water loop
From Form the SDK documentation, if use addDemandBranchForComponent method, it will create a new ControllerWaterCoil if ControllerWaterCoil hvacComponent is a hvacComponent CoilCoolingWater or a CoilCoolingWater CoilHeatingWater.CoilHeatingWater.
So so from OpenStudio, openstudio, should be like this:
however, when I add heating water coils to loop by this ruby script:scripts:
coils = model.getCoilHeatingWaters
plant = model.getPlantLoopByName('Hot Water Loop')
coils.each do |coil|
plant.addDemandBranchForComponent(coil)
end
there is no controller in OpenStudio:
openstudio:

So so any suggestions?suggestions? Thanks!!!!!