[Paraview] XDMF HyperSlab hints or example needed

Ian Curington ianc at acm.org
Fri Apr 3 10:32:09 EDT 2009


Does anyone have some small working examples of XDMF xml
using they hyperslab option? I've yet to create any that will
load with any stability in either the release or current dev versions.
Suggestions for correcting the XDMF sample, or other working samples
are very much appreciated!

With both ParaView 3.4 Release and 3.5.0 Development, current CVS,
loading this XML file brings down ParaView at the "Apply" stage.
Very occasionally it loads but shows garbage data ranges.

Here is a simple test of a 2D uniform grid, subsampled by 2 in X.
Save it to "test.xmf", then File-Load into ParaView.

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
  <Domain>
    <Grid Name="Reduced Grid" GridType="Uniform">
      <Topology TopologyType="3DCORECTMesh" Dimensions="1 3 3 "/>
      <Geometry GeometryType="ORIGIN_DXDYDZ">
        <DataItem Dimensions="3" NumberType="Float" Precision="4" Format="XML">
          0 0 0 
        </DataItem>
        <DataItem Dimensions="3" NumberType="Float" Precision="4" Format="XML">
          0.1 0.1 0.1 
        </DataItem>
      </Geometry>
      <Attribute Name="Density" AttributeType="Scalar" Center="Node">
          <DataItem ItemType="HyperSlab"
            Dimensions="1 3 3"
            Type="HyperSlab">
            <DataItem
                 Dimensions="3 3" 
                 Format="XML">
                0  0  0 
                1  1  2 
                1  3  3
            </DataItem>
            <DataItem Dimensions="1 3 6" 
                      NumberType="Float" Precision="4"
                      Format="XML">
              0.2 
              0.285714 
              0.371429
              0.45714
              0.15714
              0.25714
              0.542857 
              0.628571 
              0.714286 
              0.999 
              0.05714
              0.25714
              0.885714 
              0.971429 
              1.05714 
              1.14286 
              0.15714
              0.25714
            </DataItem>
          </DataItem>
      </Attribute>
    </Grid>
  </Domain>
</Xdmf>

-- 
-- Ian -- ianc at acm.org  ---


More information about the ParaView mailing list