[yt-users] RadMC3DWriter and Ramses data

Marc Schartmann mschartmann at swin.edu.au
Sun Oct 4 20:30:23 PDT 2015


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'



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


More information about the yt-users mailing list