-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renumbering nodes fails without error message #83
Comments
The function that fails, There is also the option to not renumber, by setting GmshDiscreteModel(mshfile; renumber=true, has_affine_map=nothing) One comment about CAD softwares is that, to my understanding, they do not produce water-tight meshes. This might be the issue you are having here. |
Sorry, I forgot to mention with I've had a look at Gmsh's API, and indeed, the wrapper swallows all exceptions, so neither you nor me can know what's going on without patching Gmsh. I'll try to open an issue in their tracker (if they let me create an account there, that is) and close this one. You are right about the CAD software. FreeCAD internally writes a |
This happens in the following situation: elemTypes, elemTags, nodeTags = gmsh.model.mesh.getElements(d)
nmin = minimum( minimum, elemTags )
nmax = maximum( maximum, elemTags )
ncells = sum([length(t) for t in elemTags])
if !( (nmax-nmin+1) == ncells)
gmsh.finalize()
error("Only consecutive elem tags allowed.")
end From the manual: so as I understand it, the The issue with your mesh would then seem to be that your cell ids are not contiguous, i.e your CAD generator is missing some ids (or deleting some of the cells without renumbering the remaining ones). It then makes sense that renumbering would solve this issue, but gmsh seems to have problems doing just that. |
I have a mesh file
test.unv
generated by FreeCAD, which internally also uses GMSH. If I try to load that file, I get this:Which is pretty unfortunate, as I would have expected an error message so that I know what I need to change to fix the file.
I have Julia 1.10.1 and GridapGmsh 0.7.2.
Any help is appreciated, so I attached the mesh file. However, you will have to remove the
.txt
ending that I had to add to make Github accept the upload:test.unv.txt
The text was updated successfully, but these errors were encountered: