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 < firstname.lastname@example.org> 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! Thanks
-- Thibault Goudal PhD Student CEA CELIA CNRS UMR5107 laboratory +33664160842 email@example.com _______________________________________________ yt-users mailing list -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: firstname.lastname@example.org