-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new object type DataLoopNode::ConnectionObjectType #10388
Conversation
@@ -383,7 +383,15 @@ namespace AirLoopHVACDOAS { | |||
|
|||
thisSplitter.name = Util::makeUPPER(thisObjectName); | |||
thisSplitter.InletNodeName = Util::makeUPPER(fields.at("inlet_node_name").get<std::string>()); | |||
thisSplitter.InletNodeNum = Util::FindItemInList(thisSplitter.InletNodeName, state.dataLoopNodes->NodeID); | |||
thisSplitter.InletNodeNum = NodeInputManager::GetOnlySingleNode(state, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The correct function is used to get an air node number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgu1234 This looks good. The same change is needed for the Mixer inlet nodes and the Splitter outlet nodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjwitte Thanks. The same changes are made.
@@ -11579,6 +11579,9 @@ TEST_F(EnergyPlusFixture, AirLoopHVACDOAS_TestFanDrawThroughPlacement) | |||
EXPECT_NEAR(AirLoopDOAS_SplitterInletNode.MassFlowRate, 0.1, 0.0001); | |||
EXPECT_NEAR(DOAS_FanInletNode.MassFlowRate, 0.1, 0.0001); | |||
EXPECT_NEAR(DOAS_HeatingCOilOutletNode.MassFlowRate, 0.1, 0.0001); | |||
|
|||
// Issue 10204 Get AirLoopHVAC:Splitter inlet node number using NodeInputManager::GetOnlySingleNode | |||
EXPECT_EQ(thisAirLoopDOASObjec.m_CompPointerAirLoopSplitter->InletNodeNum, 17); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgu1234 Looks good. Unit tests run, diffs are as expected. Merging.
Pull request overview
A correct function is required to get an air node number. The function requires a connection type as an argument. The AirLoopHVAC:Splitter object is not available in the connection list. The fix adds the object in the list.
The test file is an example file as SmallOffice_CentralDOAS.idf.
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.