[yt-users] Annotating particles in FLASH2.5

C.S. Howard howardcs at mcmaster.ca
Fri Oct 3 09:35:26 PDT 2014


Hi John,

Absolutely! Just go to
http://www.physics.mcmaster.ca/~howardcs/FLASH2/FLASH2.htm   and click on
"Example Data File" to get one of my files to work with.

Cheers,
Corey



On Fri, Oct 3, 2014 at 12:28 PM, John ZuHone <jzuhone at gmail.com> wrote:

> Hi Corey,
>
> Any chance you can provide me a particle file that I could work with?
>
> Thanks,
>
> John
>
> John ZuHone
> Kavli Center for Astrophysics and Space Research
> Massachusetts Institute of Technology
> 77 Massachusetts Ave., 37-582G
> Cambridge, MA 02139
> (w) 617-253-2354
> (m) 781-708-5004
> jzuhone at space.mit.edu
> jzuhone at gmail.com
> http://www.jzuhone.com
>
> On Oct 3, 2014, at 12:22 PM, C.S. Howard <howardcs at mcmaster.ca> wrote:
>
> That would be awesome, as long as it isn't a huge headache. I'll be moving
> to the newer versions of FLASH soon, but for now I'm stuck with version 2.5.
>
> On Fri, Oct 3, 2014 at 12:18 PM, John ZuHone <jzuhone at gmail.com> wrote:
>
>> Hi Corey,
>>
>> Unfortunately, we don't support FLASH 2.5 particle data, because it is in
>> a different format from v. 3.0 and above.
>>
>> If you like, I'd be happy to help figure out some kind of workaround.
>>
>> Best,
>>
>> John
>>
>> John ZuHone
>> Kavli Center for Astrophysics and Space Research
>> Massachusetts Institute of Technology
>> 77 Massachusetts Ave., 37-582G
>> Cambridge, MA 02139
>> (w) 617-253-2354
>> (m) 781-708-5004
>> jzuhone at space.mit.edu
>> jzuhone at gmail.com
>> http://www.jzuhone.com
>>
>> On Oct 3, 2014, at 12:14 PM, C.S. Howard <howardcs at mcmaster.ca> wrote:
>>
>> Hi everyone,
>>
>> I'm trying to draw sink particles on a slice plot using FLASH 2.5 data.
>> I'm using yt 3.0 with the commands:
>>
>>  pf = yt.load(pltfiles[k])
>>  fig = plt.figure()
>>  ax1 = fig.add_subplot(111)
>>  axes = {'x':0, 'y':1, 'z':2}
>>  slices = {'x':[0.0,0.5,0.5],\
>>               'y':[0.5,0.0,0.5],\
>>               'z':[0.5,0.5,0.5]}
>>
>>   slc = SlicePlot(pf, 'z', 'density', center =
>> slices['z'],origin='domain')
>>   slc.annotate_particles(1.0, p_size=15.0, col="Black")
>>
>> but it doesn't work, giving me the following errors;
>>
>> Traceback (most recent call last):
>>   File "./sliceplots.py", line 42, in <module>
>>     slc.annotate_particles(1.0, p_size=15.0, col="Black")
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_container.py",
>> line 70, in newfunc
>>     args[0]._setup_plots()
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
>> line 862, in _setup_plots
>>     self.run_callbacks(f)
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_container.py",
>> line 315, in run_callbacks
>>     callback(cbw)
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py",
>> line 1055, in __call__
>>     &   ( reg[pt, field_y] >= y0 ) & ( reg[pt, field_y] <= y1 ) )
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
>> line 233, in __getitem__
>>     f = self._determine_fields([key])[0]
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
>> line 486, in _determine_fields
>>     finfo = self.ds._get_field_info(ftype, fname)
>>   File
>> "/1/home/howardcs/yt-3.0/yt-x86_64/src/yt-hg/yt/data_objects/static_output.py",
>> line 482, in _get_field_info
>>     raise YTFieldNotFound((ftype, fname), self)
>> yt.utilities.exceptions.YTFieldNotFound: Could not find field '('all',
>> 'particle_position_x')' in DensProfTurb_flattop_hdf5_plt_cnt_0200
>>
>> Seems like its having trouble finding the particle information for
>> FLASH2.5. Any suggestions on where to go from here?
>>
>> Thanks,
>> Corey
>>
>> _______________________________________________
>> 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
>>
>>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141003/06716ee7/attachment.htm>


More information about the yt-users mailing list