[yt-users] Conversion of Arepo file into Enzo format?
aschauer at usm.lmu.de
aschauer at usm.lmu.de
Wed Oct 11 06:39:52 PDT 2017
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 <jwise at physics.gatech.edu>:
> 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 at lists.spacepope.org> on behalf of
>> aschauer at usm.lmu.de <aschauer at usm.lmu.de>
>> Sent: Tuesday, October 10, 2017 7:54 AM
>> To: Discussion of the yt analysis package
>> Cc: glover at uni-heidelberg.de; turlough.downes at dcu.ie;
>> john.regan at dcu.ie; klessen at 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 at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.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
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
More information about the yt-users
mailing list