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

Method remove

src/model/ThermalZone.cpp:1643–1675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>();

Callers 7

resetThermostatMethod · 0.45
combineSpacesMethod · 0.45
setUseIdealAirLoadsMethod · 0.45
removeSupplyPlenumMethod · 0.45
removeReturnPlenumMethod · 0.45

Calls 4

equipmentMethod · 0.95
zoneMixingMethod · 0.95
removeBranchForZoneMethod · 0.80
disconnectMethod · 0.45

Tested by

no test coverage detected