You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is an error in the conversion of gmsh meshes with tagged boundaries via physical lines/surfaces to dolfin XML. Consider the following unit square mesh, with boundary IDs 1 and 2:
After conversion with meshio-convert square.msh square.xml, the gmsh:geometrical and the gmsh:physical files will both contain a list of all vertices, dimension 2, with labels 0 in one file, and 1 in the other.
Expected result (when converted with dolfin-convert) is a facet_region file that contains the labels (0, 1, 2) for all 27 facets of the mesh, and dim=1.
Also, if <mesh_function type="uint"> was used rather than type="int", these files could be read by fenics' MeshFunction("size_t", ...) (instead of "int"). "uint" is more consistent, since "size_t" is used everywhere in the fenics documentation and dolfin-convert generates "uint".
line breaks are missing in the gmsh:geometrical|phyiscal.xml files.
Best wishes,
David
The text was updated successfully, but these errors were encountered:
I agree. It's more worthwhile making the XDMF conversion hassle-free. Apart from issue #260, how do you read physical groups in FEniCS from XDMF created by meshio? I know you're a FEniCS user yourself ;)
e: this is probably not the best place to discuss this.. I'll be following the discussion on the fenics slack, where the same question came up.
Hi,
there is an error in the conversion of gmsh meshes with tagged boundaries via physical lines/surfaces to dolfin XML. Consider the following unit square mesh, with boundary IDs 1 and 2:
meshio-convert square.msh square.xml
, thegmsh:geometrical
and thegmsh:physical
files will both contain a list of all vertices, dimension 2, with labels 0 in one file, and 1 in the other.Expected result (when converted with
dolfin-convert
) is afacet_region
file that contains the labels (0, 1, 2) for all 27 facets of the mesh, and dim=1.<mesh_function type="uint">
was used rather thantype="int"
, these files could be read by fenics'MeshFunction("size_t", ...)
(instead of "int"). "uint" is more consistent, since "size_t" is used everywhere in the fenics documentation anddolfin-convert
generates "uint".gmsh:geometrical|phyiscal.xml
files.Best wishes,
David
The text was updated successfully, but these errors were encountered: