[yt-users] Using yt to build simulation initial conditions

Matthew Turk matthewturk at gmail.com
Tue Jul 8 06:19:55 PDT 2014


Hi Stuart,

There is in fact a mechanism for doing so!  John ZuHone has used it in
the past, and I believe it should be portable.  There is a GDF writer,
and tests that test this functionality, which can be modified and
extended to output in any form you like.  I believe you can find some
examples in the documentation or in the tests for the GDF utilities.
If you have any specific questions, please go ahead and write back to
the list.

Best,

-Matt

On Mon, Jun 30, 2014 at 12:39 PM, Stuart Mumford <stuart at mumford.me.uk> wrote:
> Hello,
>
> I have a use case for yt that I do not know if anyone else has encountered
> (though somehow I think they might have done!). I need to build background
> conditions for my code, this for me entails complex stratified density and
> magnetic field geometry see this:
> http://labs.adsabs.harvard.edu/adsabs/abs/2013MNRAS.435..689G/ to get an
> idea of the problem.
>
> The yt derived field and other abstractions would make doing this much
> easier, however I don't know if there is a framework for creating base
> fields in yt in memory and then computing derived fields based on those and
> then saving a mix of input fields and derived fields to disk?
> To make this more complex I have some weird save out requirements, so being
> able to change array order and do mpi decomposition at save time would be
> very useful.
>
> Any suggestions or people telling me that this is obvious are welcome :)
>
> Thanks
> Stuart
>
> _______________________________________________
> 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