Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

How to get the node of the zone splitter in C#

asked 2015-05-20 03:44:40 -0500

zhengangzhu's avatar

updated 2015-11-12 16:44:52 -0500

In C++ the node can get from this airLoop.zoneSplitter().lastOutletModelObject()->cast<node>()

But in C# the related functions are not implemented as the compiler complains

public OptionalNode supplySplitterInletNode(); public OptionalNode zoneSplitterInletNode(int zoneSplitterIndex);

So I'm in trouble to find the following node and add AirTerminalSingleDuctParallelPIUReheat to it. Any one can help? Thanks

image description

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2015-05-21 10:20:19 -0500

updated 2015-05-21 10:30:23 -0500

This is unverified C# code, but the following code is close to the c++ code snippet in the question.

node = model.toNode(airLoop.zoneSplitter().lastOutletModelObject().get()).get()

That paradigm I know works for the Python bindings, which do not have the helper functionality of the Ruby bindings.

If you want to add a terminal and ThermalZone at the same time, use @Kyle Benne advice on addBranchForZone.

edit flag offensive delete link more
3

answered 2015-05-21 10:26:02 -0500

You might consider adding the zone and the terminal in one method call to addBranchForZone, avoiding the need to retrieve the node altogether.

airLoop.addBranchForZone(zone,terminal)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2015-05-20 03:44:40 -0500

Seen: 203 times

Last updated: May 21 '15