<div dir="ltr">All,<div><br></div><div>In an effort to spark some comments I thought I'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"><?xml version="1.0"?></div><div class="gmail_extra"><!DOCTYPE Xdmf SYSTEM "Xdmf.dtd"></div><div class="gmail_extra">
<Xdmf xmlns:xi="<a href="http://www.w3.org/2003/XInclude">http://www.w3.org/2003/XInclude</a>" Version="2.2"></div><div class="gmail_extra"> <Domain></div><div class="gmail_extra"> <Grid GridType="Uniform"></div>
<div class="gmail_extra"> <Topology TopologyType="Quadrilateral" Dimensions="1"></div><div class="gmail_extra"> <DataItem Dimensions="1 4" NumberType="Int" Precision="8" Format="XML"></div>
<div class="gmail_extra"> 0 1 3 2 </div><div class="gmail_extra"><span class="" style="white-space:pre">        </span></DataItem></div><div class="gmail_extra"> </Topology></div><div class="gmail_extra">
<Geometry GeometryType="XYZ"></div><div class="gmail_extra"> <DataItem Dimensions="4 3" NumberType="Float" Precision="4" Format="XML"></div><div class="gmail_extra">
<span class="" style="white-space:pre">        </span> -0.5 -0.5 0 </div><div class="gmail_extra"><span class="" style="white-space:pre">        </span> 0.5 -0.5 0 </div><div class="gmail_extra"><span class="" style="white-space:pre">        </span> -0.5 0.5 0 </div>
<div class="gmail_extra"><span class="" style="white-space:pre">        </span> 0.5 0.5 0 </div><div class="gmail_extra"><span class="" style="white-space:pre">        </span></DataItem></div><div class="gmail_extra"> </Geometry></div>
<div class="gmail_extra"> </Grid></div><div class="gmail_extra"> </Domain></div><div class="gmail_extra"></Xdmf></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->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'd like a section in the geom part of the xmf file to qualify this numbering. It doesn't bother me if they're subsequently renumbered inside paraview/vtk, only that I don'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><?xml version="1.0"?></div><div><!DOCTYPE Xdmf SYSTEM "Xdmf.dtd"></div><div><Xdmf xmlns:xi="<a href="http://www.w3.org/2003/XInclude">http://www.w3.org/2003/XInclude</a>" Version="2.2"></div>
<div> <Domain></div><div> <Grid GridType="Uniform"></div><div> <Topology TopologyType="Quadrilateral" Dimensions="1"></div><div> <DataItem Dimensions="1 4" NumberType="Int" Precision="8" Format="XML"></div>
<div> <b> 300 20 22 80 </b></div><div><span class="" style="white-space:pre">        </span></DataItem></div><div> </Topology></div><div> <Geometry GeometryType="<b>XYZ_Explicit</b>"></div>
<div> <DataItem Dimensions="4 3" NumberType="Float" Precision="4" Format="XML"></div><div><b><span class="" style="white-space:pre">        </span> 20 -0.5 -0.5 0 </b></div>
<div>
<b><span class="" style="white-space:pre">        </span> 22 0.5 -0.5 0 </b></div><div><b><span class="" style="white-space:pre">        </span> 80 -0.5 0.5 0 </b></div><div><b><span class="" style="white-space:pre">        </span> 300 0.5 0.5 0 </b></div>
<div><span class="" style="white-space:pre">        </span></DataItem></div><div> </Geometry></div><div> </Grid></div><div> </Domain></div><div></Xdmf></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 class="gmail_extra"><br></div><br><div class="gmail_quote">On 22 November 2013 17:19, Andrew Parker <span dir="ltr"><<a href="mailto:andy.john.parker@googlemail.com" target="_blank">andy.john.parker@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">All,<div><br></div><div>Hopefully this is a simple question. I'm using xdmf with h5 files to store my mesh and view via paraview. However, due to a recent change in my code, I now want to be able to specify "NodeNumber XPosition YPosition ZPosition" as a tuple for each node/point position in the mesh (it's unstructured) so that I can explicitly number the nodes. Currently I do something like:</div>
<div><br></div><div><div><Geometry Type= "X_Y_Z"></div><div><DataItem Name="VX" NumberType="Float" Dimensions="1660" Precision="8" Format="HDF"></div>
<div>points.h5:/Mesh/Xposition/</div><div></DataItem></div><div><DataItem Name="VY" NumberType="Float" Dimensions="1660" Precision="8" Format="HDF"></div><div>
points.h5:/Mesh/Yposition/</div><div></DataItem></div><div><DataItem Name="VZ" NumberType="Float" Dimensions="1660" Precision="8" Format="HDF"></div><div>points.h5:/Mesh/Zposition/</div>
<div></DataItem></div><div></Geometry></div></div><div><br></div><div>But this assume that the first x, y, and z in the file are meant to be for node 0, and node 0 is referenced in the topology section. Now what I want to do is to be able to define for each x, y, z tuple the specific node number that those positions refer to. So explicit numbering rather than implicit numbering. Can this be done with xdmf, I assume it can? If not a massive amount of renumbering is needed.....</div>
<div><br></div><div>Any help really appreciated.</div><div><br></div><div>Cheers,</div><div>Andy</div></div>
</blockquote></div><br></div></div></div>