CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Mesh Utilities (
-   -   mergeMeshes (

Pascal_doran October 30, 2010 17:24

Hi all,

I try to merge 4 identical (in size) meshes with mergeMeshes. The interfaces match perfectly. Mesh #1 and mesh #2 merge perfectly. Then I use stitchMesh and renumberMesh. Everything works perfectly. Mesh #3 and mesh #4 merge perfectly. But, mesh #1 and mesh #3 do not merge :


Illegal zoneID 1 for face 2675997

    From function resetZones(const polyMesh&, polyMesh&, labelListList&labelListList&, labelListList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 1587.

FOAM aborting

each mesh has 450 000 cells. The final mesh should have 1 800 000 cells.

Any advises?

sebastian November 9, 2010 12:07

Hi Pascal!

Could you solve this? I have got the same problem.


Pascal_doran November 9, 2010 12:28

Hi Sebastian,

No... By the way which version you have? The error message I got was with OF 1.6, but everything worked fine with OF 1.6.x.



sebastian November 10, 2010 03:52

Hi Pascal,

well, okay. I am using 1.6. But I think I can solve that problem on a different way. Anyway, thanks :)

Best Regards,

kalle November 23, 2010 07:30


I ran into the same error... went away by removing faceZones files in polyMesh/

That sucks a bit since I need those zones.... and strange thing is that other meshes I joined to the same mesh contained both cell- and faceZones without causing trouble... could not see any reason why this particular mesh could not contain faceZones.


Above comment concerned OF 17.0. Repeating exactly the same thing in OF 1.5-dev gave no such errors.
Before mergeMeshes all mesh parts were prepared in 1.7.0 using fluent3DmeshToFoam and setSet and setsToZones. Only 1.5-dev could take it from there it seems.
I did not try other versions.
In cases 1.7.0 could merge with *Zones, they got randomly mixed up.

Attesz February 29, 2012 12:59

Hi, I got the same problem, did you find a solution for it guys?


All times are GMT -4. The time now is 18:02.