Fix mesh: Bad mesh, cannot continue.

Min Zhang's picture
Submitted by Min Zhang on Wed, 07/10/2019 - 20:32

I used the following command in OpenFOAM to get the stl file.
surfaceMeshTriangulate -patches '(walls patch2 patch3)' walls_new.stl

I have no idea about this error. What should I do?
Mesh walls_0: 2 mesh elements have more than 5 neighbors
ERROR on proc 0: Fix mesh: Bad mesh, cannot continue. Possibly corrupt elements with too many neighbors. Remedies:
- You can use the 'element_exclusion_list' feature to remove elements with too many neighbors and elements with angles below t\
he hard limit
- If you know what you're doing, you can alternatively also try to change the definition of SurfaceMeshBase in tri_mesh.h and\
recompile (../surface_mesh_I.h:611)
srun: error: nid00014: task 0: Exited with exit code 255

Thanks!

Min Zhang's picture

Min Zhang | Fri, 07/12/2019 - 03:16

Then I found this post and I tried:
https://www.cfdem.com/forums/elementexclusionlist-write

This is the new ERROR message:
Mesh walls_0: 80 mesh elements have more than 5 neighbors
ERROR on proc 0: Fix mesh: Bad mesh, cannot continue. Possibly corrupt elements with too many neighbors.

The mesh file "walls_new.stl" is the same as before. But I don't know why this time I have much more bad mesh elements.

chow2003 | Fri, 07/12/2019 - 14:52

I think its better to use meshlab to repair your mesh files