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

Method addToTertiaryNode

src/model/CentralHeatPumpSystem.cpp:172–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171
172 bool CentralHeatPumpSystem_Impl::addToTertiaryNode(Node& node) {
173 auto _model = node.model();
174 auto t_plantLoop = node.plantLoop();
175
176 // Only accept adding to a node that is on a supply side of a plant loop
177 // Since tertiary here = heating loop
178 if (t_plantLoop) {
179 if (t_plantLoop->supplyComponent(node.handle())) {
180 // Call base class method which accepts both supply and demand
181 return WaterToWaterComponent_Impl::addToTertiaryNode(node);
182 } else {
183 LOG(Info, "Cannot connect the tertiary (=heating) loop to the demand side for " << briefDescription());
184 }
185 }
186 return false;
187 }
188
189 boost::optional<ModelObjectList> CentralHeatPumpSystem_Impl::chillerHeaterModuleList() const {
190 return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_CentralHeatPumpSystemFields::ChillerHeaterModuleListName);

Callers 1

addToNodeMethod · 0.95

Calls 4

supplyComponentMethod · 0.80
modelMethod · 0.45
plantLoopMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected