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

Method addToTertiaryNode

src/model/HeatPumpPlantLoopEIRHeating.cpp:209–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 bool HeatPumpPlantLoopEIRHeating_Impl::addToTertiaryNode(Node& node) {
210
211 auto t_plantLoop = node.plantLoop();
212
213 // Only accept adding to a node that is on a demand side of a plant loop
214 // Since tertiary here = heat recovery loop (cooling)
215 if (t_plantLoop) {
216 if (t_plantLoop->demandComponent(node.handle())) {
217 // Call base class method which accepts both supply and demand
218 return WaterToWaterComponent_Impl::addToTertiaryNode(node);
219 } else {
220 LOG(Info,
221 "Tertiary Loop (Heat Recovery Loop) connections can only be placed on the Demand side (of a Cooling Loop), for " << briefDescription());
222 }
223 }
224 return false;
225 }
226
227 bool HeatPumpPlantLoopEIRHeating_Impl::removeFromSecondaryPlantLoop() {
228 // Disconnect the component

Callers 1

addToNodeMethod · 0.95

Calls 3

demandComponentMethod · 0.80
plantLoopMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected