On Mon, Dec 22, 2025 at 5:46 AM liluo <[email protected]> wrote:

> Dear PETSc developers,
>
>
> I’m using DMPlex to manage an unstructured mesh. However, in my case, the
> input mesh is actually a structured tetrahedral mesh, and its geometric
> domain is just a simple box.
>
>
> Is there any PETSc functionality or recommended approach to obtain a
> partition similar to what DMDA provides—i.e., a simple Cartesian block
> partition—when working with such a mesh in DMPlex?
>
> Any guidance or best practices would be greatly appreciated.
>

This is trivial in 2D because triangles nicely tile the box, but in 3D
tetrahedra are harder to handle.I can see three avenues:

1) Manually

You can use PlexPartitioner type user, which allows you to explicitly
indicate the cell numbers that go to each process. This is probably more
work than you want.

2) Mesh Partitioner + Refinement

You can run a partitioner on a small mesh, for which they are pretty good,
and then refine that. This is mostly what I do.

3) New algorithm

Amal Timalsina published a nice algorithm for converting hexes to tets, so
you could create a hex mesh that is partitioned exactly as you want, and
then convert it to tets, but this would mean writing new code.

Why are you using tets instead of hexes for this problem?

  Thanks,

      Matt


> Thank you!
>
>
> Bests,
>
> Li Luo
>
> <https://urldefense.us/v3/__https://www.fst.um.edu.mo/personal/liluo/__;!!G_uCfscf7eWS!a-Z3XuBEDtS9pyiXP2bJDeQK-wotmIUURxFJ-UithWms0lkQHP3QChyD8EVvLS3vBWbOf0dk5FLjRGs29VHW3w$>
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!a8JIUtZ9kWgwf5HLe7vrUozP6RnDa-KxLqpAyxrAnKFhl_wgCNxF1SgnsC3wHJFY61YTVZF3nYa7ruCuM9mC$
  
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!a8JIUtZ9kWgwf5HLe7vrUozP6RnDa-KxLqpAyxrAnKFhl_wgCNxF1SgnsC3wHJFY61YTVZF3nYa7riP_iZ-P$
 >

Reply via email to