(Deleted) dolfin-convert .msh .xml error


84
views
0
5 weeks ago by

Hello everyone,

I'm facing a problem with the dolfin-convert command. I generated a mesh in GMSH with some physical and surface regions, saved it as a .msh and then tried to convert it via "dolfin-convert <name>.msh <name>.xml" in the Terminal (Ubuntu). That used to work. But now I'm getting the following error message:

Converting from Gmsh format (.msh, .gmsh) to DOLFIN XML format
Expecting 815 vertices
Found all vertices
Expecting 1785 cells
Found all cells
Traceback (most recent call last):
  File "/home/rebecca/anaconda3/bin/dolfin-convert", line 132, in <module>
    main(sys.argv[1:])
  File "/home/rebecca/anaconda3/bin/dolfin-convert", line 79, in main
    meshconvert.convert2xml(ifilename, ofilename, iformat=iformat)
  File "/home/rebecca/anaconda3/lib/python2.7/site-packages/dolfin_utils/meshconvert/meshconvert.py", line 1304, in convert2xml
    convert(ifilename, XmlHandler(ofilename), iformat=iformat)
  File "/home/rebecca/anaconda3/lib/python2.7/site-packages/dolfin_utils/meshconvert/meshconvert.py", line 1325, in convert
    gmsh2xml(ifilename, handler)
  File "/home/rebecca/anaconda3/lib/python2.7/site-packages/dolfin_utils/meshconvert/meshconvert.py", line 495, in gmsh2xml
    index = nodes_as_facets[tuple(nodes)]
KeyError: (184, 340, 667)
Aborted (core dumped)


I searched for similar solutions online but couldn't find anything that would apply to this. Does anyone have an idea what that means and to fix it?

Thanks in advance.

Community: FEniCS Project
Could you please post your .geo file? Right now I think there is a problem with your facet geometry. Either overlapping facets or repeating facet markers.
written 5 weeks ago by Navid Mirzaei  
This is it (imported from a .step file):
written 5 weeks ago by Rebecca Pflanze  
Do you have an idea what's wrong there? Sorry for asking again, I'm just still kind of stuck there...
written 4 weeks ago by Rebecca Pflanze  
Sorry for the late reply. I ran your code on my comouter without the .step file and meshed it. It is a box with an arc in it. I tried dolfin-convert and everything ran smoothly. So it is either a problem with your .step file or your dolfin version.
written 4 weeks ago by Navid Mirzaei  
Ok, that's good to know. Thanks a lot!
written 4 weeks ago by Rebecca Pflanze  
Please login to add an answer/comment or follow this question.
The thread is closed. No new answer/comment may be added.

Similar posts:
Search »
  • Nothing matches yet.