| 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; |