CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   MergeMeshes and mesh format from 14x 15 (http://www.cfd-online.com/Forums/openfoam-bugs/62377-mergemeshes-mesh-format-14x-15-a.html)

pitmanm July 23, 2008 10:09

mergeMeshes seems to not work
 
mergeMeshes seems to not work in OF-1.5 on some simple test cases which work fine in OF-1.4.1. This may also apply to stitchMesh and some other mesh utilities.

When I make two very simple meshes with blockMesh and then try to "mergeMeshes" it errors with:

"Patch face has got a neighbour. Patch ID: 6. This is not allowed."

But these same cases merged fine in OF-1.4.1 (when starting from scratch with blockMeshDict. I cannot run OF-1.5 meshes in OF-1.4.1... that causes a memory error to appear).

The problem seems to be with the way the mesh is defined and handled in OF-1.5 (differently to OF-1.4.x)... which also would explain why I can't run 1.4.x meshes in 1.5 and vice-versa.

Has anyone else encountered these issues? I have tried my best to get in there and fix it but just don't seem to be getting anywhere at the moment.

Any advice on this issue would be greatly appreciated.

Regards, Mark

lgarriso July 25, 2008 15:19

I was not able to use mergePat
 
I was not able to use mergePatchPairs in 1.5. It told me that it wasn't supported, although it still appears in the documentation.

andersking July 27, 2008 01:15

I think I have fixed it - seem
 
I think I have fixed it - seems to work after a simple test anyway.
mergePolyMesh.C now only adds neighbours if the face isn't on a patch. Could someone who knows more about the internals check that this is the correct fix - Also, I haven't checked any changes to Zones/Regions.

Cheers
Andrew

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif mergePolyMesh.C.diff

pitmanm July 28, 2008 20:59

Thanks Andrew! That seems to
 
Thanks Andrew! That seems to have done the trick.

bastil September 23, 2008 15:48

I can report the same behaviou
 
I can report the same behaviour for stitchMesh. I tried the wiki-testcase (http://openfoamwiki.net/index.php/Im...ith_interfaces) with both 1.5 and 1.4.1 and it works with 1.4.1. but not with 1.5.

alexm September 24, 2008 10:09

yes, me too. After successfu
 
yes, me too.
After successfully merging a pair of meshes with OF-1.5 (i've patched and recompiled mergeMeshes - Thanks for this patch!), stitching ended with "Patch face has got a neighbour This is not allowed."

andersking September 24, 2008 10:50

Hi, I think there is a number
 
Hi,
I think there is a number of these 'neighbour' bugs still hanging around, stichMesh (I think) uses the polytopochanger libraries to adjust the mesh.

see
http://www.cfd-online.com/OpenFOAM_D.../126/9192.html

unfortunately I haven't got the time (or code familiarity) at the moment to chase all of these up.

Cheers
Andrew

bastil November 19, 2008 08:53

I am wondering if this problem
 
I am wondering if this problem has been fixed? Does it work for the current git-version?

Regards

andersking November 20, 2008 02:08

Hi, I don't think so. I've lo
 
Hi,
I don't think so. I've looked through the changes in the git history and the only changes are those in these two threads.

It's still a bit beyond my capabilities, and I haven't had a chance to investigate further.

Regards,
Andrew

srikara June 18, 2009 07:35

stitchMesh problem
 
Hi foamers,
I am trying to merge two meshes into one using the stitchMesh option. But I get the message:
"Patch face has got a neighbour. Patch ID: 6. This is not allowed."
Does anybody have an idea how to solve this problem?

Regards,
Srikara

hansel June 23, 2009 16:41

I was having the same problem with mergeMesh and the patch fixed the problem. I just download OF1.5 about a month ago, and I see that this patch has been out for almost a year. Is there a site for patches / updates to OF that I don't know about?

mattijs June 24, 2009 08:13

I reinstated the old stitchMesh functionality just now. I've tested it on a few simple cases.

hansel June 24, 2009 11:34

Quote:

Originally Posted by mattijs (Post 220332)
I reinstated the old stitchMesh functionality just now. I've tested it on a few simple cases.

Thanks.. Does that mean it's in the 1.5 release or the 1.5-dev release? (or something else?)

mattijs June 24, 2009 11:59

It is in the 1.5.x git repository.

hansel July 4, 2009 00:55

It worked on my case. Thanks!


All times are GMT -4. The time now is 21:40.