The First Star-by-star $N$-body/Hydrodynamics Simulation of Our Galaxy Coupling with a Surrogate Model
Keiya Hirashima, Michiko S. Fujii, Takayuki R. Saitoh, Naoto Harada, Kentaro Nomura, Kohji Yoshikawa, Yutaka Hirai, Tetsuro Asano, Kana Moriwaki, Masaki Iwasawa, Takashi Okamoto, Junichiro Makino
TL;DR
This work overcomes the billion-particle barrier in galaxy simulations by coupling a traditional N-body/SPH code with a surrogate neural network that predicts SN shell evolution, enabling a fixed global timestep and extreme parallelism. The approach leverages FDPS for scalable particle management and a PIKG kernel generator for optimized interaction calculations, achieving 300 billion particles on 148,900 Fugaku nodes (about 7.15 million CPU cores). The surrogate model is trained on $1\,M_\odot$ SN simulations, maps SPH to 60 pc voxel grids via SPH kernels, and uses Gibbs sampling to recover particle data, with CPU-only DL inference to minimize data transfer bottlenecks. Results demonstrate scalable performance across architectures (ARM, x86, GPUs) and validate the first star-by-star MW-like galaxy simulation, with potential applicability to other multiscale, short- vs long-time phenomena in physics and beyond.
Abstract
A major goal of computational astrophysics is to simulate the Milky Way Galaxy with sufficient resolution down to individual stars. However, the scaling fails due to some small-scale, short-timescale phenomena, such as supernova explosions. We have developed a novel integration scheme of $N$-body/hydrodynamics simulations working with machine learning. This approach bypasses the short timesteps caused by supernova explosions using a surrogate model, thereby improving scalability. With this method, we reached 300 billion particles using 148,900 nodes, equivalent to 7,147,200 CPU cores, breaking through the billion-particle barrier currently faced by state-of-the-art simulations. This resolution allows us to perform the first star-by-star galaxy simulation, which resolves individual stars in the Milky Way Galaxy. The performance scales over $10^4$ CPU cores, an upper limit in the current state-of-the-art simulations using both A64FX and X86-64 processors and NVIDIA CUDA GPUs.
