# What meshes are supported?

**URL:** <https://fenicsproject.discourse.group/t/what-meshes-are-supported/10689>\
**Category:** mesh\
**Created:** [March 15, 2023, 12:10pm UTC](https://fenicsproject.discourse.group/t/what-meshes-are-supported/10689 "2023-03-15T12:10:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [March 15, 2023, 12:39pm UTC](https://fenicsproject.discourse.group/t/what-meshes-are-supported/10689/2 "2023-03-15T12:39:53Z")

</div>

See for instance:  
[https://docs.fenicsproject.org/dolfinx/v0.6.0/python/demos/demo\_gmsh.html](https://docs.fenicsproject.org/dolfinx/v0.6.0/python/demos/demo_gmsh.html)  
[https://jsdokken.com/dolfinx-tutorial/chapter3/subdomains.html?highlight=read\_from\_msh#read-in-msh-files-with-dolfinx](https://jsdokken.com/dolfinx-tutorial/chapter3/subdomains.html?highlight=read_from_msh#read-in-msh-files-with-dolfinx)

> **[Using the GMSH Python API to generate complex meshes](https://jsdokken.com/src/tutorial_gmsh.html)**
>
> Personal webpage

[https://jsdokken.com/dolfinx-tutorial/chapter3/em.html](https://jsdokken.com/dolfinx-tutorial/chapter3/em.html)

> [@How to extract and use physical labels from GMSH surfaces on FEniCS (2D mesh)](https://fenicsproject.discourse.group/t/how-to-extract-and-use-physical-labels-from-gmsh-surfaces-on-fenics-2d-mesh/2269/5):
>
> @AMM Secondly, writing your mesh to xdmf as described in the next snippets works for me: import meshio msh = meshio.read("amm.msh") meshio.write("mesh.xdmf", meshio.Mesh(points=msh.points, cells={"triangle": msh.cells["triangle"]})) meshio.write("mf.xdmf", meshio.Mesh(points=msh.points, cells={"triangle": msh.cells["triangle"]}, cell\_data={"triangle": {"name\_to\_read": msh.cell\_data["triangle"]["gmsh:physical"]}})) from dolfin import \* mesh = Mesh() with XD…

and various other posts explaining how to use GMSH with DOLFINx.

---

_[View the full topic](https://fenicsproject.discourse.group/t/what-meshes-are-supported/10689)._
