Font Size: a A A

Study Of CUDA-Based Fluid Simulation

Posted on:2012-04-15Degree:MasterType:Thesis
Country:ChinaCandidate:K ShiFull Text:PDF
GTID:2218330335999184Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of virtual reality, computer games and other graphics related industries, the fluid simulation already became a hot research direction in the graphics area. In recent years, the physically-based fluid simulation has made very great progress. It has been widly used in many area. However, as the computational process of this method is relatively quite complex, the fluid phenomenon simulated real-time poor. To improve the speed of the fluid simulation, this paper has done in-depth study of the following aspects:1. Based on CUDA technical fluid simulation acceleration method. Firstly, it separate these parallel parts(advect item, external force item, diffusion item) from the Navier-Stokes equations of fluid motion. Then they are mapped into the CUDA programming model of the device-side kernel functions. Finally, these core functions are parallel executed on the GPU, while the equation parts which has strong logic are ran in the CPU. this method not only plays a full GPU's parallel processing capabilities, and it also simplifies the traditional GPU fluid simulation. The results show that the speed of Based on CUDA technical fluid simulation has been further improved comparing to the speed of using a CPU. Such as the fluid scale is 3500 * 3500, the ratio of three-GPU and single GPU acceleration is 128.57.2. Acceleration simulation of fluid phenomena adopting way of multi-GPU. In this method, the fluid domain space is divided into several sub-regions, then these sub-regions are referred to different GPUs to be simulated cooperately. In the course of simulation, every GPU corresponding to the host thread communicates with each other, and synchronizes with rendering part of the process. This method of co-simulation not only improves the efficiency of the implementation of a single GPU, but also provides a cushion for designing a large scale fluid simulation clusting system in the future. The results show that the speed of multi-GPU has been further improved comparing to the speed of using a single GPU. Such as the fluid scale is3500*3500, the ratio of three-GPU and single GPU acceleration is 2.16.
Keywords/Search Tags:Fluid simulation, CUDA, Navier-Stokes equations, GPU, Cooperative work
PDF Full Text Request
Related items