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

Method addToNode

src/model/FanConstantVolume.cpp:163–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 bool FanConstantVolume_Impl::addToNode(Node& node) {
164 auto oaSystem = node.airLoopHVACOutdoorAirSystem();
165 auto airLoop = node.airLoopHVAC();
166
167 if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) {
168 if (StraightComponent_Impl::addToNode(node)) {
169 if (airLoop) {
170 SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get());
171 }
172 return true;
173 }
174 }
175
176 return false;
177 }
178
179 std::vector<openstudio::IdfObject> FanConstantVolume_Impl::remove() {
180 return StraightComponent_Impl::remove();

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