MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / addToTertiaryNode

Method addToTertiaryNode

src/model/ChillerAbsorption.cpp:415–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 }
414
415 bool ChillerAbsorption_Impl::addToTertiaryNode(Node& node) {
416 auto _model = node.model();
417 auto t_plantLoop = node.plantLoop();
418
419 // Only accept adding to a node that is on a demand side of a plant loop
420 // Since tertiary here = generator loop (heating)
421 if (t_plantLoop) {
422 if (t_plantLoop->demandComponent(node.handle())) {
423 // Call base class method which accepts both supply and demand
424 bool ok = WaterToWaterComponent_Impl::addToTertiaryNode(node);
425 if (ok) {
426 LOG(Info, "Setting Generator Heat Source Type to 'HotWater' for " << briefDescription());
427 this->setGeneratorHeatSourceType("HotWater");
428 return true;
429 }
430 } else {
431 LOG(Info,
432 "Tertiary Loop (Generator Loop) connections can only be placed on the Demand side (of a Heating Loop), for " << briefDescription());
433 }
434 }
435 return false;
436 }
437
438 bool ChillerAbsorption_Impl::removeFromTertiaryPlantLoop() {
439 // Disconnect the component

Callers 10

addToNodeMethod · 0.95
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 5

demandComponentMethod · 0.80
modelMethod · 0.45
plantLoopMethod · 0.45
handleMethod · 0.45

Tested by 8

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36