The easiest way that I would suggest is to use the silo library. It will handle
writing the hdf files for you.

https://wci.llnl.gov/codes/silo/

It works very well with VisIT.


On 2012-03-21 08:46, Alexander Beck-Ratzka wrote:
On Wednesday 21 March 2012 14:05:04 Ekin Akoglu wrote:

I am afraid I have not described what I want to have clear enough....

I have a 3-d not always regular mesh (we are working with mesh
refinement).  On
this mesh I have several variables, and again for each variable several time
steps. To make plots of these variable, and also to create time
series plots I
would like to use VisIt, which uses XDMF as a reader for HDF5 data.

In order to get the plots of VisIt correct, the HDF5 datasets must be
populated as follows:

1) x coordinates
2) y coordinates
3) z coordinates
(all the coordinates as 3-d arrays)

and finally 4) the data.

How can I add seveals time steps of these data? Must I always add the
coordinates in advance or not? Have I a possiblity to mark the time step?

The example given by Ekin only shows how to add one 3-d field, nothing about coordinates and about time steps. I hope my problem is more clear now ..

Best wishes

Alexander

Dear Alexander,

Please see if the attached example C code helps. It is an example from
HDF web site.

Best,

Ekin

On 03/21/2012 01:55 PM, Alexander Beck-Ratzka wrote:
> Hi Folks,
>
> I am a newby in HDF5, and after having already successfully written (and > also plotted) one singel time step of a variable into an HDF5 dataset, > I would like to know how I can write time series of a 3-d variable into
> one single HDF5 dataset? Do I need to have the tiem as fouhrth
> dimension?
>
> An explaing example in C would be welcome.
>
> Best wishes
>
> Alexander
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to