[FLASH-USERS] X-coordinate did not be printed in sod_1d_64pt.dat

Ryan Farber rjfarber at umich.edu
Sat Jan 4 19:41:08 EST 2020


Hi Rocky,

You could use the python visualization package yt: https://yt-project.org/
After loading your plt_cnt or chk file, you can access the x-coordinates
via:

import yt
ds = yt.load(FILE_NAME)
ad = ds.all_data()
x = ad["x"]
print(x)

You can also plot directly with yt, but the above will let you get the x
values for use with gnuplot.

Best,
--------
Ryan


On Sat, Jan 4, 2020 at 9:16 AM Po-Hsun Tseng <zengbs at gmail.com> wrote:

> Dear FLASH developers and users,
>
> When 1D Sod shock tube test with uniform grid was conducted, x-coordinate
> did not be printed in the ASCII file 'sod_1d_64pt.dat'. I need information
> on x-coordinate in Sod test so that I can use gnuplot to plot shock tube
> profile. what should I do? thanks.
>
> Po-Hsun Tseng (Rocky)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20200104/c7149dcc/attachment.htm>


More information about the flash-users mailing list