galpy:用于银河动力学的Python库
galpy: A Python Library for Galactic Dynamics
摘要:
我描述了galpy的设计、实现和使用,galpy是一个用于银河动力学计算的Python软件包。Galpy的核心是一个通用框架,用于在Python和C(用于加速计算)中表示银河势; Galpy函数、对象和方法通常可以将这些函数、对象和方法的任意组合作为参数。数值轨道积分支持各种龙格-库塔型和辛积分器。对于平面轨道,相空间体积的积分也是可能的。galpy支持使用轴对称势的最新数值逼近,并利用任何静态势的最新通用逼近,计算一般球形势的给定相空间点的作用角坐标和轨道频率。当前版本中还包括许多不同的分布函数(DF);目前这些分布函数包括二维轴对称和非轴对称圆盘DF、三维圆盘DF和潮汐流DF框架。我提供了几个示例来说明代码的使用。我提出了一个简单的模型,银河系的引力势符合最新的观测。我还数值计算的奥尔特函数为不同的示踪剂人口的恒星,并将其与一个新的解析近似。此外,我的特点的运动学温暖的磁盘的椭圆m=2扰动的详细响应。总的来说,Galpy由大约54,000行代码组成,包括模块中的23,000行代码,11,000行测试代码和大约20,000行文档。测试套件覆盖了99.6%的代码。Galpy可在http://github.com/jobovy/galpy上获得,大量文档可在http://galpy.readthedocs.org/en/latest上获得。
英文摘要:
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 it 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 .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。