[vtk-developers] XDMF and hyperslabs

victor sv victorsv at gmail.com
Fri Aug 14 06:25:00 EDT 2015


Hello all,

I'm trying to create and visualize an XDMF/HDF5 file containing a
partitioned mesh using hyperslabs.

Is this supported by Paraview/VTK ??

The HDF5 (solution1.h5) looks as follows:

GROUP "/" {
   GROUP "Grid" {
      DATASET "Connectivities" {
         DATATYPE  H5T_STD_I32BE
         DATASPACE  SIMPLE { ( 18 ) / ( 18 ) }
         DATA {
         (0): 0, 1, 2, 3, 2, 1, 4, 5, 6, 7, 6, 5, 6, 7, 8, 9, 8, 7
         }
      }
      DATASET "Coordinates" {
         DATATYPE  H5T_IEEE_F64BE
         DATASPACE  SIMPLE { ( 20 ) / ( 20 ) }
         DATA {
         (0): 0, 0, 1, 0, 0, 0.5, 1, 0.5, 0, 0.5, 1, 0.5, 0, 1, 1, 1, 0,
1.5,
         (18): 1, 1.5
         }
      }
      DATASET "Solution" {
         DATATYPE  H5T_IEEE_F64BE
         DATASPACE  SIMPLE { ( 10 ) / ( 10 ) }
         DATA {
         (0): 0, 0, 0, 0, 1, 1, 1, 1, 1, 1
         }
      }
   }
}

And the XDMF file to represent  a 2-triangle (4 points) piece of the full
mesh is:

<?xml version="1.0" encoding="utf-8"?>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude">
  <Domain>
    <Grid CollectionType="Spatial" GridType="Collection" Name="Mesh">
      <Grid Name="Grid1">
        <Topology Dimensions="6" Type="Triangle">
          <DataItem ItemType="HyperSlab" Dimensions="6" Type="HyperSlab">
            <DataItem Dimensions="3 1" Format="XML"> 0 1 6 </DataItem>
            <DataItem DataType="Int" Dimensions="18" Format="HDF"
Precision="4">solution1.h5:Grid/Connectivities</DataItem>
          </DataItem>
        </Topology>
        <Geometry GeometryType="XY">
          <DataItem ItemType="HyperSlab" Dimensions="8" Type="HyperSlab">
            <DataItem Dimensions="3 1" Format="XML"> 0 1 8 </DataItem>
            <DataItem DataType="Float" Dimensions="20" Format="HDF"
Precision="8">solution1.h5:Grid/Coordinates</DataItem>
          </DataItem>
        </Geometry>
      </Grid>
    </Grid>
  </Domain>
</Xdmf>

I'm trying to use the syntax explained at the XDMF webpage (
http://www.xdmf.org/index.php/XDMF_Model_and_Format ), but I'm feeling
confused about the version of the documentation and current version of XDMF
library included in VTK library.

Can anyone give me some info about this?
It is XDMFv3 already public ?


Thanks in advance,
Víctor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150814/e714d702/attachment.html>


More information about the vtk-developers mailing list