Hi Thibault,

You should be able to get the positions by accessing the fields "x" and "y".  These will be in YTArrays or unyt_arrays, both of which can be converted to different physical units.

-Matt

On Wed, Aug 26, 2020 at 10:28 AM Thibault Goudal <thibault.goudal@u-bordeaux.fr> wrote:
Hi!

Working on the FLASH code (dynamic mesh refinement), I am looking for how could I get from the HDF5 Outputs the spatial positions (in physical units).
Idealy, if I run a 2D simulation, I would like to obtain x and y arrays at a given time.
It is not necessarally a YT issue but it is obvious that some modules could help a lot.

Tell me if you have any idea!
Thanks


--
Thibault Goudal
PhD Student CEA
CELIA CNRS UMR5107 laboratory
+33664160842
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: matthewturk@gmail.com