Closed macumber closed 2 months ago
I'm working on a potential fix
i still see this problem, with interiors doors and windows, each subsurface is missing the outside boundary condition pointing to the other subsurface
I am using OS app 1.7.1+... with SDK 3.7.0
The geometry was created with floorspace within OpenStudio
Issue overview
Originally reported as an issue with FloorspaceJS translator at https://github.com/NREL/OpenStudio/issues/4670
@manuvarkey found the issue actually occurs in ModelMerger
Current Behavior
Adjacent Surfaces are matched after cloning in ModelMerger but adjacent SubSurfaces are not
Expected Behavior
Adjacent surfaces and SubSurfaces are matched after cloning in ModelMerger
Steps to Reproduce
Possible Solution
On going through the code for OpenStudio/src/model/ModelMerger.cpp, the following code segment was found dealing with setting adjacentSurface for Surface elements.
https://github.com/NREL/OpenStudio/blob/d2f0bdd21a70e6a9711f6da8f5aabecadc4a1a1c/src/model/ModelMerger.cpp#L349C1-L359C6
Best solution would be to implement a mergeSurface method that tracks the handles of sub surfaces too.
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
Incorrect simulation results