Two crack plugin issues
I appear to have found two problems with the crack plugin. Firstly, the crack plugin can intermittently disconnect elements from the mesh. Secondly, it appears that the elements of the new discrete element produced by the crack plugin to represent one of the sides of crack do not exist, at least as far as the gmsh::model::mesh::GetElement() function is concerned.
To demonstrate these issues, I have attached a msh file prior to calling the crack plugin, which was produced from a model consisting of a surface embedded in a volume, along with some source code that:
- prior to cracking, checks whether all surface elements are faces of volume tetrahedral elements (they are found to be, as expected due to embedding)
- cracks the surface
- then checks whether all surface elements are faces of volume tetrahedral elements (two surface elements on the original surface are found not to be, and when attempting to do the check for the discrete entity created by the crack plugin corresponding to the other crack side, gmsh::model::mesh::getElement() throws an error stating that the discrete entity's element tags are unknown).