<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 20, 2017 at 2:39 PM, Wenbo Zhao <span dir="ltr"><<a href="mailto:zhaowenbo.npic@gmail.com" target="_blank">zhaowenbo.npic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all.<div><br></div><div>I have a mesh is like below</div><div><br></div><div>1  2  3</div><div>4  5  6</div><div>7  8  9</div><div><br></div><div>I use DACreate2d to create mesh partition.</div><div><br></div><div>In my case, I have an rotation boundary condition. The whole mesh is like below</div><div><br></div><div>9 8 7   3 6 9</div><div>6 5 4   2 5 8</div><div>3 2 1   1 4 7</div><div><div><br></div><div>7 4 1   1 2 3</div><div>8 5 2   4 5 6</div><div>9 6 3   7 8 9</div></div><div><br></div><div>It means that cell 2 near the top boundary are connected with cell 4 near the left boundary, cell 3 with cell 7.</div></div></blockquote><div><br></div><div>It looks like the above is the best way to do this right now, namely replicate your grid four times, and use</div><div>periodic boundary conditions. Otherwise, you would be stuck writing the routine for local-to-global mappings</div><div>enforcing these conditions by hand.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>How can I set boundary condition or set my matrix?<br></div><div><br></div><div>I am looking forward for your help!</div><div><br></div><div>BEST, </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Wenbo</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>