[yt-users] Annotating particles in FLASH2.5
C.S. Howard
howardcs at mcmaster.ca
Fri Oct 3 09:14:08 PDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141003/b3ee5f2f/attachment.htm>
More information about the yt-users
mailing list