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

Method thermalZone

src/model/ZoneHVACComponent.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 boost::optional<ThermalZone> ZoneHVACComponent_Impl::thermalZone() const {
71 auto thisObject = this->getObject<ModelObject>();
72 for (const auto& thermalZone : model().getConcreteModelObjects<ThermalZone>()) {
73 std::vector<ModelObject> equipment = thermalZone.equipment();
74
75 if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
76 return thermalZone;
77 }
78 }
79 return boost::none;
80 }
81
82 //boost::optional<Connection> ZoneHVACComponent_Impl::returnPlenumOutletNodeConnection() const {
83 // auto m = model();

Callers 2

removeFromThermalZoneMethod · 0.95
addToNodeMethod · 0.95

Calls 3

beginMethod · 0.80
equipmentMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected