galpy: A python LIBRARY FOR GALACTIC DYNAMICS

galpy: библиотека Python для галактической динамики
Jo Bovy
2015-02-03

action-angle coordinatesdistribution functionsgalactic dynamicsgalactic potentialsnumerical orbit integration
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 included in the current release; currently, these consist of two-dimensional axisymmetric and non-axisymmetric disk DFs, a three-dimensional disk DF, and a DF framework for tidal streams. I provide several examples to illustrate the use of the code. I present a simple model for the Milky Way's gravitational potential consistent with the latest observations. I also numerically calculate the Oort functions for different tracer populations of stars and compare them to a new analytical approximation. Additionally, I characterize the response of a kinematically warm disk to an elliptical m = 2 perturbation in detail. Overall, galpy consists of about 54,000 lines, including 23,000 lines of code in the module, 11,000 lines of test code, and about 20,000 lines of documentation. The test suite covers 99.6% of the code. galpy is available at http://github.com/jobovy/galpy with extensive documentation available at http://galpy.readthedocs.org/en/latest .
1
The library supports numerical orbit integration with multiple Runge–Kutta-type and symplectic integrators, including planar phase-space-volume integration.
2
The package includes a Milky Way potential model, Oort-function calculations compared with a new analytical approximation, and detailed modeling of warm-disk response to an elliptical m=2 perturbation.
3
The release includes distribution-function frameworks for two- and three-dimensional disk populations, non-axisymmetric disks, and tidal streams.
4
galpy calculates action–angle coordinates and orbital frequencies for spherical, axisymmetric, and general static potentials using numerical and analytical approximations.
5
galpy contains approximately 54,000 lines overall, including 23,000 lines of module code and 11,000 lines of tests; its test suite covers 99.6% of the code.
6
galpy provides a Python and C framework for representing and combining arbitrary galactic gravitational potentials for efficient dynamical calculations.

galpy Python library for galactic-dynamics calculations, including models of galactic gravitational potentials, stellar orbits, distribution functions, and disk perturbations

The design, computational capabilities, and astrophysical applications of galpy for modeling galactic potentials, stellar orbital dynamics, tracer-population Oort functions, and the response of a kinematically warm disk to an elliptical m = 2 perturbation

Publication Details
Publication Date
2015-02-03
Journal
Publisher
ISSN
Access Type
Author Information
Authors
Jo Bovy
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat →
Make a presentation
100%