Hello everyone, greetings!
I recently installed FEniCS. In my work, I need to convert .stl file to xdmf format, which is readable by FEniCS.
The following code was used to convert a mesh from .stl format to xdmf format but I am getting an error:
meshio.write(“mesh.xdmf”,meshio.Mesh(points = msh.points,cells = {‘tetra’:msh.cells_dict[‘tetra’]}))
error message:KeyError: ‘tetra’
Other methods of switching formats of comsol to xdmf are also needed
Could you please help me to resolve this issue?
Thank you,
-Xiao Li