Skip to content

Commit

Permalink
Upload a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgu1234 committed Feb 1, 2024
1 parent 0c0cdaa commit d2c8a68
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/EnergyPlus/AirLoopHVACDOAS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
thisSplitter.InletNodeName,
errorsFound,
DataLoopNode::ConnectionObjectType::AirLoopHVACSplitter,
thisObjectName,
DataLoopNode::NodeFluidType::Air,
DataLoopNode::ConnectionType::Inlet,
NodeInputManager::CompFluidStream::Primary,
DataLoopNode::ObjectIsParent);
thisSplitter.m_AirLoopSplitter_Num = AirLoopSplitterNum - 1;

auto NodeNames = fields.find("nodes");
Expand Down
2 changes: 2 additions & 0 deletions src/EnergyPlus/BranchNodeConnections.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ constexpr std::array<std::string_view, static_cast<int>(DataLoopNode::Connection
"AirLoopHVAC:OutdoorAirSystem",
"AirLoopHVAC:ReturnPath",
"AirLoopHVAC:ReturnPlenum",
"AirLoopHVAC:Splitter",
"AirLoopHVAC:SupplyPath",
"AirLoopHVAC:SupplyPlenum",
"AirLoopHVAC:Unitary:Furnace:HeatCool",
Expand Down Expand Up @@ -367,6 +368,7 @@ constexpr std::array<std::string_view, static_cast<int>(DataLoopNode::Connection
"AIRLOOPHVAC:OUTDOORAIRSYSTEM",
"AIRLOOPHVAC:RETURNPATH",
"AIRLOOPHVAC:RETURNPLENUM",
"AIALOOPHVAC:SPLITTER",
"AIRLOOPHVAC:SUPPLYPATH",
"AIRLOOPHVAC:SUPPLYPLENUM",
"AIRLOOPHVAC:UNITARY:FURNACE:HEATCOOL",
Expand Down
1 change: 1 addition & 0 deletions src/EnergyPlus/DataLoopNode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ namespace DataLoopNode {
AirLoopHVACOutdoorAirsystem,
AirLoopHVACReturnPath,
AirLoopHVACReturnPlenum,
AirLoopHVACSplitter,
AirLoopHVACSupplyPath,
AirLoopHVACSupplyPlenum,
AirLoopHVACUnitaryFurnaceHeatCool,
Expand Down
3 changes: 3 additions & 0 deletions tst/EnergyPlus/unit/AirLoopHVACDOAS.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

} // namespace EnergyPlus

2 comments on commit d2c8a68

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10204-Add-more-object-types (lgu1234) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3586 of 3586 tests passed, 1 test warnings)

Messages:\n

  • 1 test had: AUD diffs.
  • 1 test had: BND diffs.

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10204-Add-more-object-types (lgu1234) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (1971 of 1971 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.