[FLASH-USERS] [EXT] Fwd: plot_var variable

Ji, Suoqing suoqing at caltech.edu
Wed Aug 26 10:22:14 EDT 2020


Hi Thibault,

Just want to add that the coordinate information is not usually stored as grid-based variables. Although you can still do this by creating your own variables to store coordinates in source codes, there’s no need to do so, since it can be reconstructed from block information in the HDF outputs.

In addition to Eddie’s solutions, you can also use yt (www.yt-project.org<http://www.yt-project.org>) which does the reconstruction for you, and you can just use coordinates as grid-based-like variables (e.g., plot coordinate values directly or evaluate some function of coordinates).

Best wishes,
—
Suoqing Ji
Sherman Fairchild Fellow
TAPIR & Walter Burke Institute for Theoretical Physics
California Institute of Technology
http://www.tapir.caltech.edu/~suoqing

On Aug 26, 2020, at 6:55 AM, Eddie Hansen <ehansen at pas.rochester.edu<mailto:ehansen at pas.rochester.edu>> wrote:

Hi Thibault,

I'm not sure if it can be put into a plot variable, but if you're using Visit, there is a way to define an expression for each coordinate. In Visit, go to Controls->Expressions, then click 'New'. Set the type to 'Scalar Mesh Variable', and name it whatever you want (I call mine 'xpos' for example). Then in the Definition box, enter:

recenter(array_decompose(coord(amr_mesh),0),"zonal")

This should give you the x-position of the center of each cell. For y-position, use '1' instead of '0' in the coord array, and 2 for z-position.

On Wed, Aug 26, 2020 at 8:23 AM Thibault Goudal <thibault.goudal at u-bordeaux.fr<mailto:thibault.goudal at u-bordeaux.fr>> wrote:
Hi dear Flash users!

I am looking for a solution to print the (flash,x) spatial variable into a plot_var in the flash.par.
This variable is included in the chk but it seems that writing plot_var_1 = 'x   ' in the .par doens't work.
I checked in the Flash.h but this variable doesn't exist.

Is there a way to print this variable in the plt outputs?

Thanks!



--
Thibault Goudal
PhD Student CEA
CELIA CNRS UMR5107 laboratory
+33664160842
thibault.goudal at u-bordeaux.fr<mailto:thibault.goudal at u-bordeaux.fr>



--
Eddie Hansen, PhD
Postdoctoral Associate
University of Rochester
607-341-6126 | Flash Center

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20200826/ca1411ff/attachment-0001.htm>


More information about the flash-users mailing list