<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 7, 2017 at 2:23 AM, Mohammad Hassan Baghaei <span dir="ltr"><<a href="mailto:mhbaghaei@mail.sjtu.edu.cn" target="_blank">mhbaghaei@mail.sjtu.edu.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-2243892651974896977WordSection1"><p class="MsoNormal">Hello<u></u><u></u></p><p class="MsoNormal">I am using DMPlex to construct a fully circular 2D domain for my PDEs. As I am discretizing the PDEs using finite difference method,</p></div></div></blockquote><div><br></div><div>How do you do FD on an unstructured mesh?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-2243892651974896977WordSection1"><p class="MsoNormal"> I need to know , to define the layout of PetscSection, how I can find the boundary condition IS. I know the location of the boundaries in Sieve chart. However, I noticed that I need to know the Index Set of that location. Can I use the Sieve point number for Index Set. It seems I think I am not familiar with IS. Can you help me? Thank for your help.</p></div></div></blockquote><div><br></div><div>I like Yann's response. You can simplify the processing somewhat:</div><div><br></div><div> 1) You can use DMPlexLabelComplete() to add in edges and vertices on the boundary</div><div><br></div><div> 2) You can use DMPlexComputeCellGeometryFVM to compute the centroid</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 lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-2243892651974896977WordSection1"><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Amir<u></u><u></u></p></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><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.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>