3 Applying SPH Algorithm

We used the Smoothed Particle Hydrodynamics (SPH) algorithm for realistic fluid simulation in VR. By referencing Matthias et al. [1] , we modeled the fluid using particles and we calculated the density, pressure, and viscosity for each particle and accounted for external forces such as gravity.  More details about properties calculation has been included in the project report. After we implemented the calculated properites for the particles, the particles could show the movement inside the bounding box, as shown in Figure 1 below.

Figure 1 : Simulation scene before optimization

Reference

[1] Müller, M., Charypar, D. and Gross, M., 2003, July. Particle-based fluid simulation for interactive applications. In Proceedings of the 2003 ACM SIGGRAPH/Eurographics symposium on Computer animation (pp. 154-159).