Hi, I am trying to convert a .vtu mesh file to the .xml format. has anyone done this already? NekMesh Doesn't have this feature, I tried implementing it myself, but am having some challenges that I need to work out with how vtk access's each cell. I am also gettting some errors like: Warning: degenerate tetrahedron, 3rd vertex is = 4.74539e-05 from face Any feedback would be of great help. ~Kurt -- Kurt Sansom
Hi Kurt, There is InputVTK.cpp in NekMesh which I think will do a similar thing to what you are trying to do. It does only work for 2D triangles, but by the looks of your warning message you have it working for tets. It is also setup for .vtk files but it is pretty easy to make the same module read .vtu and .vtk if they are processed in the same way. I also wouldn’t worry about that message. It is meant to detect flat tetrahedra, but because of the way its been coded it also complains for elements that are just small. We have been meaning to fix it for some time! However if you get the message for every tet in the mesh chances are something is wrong. Thanks Mike
On 25 Oct 2017, at 18:03, Kurt Sansom <kayarre@gmail.com> wrote:
Hi, I am trying to convert a .vtu mesh file to the .xml format. has anyone done this already? NekMesh Doesn't have this feature, I tried implementing it myself, but am having some challenges that I need to work out with how vtk access's each cell.
I am also gettting some errors like: Warning: degenerate tetrahedron, 3rd vertex is = 4.74539e-05 from face
Any feedback would be of great help.
~Kurt
-- Kurt Sansom _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Kurt Sansom
- 
                
                Turner, Michael