[petsc-users] Question about DMDA BOUNDARY_CONDITION set

Wenbo Zhao zhaowenbo.npic at gmail.com
Mon Mar 20 09:39:08 CDT 2017


Hi all.

I have a mesh is like below

1  2  3
4  5  6
7  8  9

I use DACreate2d to create mesh partition.

In my case, I have an rotation boundary condition. The whole mesh is like
below

9 8 7   3 6 9
6 5 4   2 5 8
3 2 1   1 4 7

7 4 1   1 2 3
8 5 2   4 5 6
9 6 3   7 8 9

It means that cell 2 near the top boundary are connected with cell 4 near
the left boundary, cell 3 with cell 7.

How can I set boundary condition or set my matrix?

I am looking forward for your help!

BEST,

Wenbo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170320/68f79a3b/attachment.html>


More information about the petsc-users mailing list