[Paraview] How to properly visualize data in Paraview using HDF5?

David E DeMarle dave.demarle at kitware.com
Mon Jul 10 16:11:31 EDT 2017


cc'ing the list back in

xdmf has join for this purpose, but I typically use python filter in
paraview to join the scalars together into a vector instead. That route is
more widely traveled.





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

On Mon, Jul 10, 2017 at 3:53 PM, Jake Gerard <jake.a.gerard at gmail.com>
wrote:

> No, it shows the length properly down the z-axis when I have it as 91 19
> 19, but the data is not correct for either of these. I think that the data
> may actually be stored improperly in the HDF5 because I created dummy files
> and they worked fine.  However, if I were to add vectors in using 3
> seperate arrays (1 for x y and z) then how would I alter the current
> format?
>
> On Mon, Jul 10, 2017 at 1:58 PM, David E DeMarle <dave.demarle at kitware.com
> > wrote:
>
>> Does 19 19 91 work?
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> Principal Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Mon, Jul 10, 2017 at 11:46 AM, Jake Gerard <jake.a.gerard at gmail.com>
>> wrote:
>>
>>> Good Morning,
>>>
>>> I am trying to update the visualization portion of an HPC fluid model.
>>> Used to use legacy VTK but its starting to reach its limits. I read that
>>> HDF5 was good for large data sets and that it could be viewed in Paraview
>>> with XDMF. However, it seems there are so few examples online. I got a long
>>> rectangular channel to show up but the pressure data in it is wrong.
>>> Hopefully if I can solve this, then it will help me update my code along
>>> with anybody else who might be struggling with the same problem.
>>>
>>> Is the formatting for this XDMF file incorrect, or is there some other
>>> problem I'm not considering?  I can attach the HDF5 file too if its
>>> necessary.
>>>
>>> <?xml version="1.0" ?><!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []><Xdmf>
>>>   <Domain>
>>>     <Grid Name="my_Grid" GridType="Uniform">
>>>       <Topology TopologyType="3DCoRectMesh" Dimensions="91 19 19">
>>>       </Topology>
>>>       <Geometry GeometryType="Origin_DxDyDz">
>>>         <DataItem Dimensions="3" NumberType="Float" Format="XML">
>>>           0 0 0
>>>         </DataItem>
>>>         <DataItem Dimensions="3" NumberType="Float" Format="XML">
>>>           1 1 1
>>>         </DataItem>
>>>       </Geometry>
>>>       <Attribute Name="pressure" AttributeType="Scalar" Center="Node">
>>>         <DataItem Dimensions="91 19 19" NumberType="Float" Format="HDF">
>>>           output.h5:/pres_group/presmag
>>>         </DataItem>
>>>       </Attribute>
>>>     </Grid>
>>>   </Domain></Xdmf>
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170710/afa676a8/attachment.html>


More information about the ParaView mailing list