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

Method addToNode

src/model/FanComponentModel.cpp:354–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 }
353
354 bool FanComponentModel_Impl::addToNode(Node& node) {
355 auto oaSystem = node.airLoopHVACOutdoorAirSystem();
356 auto airLoop = node.airLoopHVAC();
357
358 if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) {
359 if (StraightComponent_Impl::addToNode(node)) {
360 if (airLoop) {
361 SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get());
362 }
363 return true;
364 }
365 }
366
367 return false;
368 }
369
370 boost::optional<HVACComponent> FanComponentModel_Impl::containingHVACComponent() const {
371 auto t_handle = handle();

Callers

nothing calls this directly

Calls 6

supplyComponentMethod · 0.80
airLoopHVACMethod · 0.45
handleMethod · 0.45
componentMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected