[FLASH-USERS] Variable output format
John ZuHone
jzuhone at milkyway.gsfc.nasa.gov
Tue Jan 15 11:41:49 EST 2013
Hi Henry,
How many blocks do you have in your simulation? Normally, in a FLASH dataset, the first number in the shape is the number of blocks, and the other dimensions correspond to the shape of each individual block, which, for your simulation, appears to be 2D with 8 zones on a side. The shape is transposed in the HDF5 file, so it corresponds to this form:
(number_of_blocks, nzb, nyb, nxb)
I agree with Anthony that yt is the way to go for analyzing FLASH data. You can access the documentation here:
http://yt-project.org/doc/index.html
and find specific examples of how to make plots and do other analysis here:
http://yt-project.org/doc/cookbook/index.html
Best,
John
On Jan 15, 2013, at 11:23 AM, "Henry (Trae) Winter" <hwinter at cfa.harvard.edu> wrote:
> I am trying to plot the output from the NeiTest problem. I want to plot the fraction of the ion as a function of X. I opened the hdf5 file and see the variables I need but I am confused by their shape. The ion variables, as well as velocity and temperature have a shape of (5,1,8,8). Does anyone know what these dimensions correspond to and/or how to map the variables to position?
>
> Thanks,
> -Trae
>
> -------------------------------------------------------------------------------------
> Dr. Henry (Trae) Winter III
> Astrophysicist Tel: 617-495-7400
> Center for Astrophysics Fax: 617-496-7577
> 60 Garden Street, MS 58 Cell: 617-755-7967
> Cambridge, MA 02138 hwinter at cfa.harvard.edu
> -------------------------------------------------------------------------------------
>
>
>
>
>
More information about the flash-users
mailing list