Skip to content
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

Inconsistent elements in 3D mesh refinement #238

Open
softmattertheory opened this issue Jul 19, 2023 · 0 comments
Open

Inconsistent elements in 3D mesh refinement #238

softmattertheory opened this issue Jul 19, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@softmattertheory
Copy link
Contributor

softmattertheory commented Jul 19, 2023

Describe the bug
When refining a 3D mesh that has multiple grades present, elements in grades 1 and 2 may not be generated consistently.

To Reproduce
Import the attached mesh using VTKImporter, use a MeshRefiner to globally refine. A number of elements are generated that are inconsistent. A paradigmatic example is volume element 4 in the original mesh; this is split into 8 tetrahedra. An example of an inconsistent element is facet 56 (attached to pt 6) in the refined mesh, which doesn't belong any tetrahedra in the body. Rather, the tetrahedra attached to 56 are connected differently, and there's a missing facet as a result.

initial.vtk.zip

Expected behavior
Grade 2 elements should correspond to the facets of the tetrahedra generated.

Additional context
A workaround exists, which is to delete and regenerate lower grade elements after refinement as below. Obviously, selections etc will also need to be regenerated:

mesh.removegrade(2)
mesh.removegrade(1)
mesh.addgrade(1)
mesh.addgrade(2)
@softmattertheory softmattertheory added the bug Something isn't working label Jul 19, 2023
@softmattertheory softmattertheory self-assigned this Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant