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

Method returnPlenum

src/model/ZoneHVACComponent.cpp:107–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 //}
106
107 boost::optional<AirLoopHVACReturnPlenum> ZoneHVACComponent_Impl::returnPlenum() const {
108 boost::optional<AirLoopHVACReturnPlenum> plenum;
109
110 auto node = inletNode();
111 if (node) {
112 auto mo = node->inletModelObject();
113 if (mo) {
114 auto pl = mo->optionalCast<PortList>();
115 if (pl) {
116 auto mo2 = pl->getImpl<detail::PortList_Impl>()->hvacComponent();
117 plenum = mo2.optionalCast<AirLoopHVACReturnPlenum>();
118 }
119 }
120 }
121
122 return plenum;
123 }
124
125 void ZoneHVACComponent_Impl::removeReturnPlenum() {
126 Model m = model();

Callers 5

removeMethod · 0.80
TEST_FFunction · 0.80
translateThermalZoneMethod · 0.80

Calls 3

inletNodeFunction · 0.85
hvacComponentMethod · 0.80
inletModelObjectMethod · 0.45

Tested by 1

TEST_FFunction · 0.64