<div dir="ltr"><div class="gmail_quote"><div dir="ltr">All,<div><br></div><div>I thought I&#39;d forward this onto the paraview list in case somebody could think of a way to do this?  Please see my email below which I originally sent to the vtk user list.  Any help would be very much appreciated, including the fact that it just cannot be done.  I would in particular welcome thoughts from those who have helped develop the xdmf2 lib within the paraview source.</div>


<div><br>Many thanks again,</div><div>Andy<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>Date: 23 November 2013 17:13<br>Subject: [vtkusers] Explicit numbering of nodes for Xdmf/h5<br>To: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>


<br><br><div dir="ltr">All,<div><br></div><div>In an effort to spark some comments I thought I&#39;d try to provide a small example for what I want to do in case my previous post (below) was unclear.  Below is a valid xdmf file that paraview understands for a plane.<br>



<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">&lt;?xml version=&quot;1.0&quot;?&gt;</div><div class="gmail_extra">&lt;!DOCTYPE Xdmf SYSTEM &quot;Xdmf.dtd&quot;&gt;</div><div class="gmail_extra">



&lt;Xdmf xmlns:xi=&quot;<a href="http://www.w3.org/2003/XInclude" target="_blank">http://www.w3.org/2003/XInclude</a>&quot; Version=&quot;2.2&quot;&gt;</div><div class="gmail_extra">  &lt;Domain&gt;</div><div class="gmail_extra">


    &lt;Grid GridType=&quot;Uniform&quot;&gt;</div>
<div class="gmail_extra">      &lt;Topology TopologyType=&quot;Quadrilateral&quot; Dimensions=&quot;1&quot;&gt;</div><div class="gmail_extra">        &lt;DataItem Dimensions=&quot;1 4&quot; NumberType=&quot;Int&quot; Precision=&quot;8&quot; Format=&quot;XML&quot;&gt;</div>



<div class="gmail_extra">           0 1 3 2 </div><div class="gmail_extra"><span style="white-space:pre-wrap">        </span>&lt;/DataItem&gt;</div><div class="gmail_extra">      &lt;/Topology&gt;</div><div class="gmail_extra">



      &lt;Geometry GeometryType=&quot;XYZ&quot;&gt;</div><div class="gmail_extra">        &lt;DataItem Dimensions=&quot;4 3&quot; NumberType=&quot;Float&quot; Precision=&quot;4&quot; Format=&quot;XML&quot;&gt;</div><div class="gmail_extra">



<span style="white-space:pre-wrap">        </span>  -0.5 -0.5 0 </div><div class="gmail_extra"><span style="white-space:pre-wrap">        </span>  0.5 -0.5 0 </div><div class="gmail_extra"><span style="white-space:pre-wrap">        </span>  -0.5 0.5 0 </div>



<div class="gmail_extra"><span style="white-space:pre-wrap">        </span>  0.5 0.5 0 </div><div class="gmail_extra"><span style="white-space:pre-wrap">        </span>&lt;/DataItem&gt;</div><div class="gmail_extra">      &lt;/Geometry&gt;</div>



<div class="gmail_extra">    &lt;/Grid&gt;</div><div class="gmail_extra">  &lt;/Domain&gt;</div><div class="gmail_extra">&lt;/Xdmf&gt;</div><div><br></div><div>---  Now, what I want to do is to allow for the fact that the nodes defining this plane, may happen to be labelled 300, 20, 22, 80 instead of 0-&gt;3.  The key point being that there is still only 4 nodes, not 300 in the file for which I only need 4 to define the geom, but need to write out 300 to all for the 0-based implicit ordering.  Therefore, I&#39;d like a section in the geom part of the xmf file to qualify this numbering.  It doesn&#39;t bother me if they&#39;re subsequently renumbered inside paraview/vtk, only that I don&#39;t have to, as this is a simplistic version of something more complicated.  So to be verbose, it should now look like:</div>



<div><br></div><div><div>&lt;?xml version=&quot;1.0&quot;?&gt;</div><div>&lt;!DOCTYPE Xdmf SYSTEM &quot;Xdmf.dtd&quot;&gt;</div><div>&lt;Xdmf xmlns:xi=&quot;<a href="http://www.w3.org/2003/XInclude" target="_blank">http://www.w3.org/2003/XInclude</a>&quot; Version=&quot;2.2&quot;&gt;</div>



<div>  &lt;Domain&gt;</div><div>    &lt;Grid GridType=&quot;Uniform&quot;&gt;</div><div>      &lt;Topology TopologyType=&quot;Quadrilateral&quot; Dimensions=&quot;1&quot;&gt;</div><div>        &lt;DataItem Dimensions=&quot;1 4&quot; NumberType=&quot;Int&quot; Precision=&quot;8&quot; Format=&quot;XML&quot;&gt;</div>



<div>          <b> 300 20 22 80 </b></div><div><span style="white-space:pre-wrap">        </span>&lt;/DataItem&gt;</div><div>      &lt;/Topology&gt;</div><div>      &lt;Geometry GeometryType=&quot;<b>XYZ_Explicit</b>&quot;&gt;</div>



<div>        &lt;DataItem Dimensions=&quot;4 3&quot; NumberType=&quot;Float&quot; Precision=&quot;4&quot; Format=&quot;XML&quot;&gt;</div><div><b><span style="white-space:pre-wrap">        </span>  20 -0.5 -0.5 0 </b></div><div>



<b><span style="white-space:pre-wrap">        </span>  22 0.5 -0.5 0 </b></div><div><b><span style="white-space:pre-wrap">        </span>  80 -0.5 0.5 0 </b></div><div><b><span style="white-space:pre-wrap">        </span>  300 0.5 0.5 0 </b></div>



<div><span style="white-space:pre-wrap">        </span>&lt;/DataItem&gt;</div><div>      &lt;/Geometry&gt;</div><div>    &lt;/Grid&gt;</div><div>  &lt;/Domain&gt;</div><div>&lt;/Xdmf&gt;</div></div><div><br></div><div>Can this be done, or could this be done in the future?  Am I being daft and there is an easy way to do this?</div>



<div><br>Cheers again,</div><div>Andy</div><div><div class="gmail_extra"><br></div></div></div></div></div></div></div></div>
</div><br></div>