<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 19, 2013 at 12:54 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">Dharmendar Reddy <<a href="mailto:dharmareddy84@gmail.com">dharmareddy84@gmail.com</a>> writes:<br>

<br>
> Now the data in vtu file is calle<br>
><br>
> myfieldPoint0    So the pattern is ..<fieldName><Point| Cell><field Id> ?<br>
> where the field Name is the one set using PetscObjectSetName ?<br>
><br>
> But why is it not using the name set using PetscSectionSetFieldName ?<br>
<br>
</div>The DMDA code (that I wrote before the DMPlex stuff) used field<br>
information, but for whatever reason, I didn't have it available when<br>
writing the DMPlex VTU code.  Maybe it was just that the "field"<br>
interface is more complicated in DMPlex.<br>
<div class="im"><br>
> If i have a few fields per point then i can manage with the field Ids  but<br>
> usually the aux data i look at has about 10 to 12 fields. It would make<br>
> things easier if i can refer to them using Names in the paraview.   As the<br>
> viewer is accessing the DM object, why not get the user set field names in<br>
> the default section ?<br>
<br>
</div>This is now in 'next'.  I've only tested it for a cell-centered problem.<br>
Let me know if it works for you.<br>
<br>
commit 1cfafdd3620b0d8e55f5b21e1f3de1941197d333<br>
Author: Jed Brown <jed@59A2.org><br>
Date:   Fri Apr 19 00:40:19 2013 -0500<br>
<br>
    DMPlex: teach VTU output about field names and components<br>
<br>
    Schema is "${ObjectName}${FieldName}.${Component}".  For example<br></blockquote><div>  <br></div><div>  I like the above schema, lets call it schmea1. In the earlier ${ObjectName}.<Cell|Point>${FielId}, i find the Cell | Point  part of name not useful assuming the data is visualized in say preview as it the data is shown as cell or point data once the data is loaded.  <br>
What do u think about the schema ${ObjectName}${FieldName}${FielId}.${Component} . Kind of redundant, but ObjectName and FieldName are optional variables whereas  FieldId and Component always exist.  <br> If the user did provide the Names one can use them. Otherwise, i am assuming that ObjectName is a default name generated by petsc and FieldName seems to be set to Unnamed? If the FieldId is not used and user sets just the ObjectName and not FieldName then the names will clash for multiple fields if one were to use schmea1. <br>
<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
      SolutionDensity.0<br>
      SolutionMomentum.0<br>
      SolutionMomentum.1<br>
      SolutionMomentum.2<br>
      SolutionEnergy.0<br>
<br>
 src/dm/impls/plex/plexvtu.c | 43 ++++++++++++++++++++++++-----------<br>
 1 file changed, 30 insertions(+), 13 deletions(-)<br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>
10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>Phone: +1-512-350-9082<br>United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>

</div></div>