<div dir="ltr"><br><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, Oct 28, 2018 at 12:18 PM Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>> wrote</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Matt,<br>
<br>
How difficult would it be to impose such boundary conditions with DMPlex? Presumably you just connect the mesh up "properly" and it is straightforward?<br></blockquote><div><br></div><div>If you figure out what topology is meant by this, it should not be hard. However, I</div><div>cannot figure out what they mean right now.</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">
Barry<br>
<br>
<br>
> On Oct 27, 2018, at 10:23 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br>
> <br>
> On Sat, Oct 27, 2018 at 2:02 AM Fengwen Wang <<a href="mailto:fwan@mek.dtu.dk" target="_blank">fwan@mek.dtu.dk</a>> wrote:<br>
> Dear Colleagues,<br>
> <br>
> <br>
> <br>
> I use the finite element method to solve my problem in Petsc.<br>
> <br>
> <br>
> <br>
> 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>
> <br>
> <br>
> <br>
> 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:<br>
> <br>
> <br>
> <br>
> u(x=1) = -v ( y=1) and v(x=1 )= -u (y=1) .<br>
> <br>
> <br>
> <br>
> How can I impose such a boundary condition in Petsc? <br>
> <br>
> In a serial code, you could do this just by equating those variables, but in parallel we have no support for such a boundary condition.<br>
> <br>
> Thanks,<br>
> <br>
> Matt<br>
> Thanks a lot. <br>
> <br>
> <br>
> <br>
> Best regards<br>
> <br>
> Fengwen<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> ____________________________________________________<br>
> Senior Researcher<br>
> Department of Mechanical Engineering, DTU<br>
> Nils Koppels Allé <br>
> Building 404 <br>
> 2800 Kgs. Lyngby <br>
> <a href="mailto:fwan@mek.dtu.dk" target="_blank">fwan@mek.dtu.dk</a><br>
> <br>
> <br>
> -- <br>
> 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<br>
> <br>
> <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_4259734006606295976gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div></div>