arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.02639cs.DCcs.DS
收藏

在森林中寻找邻居:光滑粒子流体动力学模拟的b树

Finding Neighbors in a Forest: A b-tree for Smoothed Particle Hydrodynamics Simulations

Aurélien Cavelan, Rubén M. Cabezón, Jonas H. M. Korndorfer, Florina M. Ciorba

摘要:

在无网格计算流体动力学方法(例如平滑粒子流体动力学(SPH))中找到每个流体元素的精确近邻通常成为将其性能扩展到每个计算节点超过几百万个流体元素的主要瓶颈。树结构特别适用于SPH模拟代码,其依赖于找到每个流体元素(或SPH粒子)的精确近邻。在这项工作中,我们提出了一种新的树结构,命名为\textit{$b$-tree},它具有自适应分支因子,以减少邻居搜索的深度。根据粒子的空间分布,使用\tree寻找邻居具有$O(n)$的渐近最佳情况复杂度,这与其他经典树结构(如八叉树和四叉树)的$O(n \log n)$相反。我们还提出了拟议的树结构以及算法来建立它,并找到所有粒子的确切近邻。我们通过一组广泛的性能实验,在共享内存系统中评估所提出的基于树的算法的可扩展性。结果表明,b-树是高达$12\times$更快地建立树和高达$1.6\times$更快地找到所有粒子的确切邻居相比,它的八叉树形式。此外,我们将b-树的SPH代码,并显示其实用性在现有的八叉树实现,其中b-树是高达$5\times$更快地找到确切的近邻相比,传统的代码。

英文摘要:

Finding the exact close neighbors of each fluid element in mesh-free computational hydrodynamical methods, such as the Smoothed Particle Hydrodynamics (SPH), often becomes a main bottleneck for scaling their performance beyond a few million fluid elements per computing node. Tree structures are particularly suitable for SPH simulation codes, which rely on finding the exact close neighbors of each fluid element (or SPH particle). In this work we present a novel tree structure, named \textit{$b$-tree}, which features an adaptive branching factor to reduce the depth of the neighbor search. Depending on the particle spatial distribution, finding neighbors using \tree has an asymptotic best case complexity of $O(n)$, as opposed to $O(n \log n)$ for other classical tree structures such as octrees and quadtrees. We also present the proposed tree structure as well as the algorithms to build it and to find the exact close neighbors of all particles. We assess the scalability of the proposed tree-based algorithms through an extensive set of performance experiments in a shared-memory system. Results show that b-tree is up to $12\times$ faster for building the tree and up to $1.6\times$ faster for finding the exact neighbors of all particles when compared to its octree form. Moreover, we apply b-tree to a SPH code and show its usefulness over the existing octree implementation, where b-tree is up to $5\times$ faster for finding the exact close neighbors compared to the legacy code.

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

↑