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

Method getAirflowNetworkSurface

src/model/Surface.cpp:1966–1981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1964 }
1965
1966 AirflowNetworkSurface Surface_Impl::getAirflowNetworkSurface(const AirflowNetworkComponent& surfaceAirflowLeakage) {
1967 boost::optional<AirflowNetworkSurface> result = airflowNetworkSurface();
1968 if (result) {
1969 boost::optional<AirflowNetworkComponent> leakageComponent = result->leakageComponent();
1970 if (leakageComponent) {
1971 if (leakageComponent->handle() == surfaceAirflowLeakage.handle()) {
1972 return result.get();
1973 } else {
1974 result->remove();
1975 }
1976 } else {
1977 result->remove();
1978 }
1979 }
1980 return AirflowNetworkSurface(this->model(), surfaceAirflowLeakage.handle(), this->handle());
1981 }
1982
1983 bool Surface_Impl::setAdjacentFoundation(const FoundationKiva& kiva) {
1984 bool result = this->setPointer(OS_SurfaceFields::OutsideBoundaryConditionObject, kiva.handle());

Callers 3

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 6

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

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36