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

CellListMap .jl:用于计算截止值内的成对粒子特性的高效且可定制的单元列表实现

CellListMap.jl: Efficient and customizable cell list implementation for calculation of pairwise particle properties within a cutoff

Leandro Martínez

摘要:

N体模拟和轨迹分析依赖于属性的计算,这些属性取决于截断内的成对粒子距离。例如,必须计算粒子间势能、力、分布函数、近邻列表和依赖于距离的分布。细胞列表被广泛使用,以避免计算距离以外的截止。然而,高效的小区列表实现难以定制。在这里,我们提供了一个快速和并行的实现单元格列表在朱莉娅,允许自定义函数的映射依赖于粒子的位置在2或3维。支持任意周期边界条件。可以使用自动微分和单位传播。该实施提供了一个框架,用于开发新的分析工具和模拟与自定义的潜力。所得计算的性能与专用软件中可用的邻居列表算法和小区列表的最新实现相当。为分子和天体物理模拟中的势能、力、成对速度分布、近邻列表和其他典型计算提供了实例。Julia包可以在http://m3g.github.io/CellListMap.jl上免费获得。可以以最小的开销与Python和R接口。

英文摘要:

N-body simulations and trajectory analysis rely on the calculation of attributes that depend on pairwise particle distances within a cutoff. Interparticle potential energies, forces, distribution functions, neighbor lists, and distance-dependent distributions, for example, must be calculated. Cell lists are widely used to avoid computing distances outside the cutoff. However, efficient cell list implementations are difficult to customize. Here, we provide a fast and parallel implementation of cell lists in Julia that allows the mapping of custom functions dependent on particle positions in 2 or 3 dimensions. Arbitrary periodic boundary conditions are supported. Automatic differentiation and unit propagation can be used. The implementation provides a framework for the development of new analysis tools and simulations with custom potentials. The performance of resulting computations is comparable to state-of-the-art implementations of neighbor list algorithms and cell lists, available in specialized software. Examples are provided for the computation of potential energies, forces, distribution of pairwise velocities, neighbor lists and other typical calculations in molecular and astrophysical simulations. The Julia package is freely available at http://m3g.github.io/CellListMap.jl. Interfacing with Python and R with minimal overhead is possible.

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

↑