A New Torus Generator for AGAMA
James Binney, Thomas J Wright, Eugene Vasiliev
TL;DR
The paper introduces AGAMA's new torus generator, significantly broadening the range of orbital tori that can be constructed for axisymmetric galactic potentials, including highly eccentric orbits. It couples flexible Hamilton-Jacobi maps (isochrone and harmonic-oscillator) with advanced point transformations and a generating-function framework to produce accurate angle-action coordinates and to interpolate between tori, enabling efficient Schwarzschild-like modelling and rapid stream generation. A dedicated action finder yields true angle-action coordinates by anchoring to a torus through a given phase-space point, improving upon the Stäckel Fudge in accuracy and reliability. The approach is demonstrated through applications to tidal streams, notably the GD1 stream, showing how torus-based models can reproduce observed stream morphologies and constrain the Galactic potential, with Python wrappers and accessible code now available for broad use. Overall, AGAMA provides a fast, flexible, and scalable toolkit for action-based galaxy modelling, including resonant dynamics via eTorus and practical data-model comparisons for Gaia-era stellar streams.
Abstract
Code is presented that computes and exploits orbital tori for any axisymmetric gravitational potential. The code is a development of the AGAMA software package for action-based galaxy modelling and can be downloaded as the AGAMAb code library. Although coded in C++, most of its functions can be accessed from Python. We add to the package functions that facilitate confronting models with data, which involve sky coordinates, lines of sight, distances, extinction, etc. The new torus generator can produce tori for both highly eccentric and nearly circular orbits that lie beyond the range of the earlier torus-mapping code. Tori can be created by interpolation between tori at very low cost. Tori are fundamentally devices for computing ordinary phase-space coordinates from angle-action coordinates, but AGAMAb includes an action finder that returns angle-action coordinates from any given phase-space location. This action finder yields the torus through the given point, so it includes the functionality of an orbit integrator. The action finder is more accurate and reliable but computationally more costly than the widely used Staeckel Fudge. We show how AGAMAb can be used to generate sophisticated but cheap models of tidal streams and use it to analyse data for the GD1 stream. With the most recently published distances to the stream, energy and angular momentum imply that the end that must be leading is trailing, but extremely small changes to the distances rectify the problem.
