<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 6, 2014 at 4:49 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
         I need to store some geometry information of a mesh in dm and<br>
alter access it via getclosure (or a some other method you may<br>
suggest).<br>
<br>
For a traiangle  with vertices:  v1, v2, v3<br>
say the circumcenter of the triangle is O<br>
and mid point of each edges is : m1,m2,m3<br>
The data i need to store is:<br>
For each node a double value, which will the fraction of area of triangle:<br>
for example: for v1 , area of quad v1,m1,O,m3<br>
<br>
each edge has two values: edge length and distance from mid point to O<br>
<br>
For triangle, i will have to save 9 variables, of which 6 are cell<br>
specific and 3 are edge specific.  How should define the dof lay out<br>
to use in DMPlexCreateSection<br>
</blockquote></div><br>Just using PetscSectionSetDof() put 6 for each cell (I only see 3 above) </div><div class="gmail_extra">and 3 (I only see 2 above) for each edge. If you use DMPlexCreateSection()</div><div class="gmail_extra">
then dimDof = [0 3 6], and you could divide it into fields however you want.</div><div class="gmail_extra"><br></div><div class="gmail_extra">   Matt<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
</div></div>