View Issue Details

IDProjectCategoryView StatusLast Update
0004244OpenFOAMBugpublic2025-06-14 12:52
Reportergeth03 Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version12 
Summary0004244: Enabling addLayers in snappyHexMesh breaks region splitting for non-conformal couples
DescriptionWhen enabling the addLayers option in the propeller tutorial, the checkMesh output shows that the mesh becomes a single region, instead of maintaining two disconnected regions as expected for proper non-conformal coupling (NCC). Without layer addition, two separate mesh regions are correctly identified.

example from the "propeller"-tutorial:

no addLayers:

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
   *Number of regions: 2
    The mesh has multiple regions which are not connected by any face.

Checking basic patch addressing...
                   Patch Faces Points
                   inlet 646 786
                  outlet 112 134
           outerCylinder 640 868
           propellerStem 2304 2500
            propellerTip 21649 27967
              nonCouple1 22416 22990
              nonCouple2 22416 22990
    nonConformalCyclic_on_nonCouple1 0 0
    nonConformalCyclic_on_nonCouple2 0 0
    nonConformalError_on_nonCouple1 0 0
    nonConformalError_on_nonCouple2 0 0

with addLayers:

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking basic patch addressing...
                   Patch Faces Points
                   inlet 694 836
                  outlet 112 134
           outerCylinder 640 868
           propellerStem 2304 2450
            propellerTip 21153 27332
              nonCouple1 22416 22993
              nonCouple2 22416 22993
    nonConformalCyclic_on_nonCouple1 0 0
    nonConformalCyclic_on_nonCouple2 0 0
    nonConformalError_on_nonCouple1 0 0
    nonConformalError_on_nonCouple2 0 0

Problem: The mesh now reports only one region, so the non-conformal interface is not maintained. This breaks the intended NCC setup.

Even with addLayers = true;, the mesh should remain split into two disconnected regions, with createBaffles, splitBaffles, and createNonConformalCouples operating correctly.
Steps To Reproduce1. Start from the tutorial: $FOAM_TUTORIALS/mesh/snappyHexMesh/propeller

2. Modify system/snappyHexMeshDict:
    Set addLayers true;
    In the addLayersControls section, add:

    layers
    {
        "(propeller).*"
        {
            nSurfaceLayers 1;
        }
    }

3. Run ./Allmesh

4. Run checkMesh
TagsNo tags attached.

Activities

geth03

2025-06-14 12:52

reporter   ~0013579

sorry, the correct path to the tutorial is: tutorials\incompressibleFluid\propeller

Issue History

Date Modified Username Field Change
2025-06-14 12:50 geth03 New Issue
2025-06-14 12:52 geth03 Note Added: 0013579