Hello everyone, greetings!
I recently installed FEniCS.In my work ,I convert .msh file to xdmf format,which is readable by FEniCS.
However, the cell type is ‘tetra10’.
The following code was used to convert a mesh from .msh format to xdmf format. meshio.write(“mesh.xdmf”,meshio.Mesh(points = msh.points,cells = {‘tetra10’:msh.cells_dict[‘tetra10’]}))
After that,I use the following code to read ‘mesh.xdmf’
with XDMFFile(“mesh.xdmf”) as infile :
infile.read(mesh) error message :Unable to recognise cell type,Unknown value “tetrahedron_10”.
There is, if you read your mesh in with meshio, you can remove the cell connectivity corresponding to the higher order nodes. If you look at cell_dict of tet10, lets call it cells, cells[:,:4] should remove all higher order data.