Hi everyone.
I’m trying to read a mesh generated by Ansys in FEniCSx. The mesh is in .msh. I change the format with
meshio convert fluent.msh venturi_1600.xdmf
but when I try to open
import dolfinx
##########################################################################################################3
# Read the mesh
with dolfinx.io.XDMFFile(MPI.COMM_WORLD, "venturi_1600.xdmf", "r") as xdmf:
domain = xdmf.read_mesh(name='Grid')
I obtain
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
Cell In[2], line 5
1 import dolfinx
4 with dolfinx.io.XDMFFile(MPI.COMM_WORLD, "venturi_1600.xdmf", "r") as xdmf:
----> 5 domain = xdmf.read_mesh(name='Grid')
7 tdim = domain.topology.dim
8 tree = dolfinx.geometry.BoundingBoxTree(domain, tdim)
File /usr/lib/petsc/lib/python3/dist-packages/dolfinx/io/utils.py:154, in XDMFFile.read_mesh(self, ghost_mode, name, xpath)
152 def read_mesh(self, ghost_mode=GhostMode.shared_facet, name="mesh", xpath="/Xdmf/Domain") -> Mesh:
153 """Read mesh data from file"""
--> 154 cell_shape, cell_degree = super().read_cell_type(name, xpath)
155 cells = super().read_topology_data(name, xpath)
156 x = super().read_geometry_data(name, xpath)
RuntimeError: Cannot recognise cell type. Unknown value: mixed
but the mesh has a unique element (Quadrilateral).
I can export the mesh with different formats:
The mesh is in this folder:
Does anyone has a idea to solve?
Thank you so much!