BUG: PrimitivePatch::nInternalEdges includes non-manifold edges
Summary
The PrimitivePatch edge sorting should put internal edges (= edges connected to 2 faces) first, followed by boundary edges (= edges connected to 1 face). It also seems to order/include any edges with >2 faces into the nInternalEdges slice.
Steps to reproduce
See below.
Example case
- use ./Allrun to construct
- is a 2x2 cavity blockMesh with bottom left and top-right cell removed
What is the current bug behaviour?
The non-manifold edge with 4 patch faces gets reported as an internal edge.
See attached checkMesh hack
What is the expected correct behavior?
Relevant logs and/or images
Environment information
- OpenFOAM version : v2306
Possible fixes
Might have side effects for
- snappyHexMesh
- patch extrusion
so not to be fixed before v2306.