# How to perform region decomposition on unstructured grids？

**URL:** <https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 9, 2024, 2:06pm UTC](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621 "2024-12-09T14:06:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyubing](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lyubing](https://discourse.julialang.org/u/lyubing)\
**Post date:** [December 9, 2024, 2:06pm UTC](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621/1 "2024-12-09T14:06:55Z")

</div>

How to achieve domain decomposition of finite element mesh in Julia by calling the METIS library? Or what recommended packages can achieve this function？

 ![屏幕截图 2024-12-09 220453](https://global.discourse-cdn.com/julialang/original/3X/e/d/ed49cf6a1ef885df2b31dc9a23b05f85cdb0b133.jpeg)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [December 9, 2024, 2:17pm UTC](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621/2 "2024-12-09T14:17:04Z")

</div>

If you setup the element connectivity graph you can partition with `Metis.partition`, see [Metis.jl – Graph partitioning](https://github.com/JuliaSparse/Metis.jl?tab=readme-ov-file#graph-partitioning).

---

<div class="post-metadata">

**Author:** ![lyubing](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lyubing](https://discourse.julialang.org/u/lyubing)\
**Post date:** [December 9, 2024, 2:28pm UTC](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621/3 "2024-12-09T14:28:46Z")

</div>

Okay, thank you for your reply!

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [December 9, 2024, 2:48pm UTC](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621/4 "2024-12-09T14:48:56Z")

</div>

> <https://github.com/PetrKryslUCSD/FinEtoolsDDMethods.jl/blob/64fdc9d337190085c7ff414fbe224f99930a0acd/src/PartitionCoNCModule.jl#L216>
