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

Method setPlantForAirTerminal

src/model/AirLoopHVAC.cpp:521–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519 }
520
521 bool AirLoopHVAC_Impl::setPlantForAirTerminal(HVACComponent& airTerminal, PlantLoop& plantLoop) {
522 std::vector<WaterToAirComponent> comps = airTerminal.model().getModelObjects<WaterToAirComponent>();
523
524 for (const auto& elem : comps) {
525 if (boost::optional<HVACComponent> comp = elem.containingHVACComponent()) {
526 if (comp.get() == airTerminal) {
527 return plantLoop.addDemandBranchForComponent(elem);
528 }
529 }
530 }
531 return false;
532 }
533
534 bool AirLoopHVAC_Impl::removeBranchForZone(ThermalZone& thermalZone) {
535 Model _model = model();

Callers

nothing calls this directly

Calls 4

modelMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected