Solving Milky Way-sized Systems with Haskap Pie: A Halo finding Algorithm with efficient Sampling, K-means clustering, tree-Assembly, Particle tracking, Python modules, Inter-code applicability, and Energy solving
Kirk S. S. Barrow, Thinh Huu Nguyen, Edward C. Skrabacz
TL;DR
Haskap Pie addresses the challenge of robustly identifying and tracking halos in Milky Way–sized systems across diverse simulation codes. It unifies overdensity finding, energy-based clustering, and forward/backward particle tracking into a Python-based workflow with memory- and load-balanced optimizations, enabling halo trees to be built on standard hardware. The method yields more complete halo populations (notably for halos with >100 particles), longer-lived subhalo tracks, and more physically consistent dynamical properties than Rockstar+Consistent Trees, while maintaining compatibility with AGORA and other simulations. This approach has significant implications for studies of mergers, satellite galaxies, and galaxy assembly, offering a flexible, accessible tool that scales from laptops to clusters. The work also highlights remaining limitations (e.g., completeness at low particle counts) and outlines clear directions for future development and integration with broader analysis pipelines.
Abstract
We describe a new Python-based stand-alone halo finding algorithm, Haskap Pie, that combines several methods of halo finding and tracking into a single calculation. Our halo-finder flexibly solves halos for simulations produced by eight simulation codes (ART-I, ENZO, RAMSES, CHANGA, GADGET-3, GEAR, AREPO, and GIZMO) and for both zoom-in or full-box N-body or hydrodynamical simulations and includes a unified, robust set of pre-tuned parameters. When compared to Rockstar and Consistent Trees, our halo-finder tracks subhalos much longer and more consistently, produces halos with better constrained physical parameters, and returns a much denser halo mass function for halos with more than 100 particles. Our results also compare favorably to recently described specialized particle-tracking extensions to Rockstar. Haskap Pie is well-suited to a variety of studies of simulated galaxies and is particularly robust for a new generation of studies of merging and satellite galaxies. For our initial paper, we focus on describing our algorithm's ability to find and track halos and subhalos in complex Milky Way-sized halo systems.
