On Fri, Sep 21, 2012 at 2:20 PM, Subramanya G <span dir="ltr"><<a href="mailto:subramanya.g@gmail.com" target="_blank">subramanya.g@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a small question about using DMComplex.<br>
How does one keep track of external boundaries. I found no methods to<br>
check if a particular node/face belonged to a particular external<br>
edge set.<br></blockquote><div><br></div><div>First you want to distinguish between</div><div><br></div><div>a) Topological boundaries</div><div><br></div><div>For this you use Labels, so you can mark parts of the mesh using DMCcomplexSetLabelValue()</div>
<div><br></div><div>b) Algebraic Boundary Conditions</div><div><br></div><div>These are specified in the PetscSection using PetscSectionSetConstraintDof() and</div><div>PetscSectionSetConstraintIndices(). To construct these, you typically use the information</div>
<div>in the mesh labels.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, Is it possible to set up a problem over a part of the mesh<br>
instead of the entire mesh?<br></blockquote><div><br></div><div>This is very easy. Just create a PetscSection that only has unknowns over part of the mesh.</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">
Thanks<br>
<br>
<br>
Subramanya G Sadasiva,<br>
<br>
Graduate Research Assistant,<br>
Hierarchical Design and Characterization Laboratory,<br>
School of Mechanical Engineering,<br>
Purdue University.<br>
<br>
"The art of structure is where to put the holes"<br>
Robert Le Ricolais, 1894-1977<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <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>