An Efficient CUDA Implementation of Fast Algorithms for Computing Particle Interactions in Vortex Particle Method for 2D Flow Simulating

Authors

DOI:

https://doi.org/10.14529/cmse260302

Keywords:

CFD, vortex particle method, fast algorithm, particle interaction, Barnes–Hut method, LBVH tree, GPU computing, nearest neighbors

Abstract

This work addresses the problem of improving the computational efficiency of calculating mutual interactions between vortex particles in vortex particle methods for simulating 2D incompressible flows. Direct computation, with its quadratic complexity, becomes infeasible when the number of particles exceeds several tens of thousands, whereas achieving results that are quantitatively consistent with experiments requires introducing up to several million vortex particles. We have adapted and optimized a hybrid fast algorithm for GPUs, which combines the principles of the Barnes—Hut method and the Multipole method. This algorithm achieves quasi-linear computational complexity by constructing an LBVH-tree and employing multipole expansions to approximate the influence of distant particle clusters. Based on this core algorithm, we have also developed and implemented auxiliary GPU routines for nearest neighbor searches and for preventing particles from penetrating solid boundaries. The developed algorithms are integrated into the VM2D code. Computational experiments simulating flow around a system of airfoils were performed on NVIDIA GPUs (H100, Titan V, GeForce RTX 5080), confirming the high performance of the implementation. The optimizations resulted in a threefold speedup of the most time-consuming computational operations, while maintaining a very low level of error in calculating vortex particle velocities. This research opens up prospects for the use of optimized GPU algorithms and high-performance GPUs in resource-intensive calculations within the vortex particle method framework for computational fluid dynamics.

References

Joukowsky N.E. On attached vortices. Proceedings of the Department of Physical Sciences of the Society of Devotees of Natural Science. 1906. Vol. 13, no. 2. 14 p. (in Russian)

Belotserkovskii S.M., Nisht M.I. Separated and unseparated Flow of an ideal fluid past thin wings. Moscow: Nauka, 1978. 352 p. (in Russian)

Aubakirov T.O., et al. Nonlinear wing theory and its applications. Almaty: Gylym, 1997. 448 p. (in Russian)

Mimeau C., Mortazavi I. A review of vortex methods and their applications: from creation to recent advances. Fluids. 2021. Vol. 6. Article 68. DOI: 10.3390/fluids6020068.

Lifanov I.K. Singular integral equations and discrete vortices. Utrecht, VSP publ., 1996, 476 p.

Beale J.T., Majda A. Vortex methods. II: Higher order accuracy in two and three dimensions. Mathematics of Computation. 1982. Vol. 39, no. 159. P. 29–52. DOI: 10.1090/S0025-5718-1982-0658213-7.

Chorin A.J. Numerical study of slightly viscous flow. Journal of Fluid Mechanics. 1973. Vol. 57, no. 4. P. 785–796. DOI: 10.1017/S0022112073002016.

Degond P., Mas-Gallic S. The weighted particle method for convection-diffusion equations. Part 1: The case of an isotropic viscosity. Mathematics of Computation. 1989. Vol. 53, no. 188. P. 485–507. DOI: 10.2307/200871611.

Giannopoulou O., Colagrossi A., Di Mascio A., Mascia C. Chorin’s approaches revisited: Vortex particle method vs finite volume method. Engineering Analysis with Boundary Elements. 2019. Vol. 106. P. 371–388. DOI: 10.1016/j.enganabound.2019.05.026.

Dynnikova G.Ya. The Lagrangian approach to solving the time-dependent Navier-Stokes equations. Doklady Physics. 2004. Vol. 49. P. 648–652. DOI: 10.1134/1.1831530.

Hockney R.W., Eastwood J.W. Computer simulation using particles. CRC Press, 1988. 540 p.

Marchevsky I., Ryatina E., Kolganova A. Fast Barnes–Hut-based algorithm in 2D vortex method of computational hydrodynamics. Computers & Fluids. 2023. Vol. 266. Article 106018. DOI: 10.1016/j.compfluid.2023.106018.

Kolganova A., Marchevsky I. Parallel implementation of fast algorithms in the Vortex Particle Method. Communications in Computer and Information Science. 2023. Vol. 1868. P. 197–211. DOI: 10.1007/978-3-031-38864-4.

Kempka S.N., Glass M.W., Peery J.S., Strickland J.H., Ingber M.S. Accuracy considerations for implementing velocity boundary conditions in vorticity formulations. SANDIA rep. SAND-96-0583. 1996. DOI: 10.2172/242701.

Barnes J., Hut P. A hierarchical O(N logN) force-calculation algorithm. Nature. 1986. Vol. 324. P. 446–449. DOI: 10.1038/324446a0.

Greengard L., Rokhlin V. A fast algorithm for particle simulations. Journal of Computational Physics. 1987. Vol. 73, no. 2. P. 325–348. DOI: 10.1016/0021-9991(87)90140-9.

Dynnikova G.Ya. Fast technique for solving the N-body problem in flow simulation by vortex methods. Computational Mathematics and Mathematical Physics. 2009. Vol. 49. P. 1389–1396. DOI: 10.1134/S0965542509080090.

Burtscher M., Pingali K. An efficient CUDA implementation of the tree-based Barnes Hut n-body algorithm. GPU Computing Gems Emerald Edition. 2011. P. 75–92. DOI: 10.1016/B978-0-12-384988-5.00006-1.

Karras T. Maximizing parallelism in the construction of BVHs, octrees, and k-d trees. EGGH-HPG’12: Proceedings of the Fourth ACM SIGGRAPH / Eurographics conference on High-Performance Graphics. 2012. P. 33–37. DOI: 10.2312/EGGH/HPG12/033-037.

Bærentzen A., Aanæs H. Signed distance computation using the angle weighted pseudonormal. IEEE Transactions on Visualization and Computer Graphics. 2005. Vol. 11, no. 3. P. 243–253. DOI: 10.1109/TVCG.2005.49.

Published

2026-11-02

Issue

Section

Full Papers