SciPost logo

SciPost Submission Page

Bonsai-SPH: A GPU accelerated astrophysical Smoothed Particle Hydrodynamics code

by Jeroen Bédorf, Simon Portegies Zwart

This Submission thread is now published as

Submission summary

Authors (as registered SciPost users): Jeroen Bédorf
Submission information
Preprint Link:  (pdf)
Date accepted: 2020-04-17
Date submitted: 2020-02-28 01:00
Submitted by: Bédorf, Jeroen
Submitted to: SciPost Physics
Ontological classification
Academic field: Astronomy
  • Fluid Dynamics
  • Instrumentation and Methods for Astrophysics
Approach: Computational


We present the smoothed-particle hydrodynamics simulation code, Bonsai-SPH, which is a continuation of our previously developed gravity-only hierarchical $N$-body code (called Bonsai). The code is optimized for Graphics Processing Unit (GPU) accelerators which enables researchers to take advantage of these powerful computational resources. Bonsa-SPH produces simulation results comparable with state-of-the-art, CPU based, codes, but using an order of magnitude less computation time. The code is freely available online and the details are described in this work.

Author comments upon resubmission

We have updated the manuscript to take into the comments from the referee, for changes see the 'List of changes' section. The application example we will leave for a follow up paper.

List of changes

Changes made:

* Expanded upon differences/advantages/disadvantages between SPH and Grid codes
* Added a paragraph about moving grid codes that combine advantages of SPH and grid codes into a single method.

Multi-GPU section
* Expanded upon the problems faced
* Explain in further detail the performance difference between the multi-GPU gravity and multi-GPU SPH methods and which steps have to be taken to optimize the SPH method.

Published as SciPost Astro. 1, 001 (2020)

Login to report or comment