Issue |
A&A
Volume 698, May 2025
|
|
---|---|---|
Article Number | A193 | |
Number of page(s) | 15 | |
Section | Numerical methods and codes | |
DOI | https://doi.org/10.1051/0004-6361/202554300 | |
Published online | 13 June 2025 |
PyGRO: A Python integrator for General Relativistic Orbits
Departamento de Física Fundamental y Matemáticas, Universidad de Salamanca,
Patio de Escuelas 1,
Salamanca
37008,
Spain
★ Corresponding author: rdellamonica@usal.es
Received:
27
February
2025
Accepted:
25
April
2025
The advancement in recent years in the field of experimental gravitation has allowed for testing of the equivalence principle in regimes that were previously unexplored and for unprecedented verifications of general relativity while also enabling tests of alternative theories of gravity. We introduce a new computational tool, PyGRO, with the aim of numerically integrating the geodesic equations for the trajectories of massive and massless test particles in any analytic four-dimensional space-time. The result of our work is a fast, modern, highly customizable, and user-friendly open-source Python package that can perform numerical integration of the geodesic equations. Combining symbolic and numerical calculations, PyGRO offers a variety of methods to obtain fully relativistic orbits with minimal intervention by the user, and it is able to work in full generality with any user-given symbolic expression of the space-time metric tensor. We tested PyGRO in an array of scenarios, and we validated the methodology by successfully reproducing classical results from general relativity, which we report in this article.
Key words: astrometry / celestial mechanics
© The Authors 2025
Open Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
This article is published in open access under the Subscribe to Open model. Subscribe to A&A to support open access publication.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.