Copy an Airloop in OpenStudio
I need a hint to write a measure to duplicate an AirLoopHVAC already made within openstudio. I will appreciate any help.
First time here? Check out the Help page!
I need a hint to write a measure to duplicate an AirLoopHVAC already made within openstudio. I will appreciate any help.
Using AirLoopHVAC.clone
by itself won't work. Instead you'd probably have to get the loop's supply components, clone them individually and then assign them to the new loop. This can be tricky for components (e.g. water coils) that have connections to other loops.
I would consider an alternate approach in which you build your original loop in the measure, and iterate that code for the number of loops you want. I've found that way a lot cleaner than trying to fully duplicate existing systems.
@Kyle Benne might have some insights. There is an issue on file to make the .clone
method work better, but it hasn't been addressed yet.
Yeah I don't have a lot to add here. I think Eric's comments echo my own thoughts pretty well. If folks really want to see AirLoopHVAC.clone built into the OpenStudio SDK I'd pile on in this thread. It is something I've advocated for myself, but never really had the justification to spend time on it. I think it would be great feature for making air system libraries.
Somehow I missed that you had filed an issue about it. I'll go ahead and link to the uservoice request, just to keep things in a tidy package.
I would look at an existing BCL measure that has a user argument for an air loop and then try the clone method.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-10-24 00:48:07 -0600
Seen: 473 times
Last updated: Oct 25 '16