Efficient n-body simulations using physics informed graph neural networks

Víctor Ramos-Osuna, Alberto Díaz-Álvarez, Raúl Lara-Cabrera
4/1/2025
cs.LGphysics.comp-ph

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

This paper presents a novel approach for accelerating n-body simulations by integrating a physics-informed graph neural networks (GNN) with traditional numerical methods. Our method implements a leapfrog-based simulation engine to generate datasets from diverse astrophysical scenarios which are then transformed into graph representations. A custom-designed GNN is trained to predict particle accelerations with high precision. Experiments, conducted on 60 training and 6 testing simulations spanning from 3 to 500 bodies over 1000 time steps, demonstrate that the proposed model achieves extremely low prediction errors-loss values while maintaining robust long-term stability, with accumulated errors in position, velocity, and acceleration remaining insignificant. Furthermore, our method yields a modest speedup of approximately 17% over conventional simulation techniques. These results indicate that the integration of deep learning with traditional physical simulation methods offers a promising pathway to significantly enhance computational efficiency without compromising accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ramososuna2025efficient,
  title  = {Efficient n-body simulations using physics informed graph neural networks},
  author = {Víctor Ramos-Osuna and Alberto Díaz-Álvarez and Raúl Lara-Cabrera},
  year   = {2025},
  eprint = {2504.01169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.01169v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.01169.svg)](https://codeofpaper.com/paper/2504.01169)

Discussion