galpy: A Python Library for Galactic Dynamics
Jo Bovy (IAS)

TL;DR
galpy is a comprehensive Python library for galactic dynamics, offering tools for potential modeling, orbit integration, action-angle calculations, and distribution functions, with applications to Milky Way modeling and stellar kinematics.
Contribution
This work introduces galpy, a versatile Python package that integrates advanced galactic dynamics computations with efficient C acceleration and extensive modeling capabilities.
Findings
Successfully models Milky Way potential consistent with observations
Calculates Oort functions and compares with analytical approximations
Analyzes disk response to elliptical perturbations
Abstract
I describe the design, implementation, and usage of galpy, a Python package for galactic-dynamics calculations. At its core, galpy consists of a general framework for representing galactic potentials both in Python and in C (for accelerated computations); galpy functions, objects, and methods can generally take arbitrary combinations of these as arguments. Numerical orbit integration is supported with a variety of Runge-Kutta-type and symplectic integrators. For planar orbits, integration of the phase-space volume is also possible. galpy supports the calculation of action-angle coordinates and orbital frequencies for a given phase-space point for general spherical potentials, using state-of-the-art numerical approximations for axisymmetric potentials, and making use of a recent general approximation for any static potential. A number of different distribution functions (DFs) are also…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
