data in Plot3D Q files

513 views
Skip to first unread message

Edmond Lam

unread,
May 23, 2018, 9:45:32 AM5/23/18
to FDS and Smokeview Discussions
Hi,

I have been working with Plot3D files output from FDS, which have the extension (*.q). I am trying to read the values stored directly using MATLAB rather than first converting to ascii formats with fds2ascii. However I am not very able to identify how the values are structured. For example this is the first 200 bytes of my .q file:

0C000000 21000000 A1000000 F1000000 0C000000 10000000 00000000 00000000 00000000 00000000 10000000 D4C18601 FFFFC741 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 0000C841 FEFFC741 FEFFC741 FEFFC741 FEFFC741 FEFFC741

I can obtain the number of cells in the first line, but I have no idea how the data is structured next. The following is from the User's Guide for the code of Plot3D output in dump.f90:

WRITE(LU14) IBAR+1,JBAR+1,KBAR+1
WRITE(LU14) ZERO,ZERO,ZERO,ZERO
WRITE(LU14) ((((QQ(I,J,K,N),I=0,IBAR),J=0,JBAR),K=0,KBAR),N=1,5)

I would appreciate very much if anyone can provide me with some clues. Thanks a lot.

Kevin

unread,
May 23, 2018, 9:54:40 AM5/23/18
to FDS and Smokeview Discussions

Edmond Lam

unread,
May 23, 2018, 1:19:00 PM5/23/18
to FDS and Smokeview Discussions
Thanks for your reply. Yes I know the data is padded with 4 bytes at the beginning and end. That's why I could obtain the number of cells of my grid between the two entries "0C000000" in the first line. However I do not know how to decode the data starting from D4C18601.

Thanks.

On Wednesday, May 23, 2018 at 3:54:40 PM UTC+2, Kevin wrote:

Glenn Forney

unread,
May 23, 2018, 1:25:59 PM5/23/18
to fds...@googlegroups.com
the fds user's guide has documentation in the last chapter on the Fortran write statements used to write data to the plot3d file



--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+unsubscribe@googlegroups.com.
To post to this group, send email to fds...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fds-smv/c91b4c08-ddcc-4854-a529-5b4bc38a6ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Glenn Forney
Reply all
Reply to author
Forward
0 new messages