Published November 2023 | Version Published
Journal Article

Novel conservative methods for adaptive force softening in collisionless and multispecies N-body simulations

  • 1. ROR icon California Institute of Technology
  • 2. ROR icon Carnegie Observatories
  • 3. ROR icon University of Southern California

Abstract

Modelling self-gravity of collisionless fluids (e.g. ensembles of dark matter, stars, black holes, dust, and planetary bodies) in simulations is challenging and requires some force softening. It is often desirable to allow softenings to evolve adaptively, in any high-dynamic range simulation, but this poses unique challenges of consistency, conservation, and accuracy, especially in multiphysics simulations where species with different 'softening laws' may interact. We therefore derive a generalized form of the energy-and-momentum conserving gravitational equations of motion, applicable to arbitrary rules used to determine the force softening, together with consistent associated time-step criteria, interaction terms between species with different softening laws, and arbitrary maximum/minimum softenings. We also derive new methods to maintain better accuracy and conservation when symmetrizing forces between particles. We review and extend previously discussed adaptive softening schemes based on the local neighbour particle density, and present several new schemes for scaling the softening with properties of the gravitational field, i.e. the potential or acceleration or tidal tensor. We show that the 'tidal softening' scheme not only represents a physically motivated, translation and Galilean invariant and equivalence-principle respecting (and therefore conservative) method but also imposes negligible time-step or other computational penalties, ensuring that pairwise two-body scattering is small compared to smooth background forces and can resolve outstanding challenges in properly capturing tidal disruption of substructures (minimizing artificial destruction) while also avoiding excessive N-body heating. We make all of this public in the GIZMO code.

Copyright and License

© 2023 The Author(s) Published by Oxford University Press on behalf of Royal Astronomical Society
This article is published and distributed under the terms of the Oxford University Press, Standard Journals Publication Model.

Acknowledgement

We thank our referee, Walter Dehnen, for many detailed checks and suggestions. Support for PFH was provided by NSF Research Grants 1911233, 20009234, 2108318, NSF CAREER grant 1455342, NASA grants 80NSSC18K0562, HST-AR-15800. Numerical calculations were run on the Caltech compute cluster ‘Wheeler’, allocations AST21010 and AST20016 supported by the NSF and TACC, and NASA HEC SMD-16-7592.

Data Availability

The data supporting this article are available on reasonable request to the corresponding author. The public code with additional numerical implementation details is available at http://www.tapir.caltech.edu/~phopkins/Site/GIZMO.html.

Additional details

Related works

Is new version of
Discussion Paper: arXiv:2212.06851 (arXiv)
Is supplemented by
Software: http://www.tapir.caltech.edu/~phopkins/Site/GIZMO.html (URL)

Funding

National Science Foundation
1911233
National Science Foundation
20009234
National Science Foundation
2108318
National Science Foundation
1455342
National Aeronautics and Space Administration
80NSSC18K0562
National Aeronautics and Space Administration
HST-AR-15800

Dates

Submitted
2022-12-11
Accepted
2023-08-20
Available
2023-08-25
Available
2023-09-20
Corrected and typeset