[Nek5000-users] Data Structure of Output Files

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Sep 3 09:48:49 CDT 2014


Hi Neks!

I want to convert my nek binary files into hdf5 using Matlab. Am I right
that the data structure in nek is as follows:

132 byte header, 4+nel1*4 byte mapping stuff, [3*nel1*lx1*ly1*lz1 byte
coordinates], 3*nel1*lx1*ly1*lz1 byte velocity field [, nel1*lx1*ly1*lz1
byte pressure], etc.

Where the data structure of u/v/w (and x/y/z) is like
u(1...lx1*ly1*lz1,1),v(1...lx1*ly1*lz1,1),w(1...lx1*ly1*lz1,1),u(1...lx1*ly1*lz1,2),v(1...lx1*ly1*lz1,2),...
u(1...lx1*ly1*lz1,nel1),v(1...lx1*ly1*lz1,nel1),w(1...lx1*ly1*lz1,nel1)

Thanks in advance!
Jan F.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20140903/70164a19/attachment.html>


More information about the Nek5000-users mailing list