English

SWIFTGalaxy: a Python package to work with particle groups from SWIFT simulations

Astrophysics of Galaxies 2025-10-28 v1

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.

Keywords

Cite

@article{arxiv.2510.22328,
  title  = {SWIFTGalaxy: a Python package to work with particle groups from SWIFT simulations},
  author = {Kyle A. Oman},
  journal= {arXiv preprint arXiv:2510.22328},
  year   = {2025}
}

Comments

Accepted version. Reviewed through pyOpenSci, published in JOSS

R2 v1 2026-07-01T07:05:44.044Z