<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Many Thanks guys for the ideas.<br></div><div><br data-mce-bogus="1"></div><div> I'm writing my own numerical diagnostics with python so yt is definitely a very usefull module in order to build the numerical mesh.<br></div><div>With yt or not, to build the x position by keeping a decent chk output frequency (pretty heavy), I try to construct the variable from others that I can print in plt outputs.<br></div><div>I don't really know from which variables i could build x.<br data-mce-bogus="1"></div><br><div>I've just posted a request on the yt user list.<br></div><div>People usually answer by keeping in mind a plot solution. In our case, it is just saving a spatial position at a given time.</div><br><br><hr id="zwchr"><div><b>De: </b>"Ji, Suoqing" <suoqing@caltech.edu><br><b>À: </b>"Eddie Hansen" <ehansen@pas.rochester.edu><br><b>Cc: </b>"Thibault Goudal" <thibault.goudal@u-bordeaux.fr>, "flash-users" <flash-users@flash.uchicago.edu><br><b>Envoyé: </b>Mercredi 26 Août 2020 16:22:14<br><b>Objet: </b>Re: [FLASH-USERS] [EXT] Fwd: plot_var variable<br></div><br><div>
Hi Thibault,
<div class=""><br class="">
</div>
<div class="">Just want to add that the coordinate information is not usually stored as grid-based variables. A<font class="" color="#000000">lthough you can still do this by creating your own variables to store coordinates in source codes, there’s no need
to do so, since</font> it can be reconstructed from block information in the HDF outputs. </div>
<div class=""><br class="">
</div>
<div class="">In addition to Eddie’s solutions, you can also use yt (<a href="http://www.yt-project.org" class="" target="_blank">www.yt-project.org</a>) 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).</div>
<div class="">
<div class=""><br class="">
Best wishes,<br class="">
—<br class="">
Suoqing Ji<br class="">
Sherman Fairchild Fellow<br class="">
TAPIR & Walter Burke Institute for Theoretical Physics<br class="">
California Institute of Technology<br class="">
<a href="http://www.tapir.caltech.edu/~suoqing" class="" target="_blank">http://www.tapir.caltech.edu/~suoqing</a>
</div>
<div><br class="">
<blockquote class="">
<div class="">On Aug 26, 2020, at 6:55 AM, Eddie Hansen <<a href="mailto:ehansen@pas.rochester.edu" class="" target="_blank">ehansen@pas.rochester.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Thibault,
<div class=""><br class="">
</div>
<div class="">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:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; white-space: pre-wrap;" class="">recenter(array_decompose(coord(amr_mesh),0),"zonal")</div>
<div style="margin: 0px; white-space: pre-wrap;" class=""><br class="">
</div>
<div style="margin: 0px; white-space: pre-wrap;" class="">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.</div>
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Aug 26, 2020 at 8:23 AM Thibault Goudal <<a href="mailto:thibault.goudal@u-bordeaux.fr" class="" target="_blank">thibault.goudal@u-bordeaux.fr</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">
<div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class="">
<div class="">Hi dear Flash users!<br class="">
</div>
<div class="">
<div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
<div class="">I am looking for a solution to print the (flash,x) spatial variable into a plot_var in the flash.par.<br class="">
</div>
<div class="">This variable is included in the chk but it seems that writing plot_var_1 = 'x ' in the .par doens't work.<br class="">
</div>
<div class="">I checked in the Flash.h but this variable doesn't exist.</div>
<br class="">
<div class="">Is there a way to print this variable in the plt outputs?<br class="">
</div>
<br class="">
<div class="">Thanks!<br class="">
</div>
<br class="">
<br class="">
<br class="">
<div class="">-- <br class="">
</div>
<div class="">
<div style="text-align:left" class=""><span style="" class="">Thibault Goudal</span></div>
<div style="text-align:left" class=""><span style="" class="">PhD Student CEA</span></div>
<div style="text-align:left" class=""><span style="" class="">CELIA CNRS UMR5107 laboratory</span></div>
<div style="text-align:left" class=""><span style="" class="">+33664160842</span></div>
<div style="text-align:left" class=""><span style="" class=""><a href="mailto:thibault.goudal@u-bordeaux.fr" target="_blank" class="">thibault.goudal@u-bordeaux.fr</a></span><br></div>
</div>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="" clear="all">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class="">Eddie Hansen, PhD<br class="">
Postdoctoral Associate</div>
<div class="">University of Rochester</div>
<div class="">607-341-6126 | Flash Center</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div></div></div><br></div></div></body></html>