more than two regions to join using stitchMesh partial or perfect option
It seems when attaching a mesh using partial option there can be only one such interface and it must be the last one in the joining sequence.
I have created a rather simple case made of three cylinders which I want to join to make a single pipe. The cylinders are meshed completely the same. The only difference is they are offset axially by their respective heights.
When I merge them and stitch them using perfect option, everything goes smoothly. When the first interface is stitched as perfect and the second one as partial, no problems rise. But when the first stitching is partial and the second one perfect, the second one is not performed resulting in an error:
--> FOAM FATAL ERROR:
Master or slave face zone contain no faces. Please check your mesh definition.
From function void slidingInterface::checkDefinition()
in file slidingInterface/slidingInterface.C at line 97.
Has anyone encountered this weird behaviour of stitchMesh utility when applied to join more than two meshes?
Is there a way out?
I hope the attached case might help to solve the puzzle. Just run the Allrun script to see the error in the log.stitchMesh_2 file.
I can reproduce this problem (with/without the -partial option) and have reported a bug at:
Greetings to all!
I was browsing the list of bugs still open at OpenFOAM's bug tracker, when I spotted the bug report that points to this thread.
I gave the case a try and reproduced the same error. But I applied the solution I had found some time ago here: http://www.cfd-online.com/Forums/ope...tml#post433137 post #10 - and attached is the result.
It can stitch the 3 meshes just fine, as long as the file "constant/polyMesh/meshModifiers" is removed between stitches.
In addition, the attached case also demonstrates how to use my own little utility stitchMeshMultiPatch: https://github.com/wyldckat/stitchMeshMultiPatch
Thank you very much, that just solved the problem!
|All times are GMT -4. The time now is 12:39.|