EnzoHierarchy.
find_particles_by_type
(ptype, max_num=None, additional_fields=None)[source]¶Returns a structure of arrays with all of the particles’ positions, velocities, masses, types, IDs, and attributes for a particle type ptype for a maximum of max_num particles. If non-default particle fields are used, provide them in additional_fields.