arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.14742physics.comp-ph
收藏

松弛时间等于1的流体流动格子玻尔兹曼方法:性能研究

The lattice Boltzmann method for fluid flows at relaxation time equal one: performance study

Maja Bacza, Tadeusz Tomczak, Maciej Matyka

AI总结:

本文评估了松弛时间τ=1的Tau1格子玻尔兹曼算法的高性能实现,通过多线程、向量化、减少除法和专用内存布局等优化,其性能比标准LBM实现高近4倍,且在三维变孔隙率多孔介质流动中处理速度几乎不受格子排列影响。

摘要:

为大规模流体流动问题运行大型计算机代码不仅需要大型超级计算机,还需要高效且经过良好优化的计算机代码,以节省这些超级计算机的资源。本文评估了最近提出的具有固定粘度和松弛时间τ=1的格子玻尔兹曼方法(LBM)算法(称为Tau1)的高性能实现。我们表明,Tau1算法的性能比其他最先进的标准LBM实现高出近4倍。我们通过详细的复杂度分析和基于代码的性能研究来支持这一发现,该代码包含多项优化,包括多线程、向量处理、显著减少的除法次数以及专用的内存布局。我们在孔隙率变化的多孔介质三维模型中研究了其在多孔介质流动中的性能,以使其在物理背景下具有合理性。我们发现性能随孔隙率下降,并将其与孔隙空间复杂度增加导致内存访问模式发生剧烈变化这一事实联系起来。与标准LBM实现中性能随格子链接数量下降不同,新算法以每秒流体节点更新数衡量的处理速度几乎恒定,与格子排列无关。

英文摘要:

Running large-scale computer codes for huge fluid flow problems requires not only large supercomputers but also efficient and well-optimized computer codes that save the resources of those supercomputers. This paper evaluates the high-performance implementation of the recently proposed Lattice Boltzmann Method (LBM) algorithm with a fixed viscosity and relaxation time $τ=1$ called Tau1. We show that the performance of the Tau1 algorithm is almost $4\times$ higher than other state-of-the-art standard LBM implementations. We support this finding by detailed complexity analysis and performance study based on the code with several optimizations, including multithreading, vector processing, significantly decreased number of divisions, and dedicated memory layout. We studied its performance in porous media flow in the three-dimensional model of porosity-varying porous medium to make it sound in the physical context. We find performance drops with porosity, which we link to the fact that memory access patterns change dramatically with the increased complexity of the pore space. In contrast to standard LBM implementations, where the performance drops with the number of lattice links, the processing speed of the new algorithm measured in fluid node updates per second is almost constant regardless of lattice arrangements.

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

↑