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.


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

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!

Thibault Goudal
PhD Student CEA
CELIA CNRS UMR5107 laboratory
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
Member address: matthewturk@gmail.com