Hi Anna,
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.
Thanks, John
On 10/11/2017 12:03 AM, Maan Hani wrote:
Hi all,
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.
Cheers, Maan
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 yt-users-bounces@lists.spacepope.org on behalf of aschauer@usm.lmu.de aschauer@usm.lmu.de Sent: Tuesday, October 10, 2017 7:54 AM To: Discussion of the yt analysis package Cc: glover@uni-heidelberg.de; turlough.downes@dcu.ie; john.regan@dcu.ie; klessen@uni-heidelberg.de Subject: [yt-users] Conversion of Arepo file into Enzo format?
Dear usergroup,
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 yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org