arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.04998astro-ph.IM
收藏

一种利用化学计量矩阵处理天体化学系统的高效算法

An Efficient Algorithm for Astrochemical Systems Using Stoichiometry Matrices

Kazutaka Motoyama, Ruben Krasnopolsky, Hsien Shang, Kento Aida, Eisaku Sakane

AI总结:

针对天体化学大型反应网络的计算瓶颈,提出基于稀疏化学计量矩阵和循环计算的高效算法,证明 CRS 格式性能最优且速度约提升三倍。

摘要:

天体化学模拟是揭示星际介质中化学演化的有力工具。天体化学计算需要高效处理用于化学网络的大型矩阵。由于化学丰度的时间导数,大型化学反应网络往往成为计算瓶颈。我们提出一种采用化学计量矩阵方法的高效算法,与以往研究中使用的算法不同,该算法将这一耗时部分表示为循环。由于化学计量矩阵通常是稀疏的,因此采用我们算法的模拟性能取决于所使用的稀疏矩阵存储格式。我们使用常见存储格式开展了性能比较实验,包括坐标(COO)格式、压缩列存储(CCS)格式、压缩行存储(CRS)格式以及 Sliced ELLPACK(SELL)格式。实验结果表明,采用 CRS 格式的模拟最适合天体化学模拟,其速度约为以往研究中所用算法的三倍。此外,我们的算法不仅显著减少了计算时间,还显著减少了编译时间。我们还探讨了这些算法中并行化和稀疏矩阵重排的有益效果。

英文摘要:

Astrochemical simulations are a powerful tool for revealing chemical evolution in the interstellar medium. Astrochemical calculations require efficient processing of large matrices for the chemical networks. The large chemical reaction networks often present bottlenecks for computation because of time derivatives of chemical abundances. We propose an efficient algorithm using a stoichiometry matrix approach in which this time-consuming part is expressed as a loop, unlike the algorithm used in previous studies. Since stoichiometry matrices are sparse in general, the performances of simulations with our algorithm depend on which sparse-matrix storage format is used. We conducted a performance comparison experiment using the common storage formats, including the coordinate (COO) format, the compressed column storage (CCS) format, the compressed row storage (CRS) format, and the Sliced ELLPACK (SELL) format. Experimental results showed that the simulations with the CRS format are the most suitable for astrochemical simulations and about three times faster than those with the algorithm used in previous studies. In addition, our algorithm significantly reduces not only the computation time but also the compilation time. We also explore the beneficial effects of parallelization and sparse-matrix reordering in these algorithms.

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

↑