<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear Colleagues,</p>
<p><br>
</p>
<p>I use the finite element method to solve my problem in Petsc.</p>
<p><br>
</p>
<p>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.
<br>
</p>
<p><br>
</p>
<p>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:</p>
<p><br>
</p>
<p>u(x=1) = -v ( y=1) and v(x=1 )= -u (y=1) .</p>
<p><br>
</p>
<p>How can I impose such a boundary condition in Petsc?  <br>
</p>
<p><br>
</p>
<p>Thanks a lot. <br>
</p>
<p><br>
</p>
<p>Best regards</p>
<p>Fengwen<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font size="2">
<div class="PlainText">____________________________________________________<br>
Senior Researcher<br>
Department of Mechanical Engineering, DTU<br>
Nils Koppels Allé       <br>
Building 404    <br>
2800  Kgs. Lyngby <br>
fwan@mek.dtu.dk</div>
</font></div>
</div>
</div>
</div>
</div>
</body>
</html>