Neighborhood grid: A novel data structure for fluids animation with GPU computing

被引:9
作者
Joselli, Mark [1 ]
Junior, Jose Ricardo da S. [2 ]
Clua, Esteban W. [2 ]
Montenegro, Anselmo [2 ]
Lage, Marcos [2 ]
Pagliosa, Paulo [3 ]
机构
[1] PUC PR, Curitiba, Parana, Brazil
[2] UFF, Media Lab, Rio De Janeiro, Brazil
[3] Univ Fed Mato Grosso do Sul, FACOM, Campo Grande, Brazil
关键词
Fluid animation; Real-time simulation; GPU computing; GPGPU; Data structure; Fluid simulation; SMOOTHED PARTICLE HYDRODYNAMICS; SIMULATION; FLOWS;
D O I
10.1016/j.jpdc.2014.10.009
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper introduces a novel and efficient data structure, called neighborhood grid, capable of supporting large number of particle based elements on GPUs (graphics processing units), and is used for optimizing fluid animation with the use or GPU computing. The presented fluid simulation approach is based on SPH (smoothed particle hydrodynamics) and uses a unique algorithm for the neighborhood gathering. The brute force approach to neighborhood gathering of n particles has complexity O(n(2)), since it involves proximity queries of all pairs of fluid particles in order to compute the relevant mutual interactions. Usually, the algorithm is optimized by using spatial data structures which subdivide the environment in cells and then classify the particles among the cells based on their position, which is not efficient when a large number of particles are grouped in the same cell. Instead of using such approach, this work presents a novel and efficient data structure that maintains the particles into another form of proximity data structure, called neighborhood grid. In this structure, each cell contains only one particle and does not directly represent a discrete spatial subdivision. The neighborhood grid does process an approximate spatial neighborhood of the particles, yielding promising results for real time fluid animation, with results that goes up to 9 times speedup, when compared to traditional GPU approaches, and up to 100 times when compared against CPU implementations. (C) 2014 Elsevier Inc. All rights reserved.
引用
收藏
页码:20 / 28
页数:9
相关论文
共 39 条
[1]  
Adams B, 2007, ACM T GRAPHIC, V26, DOI [10.1145/1239451.1239499, 10.1145/1276377.1276437]
[2]  
Bayraktar Serkan, 2009, Journal of Graphics Tools, V14, P31
[3]  
Blelloch G.E., 1998, THEORY COMPUT SYST
[4]  
Cohen J.M., 2010, Proceedings of the 2010 ACM SIGGRAPH symposium on Interactive 3D Graphics and Games (New York, NY, USA, 2010), P15
[5]   A heterogeneous system based on GPU and multi-core CPU for real-time fluid and rigid body simulation [J].
da Silva Junior, Jose Ricardo ;
Gonzalez Clua, Esteban W. ;
Montenegro, Anselmo ;
Lage, Marcos ;
Dreux, Marcelo de Andrade ;
Joselli, Mark ;
Pagliosa, Paulo A. ;
Kuryla, Christine Lucille .
INTERNATIONAL JOURNAL OF COMPUTATIONAL FLUID DYNAMICS, 2012, 26 (03) :193-204
[6]  
Desbrun M., 1996, Computer Animation and Simulation '96. Proceedings of the Eurographics Workshop, P61
[7]  
Enright D, 2002, ACM T GRAPHIC, V21, P736, DOI [10.1145/566570.566581, 10.1145/566570.566645]
[8]   How GPUs Can Outperform ASICs for Fast LDPC Decoding [J].
Falcao, Gabriel ;
Silva, Vitor ;
Sousa, Leonel .
ICS'09: PROCEEDINGS OF THE 2009 ACM SIGARCH INTERNATIONAL CONFERENCE ON SUPERCOMPUTING, 2009, :390-399
[9]   Realistic animation of liquids [J].
Foster, N ;
Metaxas, D .
GRAPHICAL MODELS AND IMAGE PROCESSING, 1996, 58 (05) :471-483
[10]  
Foster N, 2001, COMP GRAPH, P23, DOI 10.1145/383259.383261