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

基于GPU的高效率LBM算法在密集移动物体上的应用

Efficient LBM on GPUs for dense moving objects using immersed boundary condition

Joel Beny, Jonas Latt

摘要:

在计算流体动力学中,使用浸入边界法(IBM)(Peskin 2000)来模拟运动物体的兴趣越来越大。实际上,这种方法是特别有效的,因为流体网格不需要是身体适配的或动态地调整到身体的运动。IBM通常与格子玻尔兹曼方法(LBM)结合使用(Krüger 2016)。它们优雅地融入这种方法的框架,并产生令人印象深刻的并行性能。使用图形处理单元(GPU)(Tölke 2010)加速LBM模拟也变得非常普遍,因为底层算法会自然地适应此类平台的架构。与传统CPU相比,在相同的财务成本或能耗下观察到一个数量级或更多的加速并不罕见。然而,IBM算法更难以适应GPU,因为它们复杂的内存访问模式与GPU在单个内存访问中将数据广播到大量GPU核心的策略相冲突。因此,在现有文献中,LBM-IBM代码的GPU实现仅限于浸没表面与流体单元总数相比非常小的情况(Valero-Lara 2014),这通常是障碍物周围外部流动模拟的情况。然而,这一假设在许多其他感兴趣的情况下是无效的。我们提出了一种新的方法,在CUDA语言的GPU上实现LBM-IBM,它允许处理一个大大更大的浸没表面与可接受的性能比以前的实现。

英文摘要:

There exists an increasing interest for using immersed boundary methods (IBMs) (Peskin 2000) to model moving objects in computational fluid dynamics. Indeed, this approach is particularly efficient, because the fluid mesh does not require to be body-fitted or to adjust dynamically to the motion of the body. Frequently, IBMs are implemented in combination with the lattice Boltzmann methods (LBM) (Krüger 2016). They fit elegantly into the framework of this method, and yield impressive parallel performances. It has also become quite common to accelerate LBM simulations with the use of Graphics Processing Units (GPUs) (Tölke 2010), as the underlying algorithm adjusts naturally to the architecture of such platforms. It is not uncommon that speedups of an order of magnitude, or more, at equal financial cost or energy consumption are observed, as compared to classical CPUs. IBM algorithms are however more difficult to adapt to GPUs, because their complex memory access pattern conflicts with a GPU's strategy of broadcasting data to a large number of GPU cores in single memory accesses. In the existing literature, GPU implementations of LBM-IBM codes are therefore restricted to situations in which the immersed surfaces are very small compared to the total number of fluid cells (Valero-Lara 2014), as is often the case in exterior flow simulations around an obstacle. This assumption is however not valid in many other cases of interest. We propose a new method for the implementation of a LBM-IBM on GPUs in the CUDA language, which allows to handle a substantially larger immersed surfaces with acceptable performance than previous implementations.

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

↑