[yt-users] RadMC3DWriter and Ramses data

Marc Schartmann mschartmann at swin.edu.au
Sun Oct 4 22:57:37 PDT 2015


Thanks a lot.
I installed the Dev branch via the install script.





On 5 Oct 2015, at 2:41 pm, Nathan Goldbaum <nathan12343 at gmail.com<mailto:nathan12343 at gmail.com>> wrote:

There's an open pull request that adds support for actree style outputs to the radmc3d exporter:

https://bitbucket.org/yt_analysis/yt/pull-requests/1688/wip-adding-support-for-octree-style-output

If you merge that pull request in locally you could try it out. If you share how you've set up your yt installation (install script? pip? from a mercurial checkout? anaconda?) one of us could give instructions on how to test out the PR.

On Sun, Oct 4, 2015 at 10:30 PM, Marc Schartmann <mschartmann at swin.edu.au<mailto:mschartmann at swin.edu.au>> wrote:
Dear all,

I am trying to export the density distribution from a RAMSES run to RADMC-3D using RadMC3DWriter.
Whereas the example with the “StarParticle” data set works perfectly, it fails for any RAMSES data
I tried (e.g. the “ramses_mhd_amr” one).

Below is the output, complaining about a missing attribute in the RAMSES frontend.
I am not a yt expert, any help with how to fix this would be appreciated.

Thanks a lot.

Best wishes,

Marc



>>> writer = RadMC3DWriter(ds)
yt : [INFO     ] 2015-10-05 14:20:04,236 Loading field plugins.
yt : [INFO     ] 2015-10-05 14:20:04,237 Loaded angular_momentum (8 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,237 Loaded astro (15 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,237 Loaded cosmology (22 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,238 Loaded fluid (63 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,238 Loaded fluid_vector (95 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded geometric (111 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded local (111 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded magnetic_field (119 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded my_plugins (119 new fields)
yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded species (121 new fields)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lustre/projects/p054_swin/marc/galnuc_ramses/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/radmc3d_export/RadMC3DInterface.py", line 148, in __init__
    sorted_grids = sorted(ds.index.grids, key=lambda x: x.Level)
AttributeError: 'RAMSESIndex' object has no attribute 'grids'




_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org<mailto: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<mailto:yt-users at lists.spacepope.org>
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20151005/ff4982db/attachment.html>


More information about the yt-users mailing list