# Create a 3D fault model using Pylith and Gmsh

**URL:** <https://community.geodynamics.org/t/create-a-3d-fault-model-using-pylith-and-gmsh/2570>\
**Category:** PyLith\
**Tags:** event\
**Created:** [September 12, 2022, 9:36am UTC](https://community.geodynamics.org/t/create-a-3d-fault-model-using-pylith-and-gmsh/2570 "2022-09-12T09:36:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yali](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@Yali](https://community.geodynamics.org/u/Yali)\
**Post date:** [September 12, 2022, 9:36am UTC](https://community.geodynamics.org/t/create-a-3d-fault-model-using-pylith-and-gmsh/2570/1 "2022-09-12T09:36:13Z")

</div>

I want to know whether the Pylith supports Gmsh to create a 3D fault model. If it works, please provide a simple example for reference. Thank you for your help.

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [September 12, 2022, 7:19pm UTC](https://community.geodynamics.org/t/create-a-3d-fault-model-using-pylith-and-gmsh/2570/2 "2022-09-12T19:19:08Z")

</div>

PyLith v3 supports importing 2D and 3D meshes with and without faults from Gmsh. We do not yet have a simple example in the documentation. The procedure is similar to other mesh generation tools. You can find an example Python script at [`tests/fullscale/linearelasticity/faults-3d/generate_gmsh.py`](https://github.com/geodynamics/pylith/blob/main/tests/fullscale/linearelasticity/faults-3d/generate_gmsh.py).
