createBaffles/mergeOrSplitBaffles does not duplicate points correctly
Summary
mergeOrSplitBaffles can duplicate points. It uses the underlying localPointRegion
class to determine which faces should use what duplicate of the point. This class does not correctly mark points if a cell is fully surrounded by baffles.
Steps to reproduce
Tested this only with a hacked version of extrudeMesh that does extrusion of a faceZone with internal and boundary faces. Not sure if the createBaffles/mergeOrSlitBaffles route has the same effect.
Example case
What is the current bug behaviour?
Incorrect topology since face which is point connected to a duplicated point does not get renumbered to use the new duplicated point.
What is the expected correct behavior?
2x2x1 cells with bottom left cell (cell 0) having cells on its two internal faces and one boundary face.
Relevant logs and/or images
Environment information
- OpenFOAM version :v2112
Possible fixes
Problem is in the localPointRegion class where it walks out the per-region point connectivity. Its set of 'candidate faces' does not include the faces that become blockages so if another face only uses points from those it will not be detected as needing to use a duplicate.