arrow
Return

Efficient odd-even multigrid for pointwise incompressible fluid simulation on GPU

delete2024-02-13
delete0
PRE
AI
L
Luan Lyu
W
Wei Cao
X
Xiaohua Ren
E
Enhua Wu *
杨榛 cover
杨榛 (Zhi-Xin Yang) *
DOI:10.1007/s00371-024-03264-ydelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Fluid simulation is a well-established research field in computer graphics that aims to generate realistic and visually appealing simulations of fluids, including water, smoke, and fire. Divergence is identified as a crucial factor in achieving realistic fluid behavior. This article presents a GPU optimization of the pointwise incompressible fluid simulation technique, which uses pointwise incompressible velocity interpolation to ensure divergence at arbitrary points, rather than grid cells. Pointwise incompressible velocity interpolation at arbitrary points is the curl of velocity potential. The velocity potential can be obtained from the divergence-free velocities by solving a Poisson equation. To enhance the computational efficiency of the simulation, an odd-even geometric multigrid method is introduced to solve Poisson's equation on non-power-of-2 resolution grids. Additionally, to recover the potential on grid cells, a warp-level method is proposed via divergence-free velocities on grid cells. The proposed warp-level potential recovery method offers GPU optimization and enhanced efficiency, in contrast to the sweeping method that only provides CPU optimization for potential recovery. Furthermore, a locally enhanced method is proposed to recover the detailed velocity potential within small domains through the use of the odd-even multigrid. The experiments show that the odd-even multigrid outperforms Weber's multigrid by an average speedup factor of 4.32 across various grid sizes. On the other hand, the warp-level potential recovery method demonstrates notable speedups ranging from approximately 2-6 times for 2D grids and about 1.35-2.64 times for 3D grids when compared to the parallel sweeping method on GPU. The results of these contributions demonstrate remarkable improvements in the efficiency and performance of fluid simulations in computer graphics, harnessing the computational capabilities of modern GPUs to achieve visually appealing and realistic fluid behaviors.
Keywords:
Fluid simulation
Divergence-free
Pointwise incompressibility
Multigrid
GPU

Journal

Visual Computer cover
Visual Computer
IF:
2.9
Papers:
4.6K
Citations:
6.5K

Organization

T
Tencent
Scholars:
1.1K
Papers: 897
Citations: 5
U
University of Macau
Scholars:
1.1W
Papers: 1.3W
Citations: 2.0W
C
china university of petroleum
Scholars:
4.1W
Papers: 2.7W
Citations: 30
researcher View more organizations