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

Method containingHVACComponent

src/model/FanVariableVolume.cpp:440–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438 }
439
440 boost::optional<HVACComponent> FanVariableVolume_Impl::containingHVACComponent() const {
441 // AirLoopHVACUnitarySystem
442 std::vector<AirLoopHVACUnitarySystem> airLoopHVACUnitarySystems = this->model().getConcreteModelObjects<AirLoopHVACUnitarySystem>();
443
444 for (const auto& airLoopHVACUnitarySystem : airLoopHVACUnitarySystems) {
445 if (boost::optional<HVACComponent> fan = airLoopHVACUnitarySystem.supplyFan()) {
446 if (fan->handle() == this->handle()) {
447 return airLoopHVACUnitarySystem;
448 }
449 }
450 }
451 return boost::none;
452 }
453
454 boost::optional<ZoneHVACComponent> FanVariableVolume_Impl::containingZoneHVACComponent() const {
455 // ZoneHVACFourPipeFanCoil

Callers

nothing calls this directly

Calls 3

modelMethod · 0.45
supplyFanMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected