| 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 |