arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1110.4876astro-ph.EPastro-ph.IMmath.DSphysics.comp-ph
收藏

REBOUND:一个用于碰撞动力学的开源多用途N体程序

REBOUND: An open-source multi-purpose N-body code for collisional dynamics

Hanno Rein, Shang-Fei Liu

摘要:

REBOUND是一个新的多用途N-body代码,可以在开源许可证下免费使用。它被设计用于碰撞动力学,如行星环,但也可以解决经典的N体问题。它是高度模块化的,可以很容易地定制,以解决天体物理学及其他领域的各种不同问题。REBOUND带有三个辛积分器:蛙跳,辛epicoptic积分器(SEI)和智慧霍尔曼映射(WH)。它支持开放的,周期性的和剪切片边界条件。REBOUND可以使用Barnes-Hut树来计算自重力和碰撞。这些模块与MPI和OpenMP完全并行化。前者利用静态域分解和分布式本质树。两个新的碰撞检测模块的基础上,平面扫描算法也实现了。平面扫描算法的性能优于树代码的模拟,其中一个维度是远远长于其他两个,并在模拟这是准二维小于一百万个粒子。在这项工作中,我们讨论了在REBOUND中实现的不同算法,代码结构背后的哲学以及不同模块的具体实现细节。我们目前的准确性和扩展测试结果表明,代码可以有效地运行在桌面计算机和大型计算集群。

英文摘要:

REBOUND is a new multi-purpose N-body code which is freely available under an open-source license. It was designed for collisional dynamics such as planetary rings but can also solve the classical N-body problem. It is highly modular and can be customized easily to work on a wide variety of different problems in astrophysics and beyond. REBOUND comes with three symplectic integrators: leap-frog, the symplectic epicycle integrator (SEI) and a Wisdom-Holman mapping (WH). It supports open, periodic and shearing-sheet boundary conditions. REBOUND can use a Barnes-Hut tree to calculate both self-gravity and collisions. These modules are fully parallelized with MPI as well as OpenMP. The former makes use of a static domain decomposition and a distributed essential tree. Two new collision detection modules based on a plane-sweep algorithm are also implemented. The performance of the plane-sweep algorithm is superior to a tree code for simulations in which one dimension is much longer than the other two and in simulations which are quasi-two dimensional with less than one million particles. In this work, we discuss the different algorithms implemented in REBOUND, the philosophy behind the code's structure as well as implementation specific details of the different modules. We present results of accuracy and scaling tests which show that the code can run efficiently on both desktop machines and large computing clusters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑