保持动量的自引力在幻影光滑粒子流体动力学代码中的应用。并行双树遍历用于对称快速多重级方法
Momentum-conserving self-gravity in the Phantom. Parallel dual tree traversal for the fast multipole method
AI总结:
本文提出一种并行化的对称快速多重级方法,用于在光滑粒子流体动力学中实现自引力计算,保持动量精度并提升计算效率。
摘要:
树码通过多重展开近似远处粒子群,是加速粒子自引力计算的标准方法。尽管存在保持动量的快速多重级方法,但并行化却很不平凡,之前的实现仅限于具有固定软化长度的自引力。我们旨在为计算光滑粒子流体动力学(SPH)中的引力力而实现一个实用的、并行版本的Dehnen的保持动量的笛卡尔快速多重级方法,该方法具有自适应引力力软化。我们通过复制每个树叶节点的父节点的节点-节点相互作用来并行化双树遍历。虽然这会重复工作,但大大简化了并行化,并且可以相对少量的修改从Phantom之前的非保守力算法中实现。我们还调整了树打开标准以适应自适应软化长度,使得所有在软化核内的相互作用都以配对方式(如SPH)处理,而不是多重展开,同时也允许引力计算与SPH力评估同时进行。我们证明了新代码在机器精度下保持线性动量,同时在精度和计算性能上与Phantom之前的(非对称)快速多重级方法相似。新方法在双星聚变演化的角动量和轨道相位方面也表现更好。对称快速多重级方法现在成为公共代码中计算自引力的默认方法。
英文摘要:
Tree codes that approximate groups of distant particles with multipole expansions accelerate gravitational force calculations. While momentum-conserving fast multipole methods exist, parallelisation is non-trivial inside a modern SPH framework. We aim for a parallel momentum and angular momentum-conserving Cartesian multipole method for the computation of the gravitational force in smoothed particle hydrodynamics (SPH) with adaptive gravitational force softening in {\sc Phantom}. We modified Dehnen's original dual tree traversal algorithm to fit the parallel architecture of {\sc Phantom} by replicating the node-node interaction on the ancestors of each leaf node in the tree. While this notionally duplicates work, it greatly simplifies the parallelisation of the algorithm. We then recover the $\mathcal{O}(N)$ scaling of the algorithm by use of caches. We also adapt the tree opening criterion for adaptive softening lengths, such that all interactions within the softening kernel are handled pairwise (as in SPH) rather than with multipole expansions, also allowing the gravity calculation to be performed alongside the SPH force evaluation. We demonstrate that the new code conserves linear and angular momentum to machine precision while giving similar force accuracy and better computational performance to the previous (non-symmetric) self-gravity solver in Phantom. Our new fast multipole method is now the default for computing self-gravity in the public code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。