Dear John and Maan,
many thanks for the emails and advice!
I'll try to backwards engineer the Enzo file format with yt then, sounds like a good plan. Maan, if you have helping routines coupled into yt, that would be great.
Thanks a lot, Anna
Zitat von John Wise email@example.com:
I've converted Gadget datasets to Enzo in the past (circa 2004!). I used qhull to generate a Voronoi tessellation that was then used for interpolation to a Cartesian grid. Then I manually refined that grid, flagging cells for refinement, and interpolating to finer grids around those cells. After all of this, I wrote a complete Enzo dataset out (grid files, hierarchy, and parameter file) from scratch. Be forewarned: there is some numerical noise created during the conversion, so we needed to let the system relax over a sound-crossing time.
I think you can do this with the tools provided in yt. It's not straightforward, but it's doable. I remember it took me about 2 weeks as a 3rd year PhD student (using IDL...), starting from scratch.
You'll have to regenerate the hierarchy file and parameter file. There is no mechanism to write them out, so you'll have to reverse engineer Enzo's write routines in python. I'm not too familiar with the octree in yt, but you should be able to turn those interpolated grids into an Enzo dataset, using h5py to write files directly in the Enzo format.
I hope this gets you started in the right direction, and I think using yt as an interpreter between formats is the easiest way forward.
On 10/11/2017 12:03 AM, Maan Hani wrote:
As far as I know, no-one has used the Voronoi grid to create the derived fields. However, you can simply read the Arepo data as a Gadget dataset. I have done that in the past and it works just fine with minor issues. I will try and cleanup the backend I cannibalized and maybe add it to yt as a temporary fix.
Maan H. Hani www.astro.uvic.ca/~mhani Vanier Scholar - PhD. Candidate
Dept. of Physics & Astronomy Tel : +1 250 721 8845 University of Victoria Fax: +1 250 721 7715 PO Box 1700 STN CSC Victoria, BC, V8W 2Y2 Canada
From: yt-users firstname.lastname@example.org on behalf of email@example.com firstname.lastname@example.org Sent: Tuesday, October 10, 2017 7:54 AM To: Discussion of the yt analysis package Cc: email@example.com; firstname.lastname@example.org; email@example.com; firstname.lastname@example.org Subject: [yt-users] Conversion of Arepo file into Enzo format?
we are currently thinking of mapping an output from an Arepo simulation (in the hdf5 file format) to Enzo. We are wondering if someone has done this before and could help us or if this even is somehow incorporated into yt.
Thanks for your help!
Best regards, Anna
yt-users mailing list email@example.com http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org _______________________________________________ yt-users mailing list firstname.lastname@example.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- John Wise Associate Professor of Physics Center for Relativistic Astrophysics, Georgia Tech http://cosmo.gatech.edu _______________________________________________ yt-users mailing list email@example.com http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org