| 1641 | } |
| 1642 | |
| 1643 | std::vector<IdfObject> ThermalZone_Impl::remove() { |
| 1644 | auto m = model(); |
| 1645 | |
| 1646 | auto thermalZone = getObject<ThermalZone>(); |
| 1647 | for (auto& airloop : airLoopHVACs()) { |
| 1648 | airloop.removeBranchForZone(thermalZone); |
| 1649 | } |
| 1650 | |
| 1651 | auto comps = this->equipment(); |
| 1652 | for (auto& comp : comps) { |
| 1653 | comp.remove(); |
| 1654 | } |
| 1655 | |
| 1656 | //detach it from the zone air node |
| 1657 | auto airNode = zoneAirNode(); |
| 1658 | airNode.disconnect(); |
| 1659 | airNode.remove(); |
| 1660 | |
| 1661 | // remove port lists |
| 1662 | returnPortList().remove(); |
| 1663 | inletPortList().remove(); |
| 1664 | exhaustPortList().remove(); |
| 1665 | |
| 1666 | // remove ZoneHVACEquipmentList: handled already by the fact that it's a child of this ParentObject |
| 1667 | // zoneHVACEquipmentList().remove(); |
| 1668 | |
| 1669 | // remove ZoneMixing objects |
| 1670 | for (auto& mixing : this->zoneMixing()) { |
| 1671 | mixing.remove(); |
| 1672 | } |
| 1673 | |
| 1674 | return HVACComponent_Impl::remove(); |
| 1675 | } |
| 1676 | |
| 1677 | void ThermalZone_Impl::disconnect() { |
| 1678 | auto mo = this->getObject<ModelObject>(); |
no test coverage detected