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

Method getAirflowNetworkSurface

src/model/SubSurface.cpp:1267–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1265 }
1266
1267 AirflowNetworkSurface SubSurface_Impl::getAirflowNetworkSurface(const AirflowNetworkComponent& surfaceAirflowLeakage) {
1268 boost::optional<AirflowNetworkSurface> result = airflowNetworkSurface();
1269 if (result) {
1270 boost::optional<AirflowNetworkComponent> leakageComponent = result->leakageComponent();
1271 if (leakageComponent) {
1272 if (leakageComponent->handle() == surfaceAirflowLeakage.handle()) {
1273 return result.get();
1274 } else {
1275 result->remove();
1276 }
1277 } else {
1278 result->remove();
1279 }
1280 }
1281
1282 return AirflowNetworkSurface(this->model(), surfaceAirflowLeakage.handle(), this->handle());
1283 }
1284
1285 boost::optional<AirflowNetworkSurface> SubSurface_Impl::airflowNetworkSurface() const {
1286 std::vector<AirflowNetworkSurface> myAFNSurfs =

Callers

nothing calls this directly

Calls 6

leakageComponentMethod · 0.80
handleMethod · 0.45
getMethod · 0.45
removeMethod · 0.45
modelMethod · 0.45

Tested by

no test coverage detected