Search arXivSearch

arXiv · 2602.05804

Momentum-conserving self-gravity in the phantom smoothed particle hydrodynamics code. Parallel dual tree traversal for the symmetric fast multipole method

Abstract

Tree codes that approximate groups of distant particles with multipole expansions are the standard way to accelerate the computation of self-gravity on particles. While momentum-conserving fast multipole methods exist, parallelisation is non-trivial and previous implementations have been limited to self-gravity with fixed softening lengths. We aim for a practical, parallel version of Dehnen's momentum-conserving Cartesian fast multipole method for the computation of the gravitational force in smoothed particle hydrodynamics (SPH) with adaptive gravitational force softening. We parallelise the dual tree walk by replicating the node-node interaction on the parents of each leaf node in the tree. While this duplicates work, it greatly simplifies the parallelisation and can be implemented with relatively minor changes from the previous non-conservative force algorithm in Phantom. We also adapt the tree opening criterion for adaptive softening lengths, such that all interactions within the softening kernel are handled pairwise (as in SPH) rather than with multipole expansions, also allowing the gravity calculation to be performed alongside the SPH force evaluation. We demonstrate that the new code conserves linear momentum to machine precision while giving similar force accuracy and computational performance to the previous (non-symmetric) fast multipole method in Phantom . The new method also gives better conservation of the angular momentum and orbital phase in a binary polytrope evolution. The symmetric fast multipole method is now the default for computing self-gravity in the public code.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yann Bernard, Timothée David-Cléris, Daniel J. Price, Mike Y. M. Lau. 2026-02-05. Momentum-conserving self-gravity in the phantom smoothed particle hydrodynamics code. Parallel dual tree traversal for the symmetric fast multipole method. https://arxiv.org/abs/2602.05804

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

A new method to subdivide a spherical surface into equal-area cells

A new method is proposed to divide a spherical surface into equal-area cells. The method is based on dividing a sphere into several latitudinal bands of near-constant span with further division of each band into equal-area cells. It is simple in construction and provides more uniform latitude step be-tween latitudinal bands than other methods of isolatitudinal equal-area tessellation of a spherical surface.

astro-ph.IM

AppleCiDEr. II. SpectraNet: A Spectroscopic Neural Network Classifier for Transients Demonstrated on ZTF Follow-up Data

Time-domain surveys such as the Zwicky Transient Facility have opened a new frontier in the discovery and characterization of transients. While photometric light curves provide broad temporal coverage, spectroscopic observations remain crucial for physical interpretation and source classification. However, existing spectral analysis methods, often reliant on template fitting or parametric models, are limited in their ability to capture the complex and evolving spectra characteristic of such sources, which are sometimes only available at low resolution. In this work, we introduce SpectraNet, a deep convolutional neural network designed to learn robust representations of optical spectra from transients. Our model combines multi-scale convolution kernels and pooling operations to extract features from preprocessed spectra in a hierarchical and interpretable manner. We train and validate SpectraNet on low-resolution time-series spectra obtained from the Spectral Energy Distribution Machine and other instruments, demonstrating better performance in classification compared to other known pipelines.

astro-ph.IM

GW-YOLO: Multi-transient segmentation in LIGO using computer vision

Time series data and their time-frequency representations from gravitational-wave interferometers present opportunities for artificial intelligence methods in signal and image processing, particularly for low-latency analysis. In this work, we introduce GW-YOLO, a signal and noise identification tool based on the YOLO (You Only Look Once) object detection framework. GW-YOLO identifies whether an observed transient contains noise, an astrophysical signal, or both, while providing time-frequency coordinates of detected objects through pixel-level segmentation masks. Our approach achieves a 53% detection efficiency for binary black hole signals in the signal-to-noise ratio (SNR) 12--15 range when they overlap with transient noise, increasing to more than 75% at SNR 15--18. For binary neutron star signals overlapping with transient noise, the detection efficiency reaches 57% at SNR 30--33 and 87% at SNR 39--42. To our knowledge, this is the first quantitative assessment of the ability to detect astrophysical signals overlapping with realistic instrumental noise in gravitational-wave interferometers. We also present a fully automated, low-latency pipeline that produces pixel-level segmentation masks for individual noise transients and astrophysical signals, enabling further automation of event validation and downstream noise-mitigation procedures.

astro-ph.IM