First time here? Check out the Help page!
1 | initial version |
require 'openstudio'
m = OpenStudio::Model::Model.new
plant = OpenStudio::Model::PlantLoop.new m
splitter = plant.supplySplitter
mixer = plant.supplyMixer
branchInletNodes = splitter.outletModelObjects
branchInletNodes.each do |node|
# get the components between the branch inlet and the mixer
branchComponents = plant.supplyComponents(node.to_Node.get,mixer)
# the last component is going to be the mixer so pop it off
puts branchComponents
end