[Paraview] Simple XDMF example

Insley, Joseph A. insley at anl.gov
Thu Jun 22 18:24:38 EDT 2017

Thanks, Dave!  That did the trick.

Although, for completeness, I had to change the Center Attribute from “Point” to “Node”.  Otherwise ParaView crashed, complaining that Center was not one of ‘Grid’, ‘Cell’, ‘Face’, ‘Edge’, ‘Node’.

Thanks again,

On Jun 22, 2017, at 4:04 PM, David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>> wrote:

Try something like this:
<?xml version="1.0" encoding="utf-8"?>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="3.0">
    <Grid Name="Grid">
      <Geometry Origin="" Type="ORIGIN_DXDYDZ">
        <DataItem DataType="Float" Dimensions="3" Format="XML" Precision="8">0 0 0</DataItem>
        <DataItem DataType="Float" Dimensions="3" Format="XML" Precision="8">1 1 1</DataItem>
      <Topology Dimensions="256 256 256" Type="3DCoRectMesh"/>
      <Attribute Center="Point" Name="JoesData" Type="Scalar">
        <DataItem DataType="UChar" Dimensions="256 256 256" Format="HDF">small_ds.hdf5:/myelin</DataItem>

If that doesn't work sent me the h5 offlist and I'll fix the above

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Jun 22, 2017 at 1:34 PM, Insley, Joseph A. <insley at anl.gov<mailto:insley at anl.gov>> wrote:
Hi all,

I am trying to get a simple XDMF example working, but am having no success.  I must be doing something obvious wrong, but I’m not seeing it.  Here’s what the data looks like:

$ h5dump -H ./small_ds.hdf5
HDF5 "./small_ds.hdf5" {
GROUP "/" {
   DATASET "myelin" {
      DATASPACE  SIMPLE { ( 256, 256, 256 ) / ( 256, 256, 256 ) }

And here’s the xdmf file I’m trying to use:

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<DataItem ItemType="Uniform"
          Dimensions="256 256 256">

Choosing the Xdmf3 Reader or Xdmf3 Reader (Top Level Partition) results in an empty data set, where there are no point or cell arrays, and everything on the Information tab is listed as NA.
Choosing the Xdmf Reader results in a seg fault.

Any suggestions would be appreciated.


Powered by www.kitware.com<http://www.kitware.com/>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170622/081d1811/attachment.html>

More information about the ParaView mailing list