[petsc-users] How to impose boundary conditions using DMDA

Fengwen Wang fwan at mek.dtu.dk
Sat Oct 27 01:02:26 CDT 2018


Dear Colleagues,


I use the finite element method to solve my problem in Petsc.


Mesh is defined as a  regular mesh using DMDA.  I have a special boundary condition which I  do not know how to impose it in Petsc.


In a 2D problem, the domain is unit size, two degrees of freedom per node (u, v). I would like impose the following boundary condition:


u(x=1) = -v ( y=1) and v(x=1 )= -u (y=1) .


How can I impose such a boundary condition in Petsc?


Thanks a lot.


Best regards

Fengwen



____________________________________________________
Senior Researcher
Department of Mechanical Engineering, DTU
Nils Koppels Allé
Building 404
2800  Kgs. Lyngby
fwan at mek.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181027/6d715692/attachment.html>


More information about the petsc-users mailing list