StarSmasher: Smoothed Particle Hydrodynamics code for smashing stars and planets
Abstract
Smoothed Particle Hydrodynamics (SPH) is a Lagrangian particle method that approximates a continuous fluid as discrete nodes, each carrying various parameters such as mass, position, velocity, pressure, and temperature. In an SPH simulation the resolution scales with the particle density; StarSmasher is able to handle both equalmass and equal numberdensity particle models. StarSmasher solves for hydro forces by calculating the pressure for each particle as a function of the particle's properties  density, internal energy, and internal properties (e.g. temperature and mean molecular weight). The code implements variational equations of motion and libraries to calculate the gravitational forces between particles using direct summation on NVIDIA graphics cards. Using a direct summation instead of a treebased algorithm for gravity increases the accuracy of the gravity calculations at the cost of speed. The code uses a cubic spline for the smoothing kernel and an artificial viscosity prescription coupled with a Balsara Switch to prevent unphysical interparticle penetration. The code also implements an artificial relaxation force to the equations of motion to add a drag term to the calculated accelerations during relaxation integrations. Initially called StarCrash, StarSmasher was developed originally by Rasio.
 Publication:

Astrophysics Source Code Library
 Pub Date:
 May 2018
 Bibcode:
 2018ascl.soft05010G
 Keywords:

 Software