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

Method setSurfacePropertyOtherSideConditionsModel

src/model/Surface.cpp:951–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949 }
950
951 bool Surface_Impl::setSurfacePropertyOtherSideConditionsModel(const SurfacePropertyOtherSideConditionsModel& otherSideModel) {
952 boost::optional<Surface> adjacentSurface = this->adjacentSurface();
953 if (adjacentSurface) {
954 resetAdjacentSurface();
955 }
956
957 // this is basically testing if surface is in same model as this
958 bool test = this->setPointer(OS_SurfaceFields::OutsideBoundaryConditionObject, otherSideModel.handle());
959 if (test) {
960 test = this->setString(OS_SurfaceFields::OutsideBoundaryCondition, "OtherSideConditionsModel");
961 OS_ASSERT(test);
962 this->assignDefaultSunExposure();
963 this->assignDefaultWindExposure();
964 }
965 return test;
966 }
967
968 void Surface_Impl::resetSurfacePropertyOtherSideConditionsModel() {
969 bool test;

Callers 4

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 6

adjacentSurfaceMethod · 0.95
setPointerMethod · 0.45
handleMethod · 0.45
setStringMethod · 0.45

Tested by 4

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36