[yt-users] star particles count

Latif latifne at gmail.com
Tue May 14 04:21:41 PDT 2013


Hi all,
I have star particles in enzo simulations.  Counting the particles by
creation time and type gave different results. Is it a problem with Yt or
comes from simulation? Any ideas?

star_particles = dd["creation_time"] > 0.0
print "Number of star particles by creation time", star_particles.sum()
star_particles = dd["particle_type"] == 2
print "Number of star particles by type", star_particles.sum()


Number of star particles by creation time 3818
Number of star particles by type 0

thanks in advance,
Cheers
Latif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130514/8bb8df5a/attachment.htm>


More information about the yt-users mailing list