You should probably write an XDMF file (
http://www.xdmf.org/index.php/Main_Page) that describes the hdf5 file. Like
a "text" file or a "binary" file, "hdf5" files can contain anything, so the
XDMF file adds a bit of helpful context.

Here is a sample xdmf file that reads in three arrays from a named hdf5
file that define the cell connectivity. coordinates, and one scalar field.
The data in this case looks like a rubix cube of 27 hexes.

<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude"; Version="2.2">
  <Domain>
    <Grid GridType="Uniform">
      <Topology TopologyType="Hexahedron" Dimensions="27">
        <DataItem Dimensions="27 8" NumberType="Int" Precision="8"
Format="HDF">/Users/demarle/Desktop/rubix.h5:/Data0</DataItem>
      </Topology>
      <Geometry GeometryType="XYZ">
        <DataItem Dimensions="64 3" NumberType="Float" Precision="4"
Format="HDF">/Users/demarle/Desktop/rubix.h5:/Data1</DataItem>
      </Geometry>
      <Attribute Name="RTData" Active="1" AttributeType="Scalar"
Center="Node">
        <DataItem Dimensions="64" NumberType="Float" Precision="4"
Format="HDF">/Users/demarle/Desktop/rubix.h5:/Data2</DataItem>
      </Attribute>
    </Grid>
  </Domain>
</Xdmf>


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

On Wed, Jan 28, 2015 at 2:52 PM, Martín Huarte E <martin.huar...@gmail.com>
wrote:

> Dear Paraview community: Good day. I need assistance on visualizing a
> matlab file? Any tips will be greatly appreciated. Thanks.
>
>
> Details:
> I need to visualize temperature distribution in a volume.  The volume is a
> wedge-like slice of a hollow cylinder (shown in the attached schematic).
>
> The calculations are made in MATLAB.  The three-dimensional matrices of
> the solution (T) and the node-coordinates (X, Y and Z) are saved in a HDF5
> file.
>
> So far, I have not been able to make ParaView to visualize the result in
> the actual geometry. They get the length, width and height of the volume
> and simply build a cuboid out of them.
>
> Thanks
>
> My best, Martín
>
>
> *Martín Huarte-Espinosa, Ph.D.*
> *Computational Physicist  -  **High Performance Computing Specialist*
> *linkedin.com/pub/martin-huarte-espinosa/59/6b7/13a
> <http://linkedin.com/pub/martin-huarte-espinosa/59/6b7/13a>*
>
>
>
>
> _______________________________________________
> 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
>
>
_______________________________________________
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

Reply via email to