Mathematical Problems in Engineering
Volume 2012 (2012), Article ID 635631, 9 pages
Research Article

Real-Time Simulation of Fluid Scenes by Smoothed Particle Hydrodynamics and Marching Cubes

1College of Computer Science, Zhejiang University of Technology, Hangzhou 310023, China
2State Key Laboratory of Software Development Environment, Beijing 100083, China

Received 2 August 2012; Accepted 26 September 2012

Academic Editor: Fei Kang

Copyright © 2012 Weihong Wang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Simulating fluid scenes in 3DGIS is of great value in both theoretical research and practical applications. To achieve this goal, we present an algorithm for simulation of fluid scenes based on smoothed particle hydrodynamics. A 3D spatial grid partition algorithm is proposed to increase the speed for searching neighboring particles. We also propose a real-time interactive algorithm about particle and surface topography. We use Marching Cubes algorithm to extract the surface of free moving fluids from particles data. Experiments show that the algorithms improve the rate of rendering frame in realtime, reduce the computing time, and extract good real effects of fluid surface.