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

Method addToNode

src/model/FanOnOff.cpp:313–321  ·  view source on GitHub ↗

Fan:OnOff can not be added to an AirLoopHVAC. It can only be contained within another HVAC Component, such as Unitary, ZoneHVAC, etc.

Source from the content-addressed store, hash-verified

311 // Fan:OnOff can not be added to an AirLoopHVAC.
312 // It can only be contained within another HVAC Component, such as Unitary, ZoneHVAC, etc.
313 bool FanOnOff_Impl::addToNode(Node& node) {
314 if (node.loop()) {
315 return false;
316 } else if (node.airLoopHVACOutdoorAirSystem()) {
317 return false;
318 } else {
319 return StraightComponent_Impl::addToNode(node);
320 }
321 }
322
323 boost::optional<HVACComponent> FanOnOff_Impl::containingHVACComponent() const {
324 // Process all types that might contain a FanOnOff object.

Callers

nothing calls this directly

Calls 2

loopMethod · 0.45

Tested by

no test coverage detected