CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] stitchMesh, impossible to stitch two meshes (https://www.cfd-online.com/Forums/openfoam-meshing/253667-stitchmesh-impossible-stitch-two-meshes.html)

redfox1221 December 22, 2023 11:43

stitchMesh, impossible to stitch two meshes
 
Hello everybody,
I have a very large and complex stl object of which I want to make several simulations at different z-angles but doing snappyhexmesh multiple time is very expensive.
I come to the idea to split the mesh in two parts (external and internal) using a cylinder, rotate the internal mesh, merge the meshes and re do the simulation bypassing the snappy hex mesh part.
However after doing the mergeMeshes command the faces are considered walls and i need to use the stitch function to connect them.
Unfortunately i have this error:
Code:

stitchMesh -partial -toleranceDict toleranceDict -overwrite cylinder1 cylinder2
--> FOAM FATAL ERROR:
Duplicate point found in cut face. Error in the face cutting algorithm for global face 4(90670 94290 99836 97583) local face 4(1145 144 143 1146)
Slave size: 6400 Master size: 8700 index: 407.
Face: 6(69382 63526 66979 70500 69381 115836)

I also tryed the perfect option as suggested here https://www.cfd-online.com/Forums/op...ate-point.html but it says that it cannot found a points within the matching tolerance
Code:

stitchMesh -perfect -toleranceDict toleranceDict -overwrite cylinder1 cylinder2
--> FOAM FATAL ERROR:
Points on patch sides do not match to within tolerance 1.11957e-05

I am using the toleranceDict file in the constant folder but it seems that even if I increase the values the error stay the same like it is not using it.
I am using OF10, repo git here Github Repo with a prism to replicate the error, run with ./Allrun.

Any ideas on how to solve?


All times are GMT -4. The time now is 09:07.