Problem with stitchMesh: it does not work in meshes with several common patches
1 Attachment(s)
Hello,
I am using mergeMeshes and stitchMesh to merge several meshes and to get rid of internal faces, as they are not supported by OpenFOAM. Everything works fine since the patches I am stitching are perfectly conformal and the geometries very simple. However, when I try to stitch more than one pair of patches in the same merged mesh I get the following error (please see the explanatory chart I have attached): Code:
--> FOAM FATAL ERROR: Thank you very much for your time. Kind regards, Arnau. Chart of mergeMeshes and stitchMesh process: Attachment 22858 |
Hi,
unfortunately I can't help you yet. Just for your information, the same thing has lately been observed and discussed in other threads: http://www.cfd-online.com/Forums/ope...tml#post183551 http://www.cfd-online.com/Forums/ope...tml#post418651 http://www.cfd-online.com/Forums/ope...mesh-used.html Maybe you could provide your test case or a minimal working example too. Good luck! Cutter |
Solution
Thank you very much, Cutter!
I found a way to work around this problem a couple of days ago (it works at least in OpenFOAM 2.1). I post it in case anybody else experiences the same problem: Do not ask my why, but for some reason, you have to run stitchMesh with the "-perfect" option. E.g.: Code:
stitchMesh -case {case_name} -overwrite -perfect {master_patch} {slave_patch} By the way, the files *Zones and meshModyfiers in ./constant/polyMesh can be the source of other errors, so do not forget to delete them after every stitchMesh. Besides I have observed that in some OpenFOAM versions all patches, both internal and boundary conditions, have to be defined in ./0 when you stitch meshes. Good luck! |
All times are GMT -4. The time now is 16:27. |