# Save part of a mesh with a format readable by gmsh

**URL:** https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333
**Category:** ParaView Support
**Created:** [April 4, 2024, 10:21am UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333 "2024-04-04T10:21:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Boone](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@Boone](https://discourse.paraview.org/u/Boone)
#### Post date: [April 4, 2024, 10:21am UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333/1 "2024-04-04T10:21:28Z")

</div>

Hi all,

I analyze result with Paraview and would like to save the mesh used into 2 parts according to the results to later refine one of them. The 2 extracted meshes from my initial domain should in a readable format for gmsh. Is there a way of doing it?

Thanks a lot!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 4, 2024, 3:20pm UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333/2 "2024-04-04T15:20:29Z")

</div>

> [@Boone](#):
>
> should in a readable format for gmsh.

What format can gmsh read ?

---

<div class="post-metadata">

### Author: ![Boone](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@Boone](https://discourse.paraview.org/u/Boone)
#### Post date: [April 4, 2024, 3:36pm UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333/3 "2024-04-04T15:36:39Z")

</div>

gmsh can read .msh (favored option), .mesh, .stl and .vtk

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 4, 2024, 3:37pm UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333/4 "2024-04-04T15:37:33Z")

</div>

ParaView can save in .msh, .stl and .vtk, so try with .msh first, then .vtk.

---

<div class="post-metadata">

### Author: ![Boone](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@Boone](https://discourse.paraview.org/u/Boone)
#### Post date: [April 5, 2024, 7:09am UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333/5 "2024-04-05T07:09:38Z")

</div>

Thanks, using Paraview 5.12 I managed to load the .msh (with the GmshIO plugin). Now I would like to split it in two parts and save them separately in part1.msh and part2.msh.

Here is a small example: a coarse 3D mesh in the .msh format [tmp.msh](https://discourse.paraview.org/uploads/short-url/yQDtPJqMWZggHO9LKAJbwmqVh7w.msh) (1.2 MB)

 ![Sélection_654](https://discourse.paraview.org/uploads/default/original/2X/7/7efa1d10f0b37c40be327d78384f0f00fe08c665.png)

For instance I would like to save the bottom box is a bottom.msh file and the tube and top box in tube-top.msh

After clipping a part of my geometry, I use `Save Data` and I see multiple option to save the mesh (cgns, xmf, vtm, …) but I do not see the .msh. Can you help me with this?

Thanks a lot!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 5, 2024, 7:13am UTC](https://discourse.paraview.org/t/save-part-of-a-mesh-with-a-format-readable-by-gmsh/14333/6 "2024-04-05T07:13:33Z")

</div>

First you need to add a “Merge Blocks” filter so that your data is not composite but a single unstructured grid.

Then you can save in .msh format
