[Paraview] xdmf not recognizing tuples?

Peter Brady petertbrady at gmail.com
Tue Mar 17 12:25:12 EDT 2009


Jerry,

I switched to a 2DSMesh and got rid of the leading 1 and everything
works fine now.  If I'm feeling bold/bored I might try the CVS version
later in the week.

Thanks for your help,
Peter.

On Tue, Mar 17, 2009 at 5:42 AM, Jerry Clarke <clarke at arl.army.mil> wrote:
> Peter,
>
> That is probably a bug with 3D grids where one of the dimensions == 1.
> I fixed that last week.
> Try checking out the latest version from CVS.
>
> Jerry Clarke
>
> Peter Brady wrote:
>>
>> Hello all,
>>
>> I'm trying to visualize some hdf5 data using the xdmf reader and I'm
>> encountering some issues.  My grid loads fine but when I try to import
>> a variable (ie. 'U') I get the error:
>>   Cell array U with 1 components, has only 0 tuples but there are 1024
>> cells
>>
>> Below is my xmf file:
>> <?xml version="1.0" ?>
>> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
>> <Xdmf>
>>  <Domain>
>>    <Grid Name="Rectilinear" GridType="Uniform">
>>      <Topology TopologyType="3DSMesh" Dimensions="1 65 17" >
>>      </Topology>
>>      <Geometry GeometryType="X_Y">
>>        <DataItem DataType="Float" Precision="8" Dimensions="1 65 17"
>> Format="HDF">
>>          grid.h5:/xcorr2
>>        </DataItem>
>>        <DataItem DataType="Float" Precision="8" Dimensions="1 65 17"
>> Format="HDF">
>>          grid.h5:/ycorr2
>>        </DataItem>
>>      </Geometry>
>>      <Attribute Name="U" Type="Scalar" Center="Cell">
>>        <DataItem DataType="Float" Precision="8" Dimensions="1 64 16"
>> Format="HDF">
>>          data.init:/U
>>        </DataItem>
>>      </Attribute>
>>    </Grid>
>>  </Domain>
>> </Xdmf>
>> running h5ls on my data.init file yields:
>> h5ls data.init
>> T                        Dataset {1, 64, 16}
>> U                        Dataset {1, 64, 16}
>> V                        Dataset {1, 64, 16}
>> VOF                      Dataset {1, 64, 16}
>> W                        Dataset {1, 64, 16}
>> dims                     Dataset {4}
>> names                    Dataset {5}
>> time                     Dataset {2}
>>
>> So 'U' has the dimensions 1x16x64 = 1024 cells.  Am I missing something?
>>
>> Thanks for any help.
>> Peter.
>> _______________________________________________
>> Powered by 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list