writing in hdf5

Information about Programming in the MOHID Framework
marciapearson@yahoo.com.br
MOHID Beginner
Posts: 9
Joined: Thu Jan 01, 1970 00:00

writing in hdf5

Postby marciapearson@yahoo.com.br » Fri Mar 16, 2007 15:03

Hi everyone!

I am trying to save some hydrodynamic information in a hdf5 file in a program that is not Mohid GUI, but after this I will have to make Mohid GUI read this data. So, as reference I am looking how the Module HDF5 does it. I don't get the changes between the HDF5WriteDataR4_3D subroutines... I see that they save arrays with different dimensions (1D, 2D and 3D), but what does R4, R8 and I4 mean?

Best regards,

Márcia

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Fri Mar 16, 2007 18:37

Hi Marcia,

The diferences are due to type of 1D, 2D or 3D array.

R4 - single precision real type
R8 - double precision real type
I4 - integer type

Hope to have helped. Best regards,
Luis

marciapearson@yahoo.com.br
MOHID Beginner
Posts: 9
Joined: Thu Jan 01, 1970 00:00

Postby marciapearson@yahoo.com.br » Wed Mar 21, 2007 14:53

Hi Luis!

Thank you for the answer. Now I have another question: what is the difference between Horizontal velocity Old and Horizontal velocity New? I found this in ModuleHydrodynamic in the subroutine that writes the FinalFile in binary format (subroutine Write_Final_Hydrodynamic_File).

Thanks in advance again!
Regards

Márcia

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Mon Mar 26, 2007 14:10

Olá Marcia,

New is related with the current time step, and Old to the previous time step.
These matrices are need to continue the simulation from a previous run.

Cheers,
Luis


Return to “MOHID Programming”

Who is online

Users browsing this forum: No registered users and 1 guest