Matthieu Schaller matthieu.schaller@durham.ac.uk
PGR Student Doctor of Philosophy
Swift: A modern highly-parallel gravity and smoothed particle hydrodynamics solver for astrophysical and cosmological applications
Schaller, Matthieu; Borrow, Josh; Draper, Peter W; Ivkovic, Mladen; McAlpine, Stuart; Vandenbroucke, Bert; Bahé, Yannick; Chaikin, Evgenii; Chalk, Aidan B G; Chan, Tsang Keung; Correa, Camila; van Daalen, Marcel; Elbers, Willem; Gonnet, Pedro; Hausammann, Loïc; Helly, John; Huško, Filip; Kegerreis, Jacob A; Nobels, Folkert S J; Ploeckinger, Sylvia; Revaz, Yves; Roper, William J; Ruiz-Bonilla, Sergio; Sandnes, Thomas D; Uyttenhove, Yolan; Willis, James S; Xiang, Zhen
Authors
Josh Borrow
Dr Peter Draper p.w.draper@durham.ac.uk
Senior Computer Programmer
Mladen Ivkovic mladen.ivkovic@durham.ac.uk
Postdoctoral Research Associate
Stuart McAlpine
Bert Vandenbroucke
Yannick Bahé
Evgenii Chaikin
Aidan B G Chalk
Tsang Keung Chan tsang.k.chan@durham.ac.uk
Academic Visitor
Camila Correa
Marcel van Daalen
Willem Elbers willem.h.elbers@durham.ac.uk
Postdoctoral Research Associate
Pedro Gonnet
Loïc Hausammann
Dr John Helly j.c.helly@durham.ac.uk
Chief Experimental Officer
Filip Husko filip.husko@durham.ac.uk
PGR Student Doctor of Philosophy
Jacob Kegerreis jacob.kegerreis@durham.ac.uk
Academic Visitor
Folkert S J Nobels
Sylvia Ploeckinger
Yves Revaz
William J Roper
Sergio Ruiz-Bonilla
Thomas Sandnes thomas.d.sandnes@durham.ac.uk
PGR Student Doctor of Philosophy
Yolan Uyttenhove
James S Willis
Zhen Xiang
Abstract
Numerical simulations have become one of the key tools used by theorists in all the fields of astrophysics and cosmology. The development of modern tools that target the largest existing computing systems and exploit state-of-the-art numerical methods and algorithms is thus crucial. In this paper, we introduce the fully open-source highly-parallel, versatile, and modular coupled hydrodynamics, gravity, cosmology, and galaxy-formation code Swift. The software package exploits hybrid shared- and distributed-memory task-based parallelism, asynchronous communications, and domain-decomposition algorithms based on balancing the workload, rather than the data, to efficiently exploit modern high-performance computing cluster architectures. Gravity is solved for using a fast-multipole-method, optionally coupled to a particle mesh solver in Fourier space to handle periodic volumes. For gas evolution, multiple modern flavours of Smoothed Particle Hydrodynamics are implemented. Swiftalso evolves neutrinos using a state-of-the-art particle-based method. Two complementary networks of sub-grid models for galaxy formation as well as extensions to simulate planetary physics are also released as part of the code. An extensive set of output options, including snapshots, light-cones, power spectra, and a coupling to structure finders are also included. We describe the overall code architecture, summarise the consistency and accuracy tests that were performed, and demonstrate the excellent weak-scaling performance of the code using a representative cosmological hydrodynamical problem with ≈300 billion particles. The code is released to the community alongside extensive documentation for both users and developers, a large selection of example test problems, and a suite of tools to aid in the analysis of large simulations run with Swift.
Citation
Schaller, M., Borrow, J., Draper, P. W., Ivkovic, M., McAlpine, S., Vandenbroucke, B., Bahé, Y., Chaikin, E., Chalk, A. B. G., Chan, T. K., Correa, C., van Daalen, M., Elbers, W., Gonnet, P., Hausammann, L., Helly, J., Huško, F., Kegerreis, J. A., Nobels, F. S. J., Ploeckinger, S., …Xiang, Z. (2024). Swift: A modern highly-parallel gravity and smoothed particle hydrodynamics solver for astrophysical and cosmological applications. Monthly Notices of the Royal Astronomical Society, 530(2), 2378–2419. https://doi.org/10.1093/mnras/stae922
Journal Article Type | Article |
---|---|
Acceptance Date | Mar 27, 2024 |
Online Publication Date | Mar 29, 2024 |
Publication Date | 2024-05 |
Deposit Date | Apr 5, 2024 |
Publicly Available Date | Apr 5, 2024 |
Journal | Monthly Notices of the Royal Astronomical Society |
Print ISSN | 0035-8711 |
Electronic ISSN | 1365-2966 |
Publisher | Royal Astronomical Society |
Peer Reviewed | Peer Reviewed |
Volume | 530 |
Issue | 2 |
Pages | 2378–2419 |
DOI | https://doi.org/10.1093/mnras/stae922 |
Keywords | Space and Planetary Science; Astronomy and Astrophysics |
Public URL | https://durham-repository.worktribe.com/output/2378242 |
Files
Accepted Journal Article
(3.2 Mb)
PDF
Publisher Licence URL
http://creativecommons.org/licenses/by/4.0/
Published Journal Article
(4.3 Mb)
PDF
Licence
http://creativecommons.org/licenses/by/4.0/
Publisher Licence URL
http://creativecommons.org/licenses/by/4.0/
You might also like
Cosmological baryon spread and impact on matter clustering in CAMELS
(2024)
Journal Article
FLAMINGO: calibrating large cosmological hydrodynamical simulations with machine learning.
(2023)
Journal Article
The importance of black hole repositioning for galaxy formation simulations
(2022)
Journal Article
Downloadable Citations
About Durham Research Online (DRO)
Administrator e-mail: dro.admin@durham.ac.uk
This application uses the following open-source libraries:
SheetJS Community Edition
Apache License Version 2.0 (http://www.apache.org/licenses/)
PDF.js
Apache License Version 2.0 (http://www.apache.org/licenses/)
Font Awesome
SIL OFL 1.1 (http://scripts.sil.org/OFL)
MIT License (http://opensource.org/licenses/mit-license.html)
CC BY 3.0 ( http://creativecommons.org/licenses/by/3.0/)
Powered by Worktribe © 2025
Advanced Search