SWIFTGalaxy: a Python package to work with particle groups from SWIFT simulations
arXiv:2510.22328 · doi:10.21105/joss.09278
Abstract
SWIFTGalaxy is an open-source astrophysics module that extends SWIFTSimIO to analyses of particles belonging to individual galaxies simulated with SWIFT. It inherits from and extends the functionality of SWIFTSimIO's SWIFTDataset class. It understands the content of halo catalogues and therefore which particles belong to a galaxy or other group of particles, and its integrated properties. The particles occupy a coordinate frame that is enforced to be consistent, such that particles loaded on-the-fly will match e.g.~rotations and translations of particles already in memory. Intuitive masking of particle datasets is also enabled. Utilities to make working in cylindrical and spherical coordinate systems more convenient are also provided. Finally, tools to iterate efficiently over multiple galaxies are provided.
Accepted version. Reviewed through pyOpenSci, published in JOSS
References in corpus (4)
- HBT+: an improved code for finding subhalos and building merger trees in cosmological simulations
- SWIFT: A modern highly-parallel gravity and smoothed particle hydrodynamics solver for astrophysical and cosmological applications
- Hunting for Galaxies and Halos in simulations with VELOCIraptor
- SOAP: A Python Package for Calculating the Properties of Galaxies and Halos Formed in Cosmological Simulations
Cited by in corpus (3)
- Modelling the evolution and influence of dust in cosmological simulations that include the cold phase of the interstellar medium
- Dynamical disequilibrium in dwarf galaxies: rethinking gas dynamics, rotation curves, and dark matter inference
- Gravitational potential drives the concentration dependence of the stellar mass-halo mass relation