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.
Efficient implementation of immersed boundary-lattice Boltzmann method for massive particle-laden flows Part I: Serial computing
浸没边界-格子玻尔兹曼方法(IB-LBM)是近年来被广泛应用于含颗粒流动模拟的一种方法。然而,它仅限于不超过O(103)粒子的小规模模拟。在这里,我们通过两个连续的工作扩展了IB-LBM的大质量颗粒负载流超过O(104)粒子。首先是第一部分:在单个CPU核心上进行串行计算,然后是第二部分:在多个CPU核心上进行并行计算。在这篇论文的第一部分,提出了一个高效的和本地化的实现IB-LBM串行计算。我们主要从三个方面进行了优化:不可压缩LBM的交换算法、IBM的局部网格到点算法和粒子对短程相互作用的改进网格搜索算法。此外,对LB碰撞项和外力项的半计算提出了对称算法。分析了在单个CPU核上的计算性能。不同尺度的二维(2D)和三维(3D)颗粒沉降在封闭的空腔中用于测试。固体体积分数从0到0.40变化。仿真结果表明,改进后的算法大大减少了计算量.对于无颗粒流,改进算法的每秒MLUPS(Mega Lattice Site Update per Second)可以达到36(2D)和12(3D)。对于含颗粒的流动,在稠密流动的模拟中,MLUPS可以达到不低于15(2D)和7(3D)。最后,我们讨论了新算法在MPI并行技术下实现大规模颗粒流高性能计算的潜力。
IB-Flows: an open-source multi-GPU immersed boundary code for fluid-structure interaction
Gran Sasso Science Institute (GSSI)(格兰萨索科学研究所);INFN–Laboratori Nazionali del Gran Sasso(意大利国家核物理研究所-格兰萨索国家实验室);Department of Physics and INFN, University of Rome, Tor Vergata(罗马托尔维加塔大学物理系及意大利国家核物理研究所);NVIDIA Corporation(英伟达公司);Physics of Fluids Group, University of Twente(特温特大学流体力学组)