Table of Contents
Fetching ...

Journey into SPH Simulation: A Comprehensive Framework and Showcase

Haofeng Huang, Li Yi

TL;DR

The paper addresses the challenge of realistic, large-scale SPH fluid simulation with rigid-fluid interactions and high-viscosity fluids in computer graphics. It presents a unified framework that integrates multiple SPH formulations (EOS/WCSPH, PPE-based PCISPH/DFSPH) and a rigid-fluid coupling scheme, implemented on GPUs via CUDA and Taichi. The pipeline supports core simulation, post-processing, and rendering, and demonstrates large-scale results (e.g., 1.23M particles) and complex interactions, with performance benchmarking showing CUDA superiority. Key contributions include flexible solvers, explicit/implicit viscosity, robust fluid-solid coupling, and a scalable implementation for millions of particles, enabling realistic simulations for visual effects and scientific visualization. The framework solves the incompressible Navier–Stokes equations with the divergence-free constraint $\nabla \cdot \mathbf{v} = 0$ and momentum balance $\rho \frac{D \mathbf{v}}{D t} = - \nabla p + \mu \nabla^2 \mathbf{v} + \mathbf{f}_{ext}$, leveraging operator splitting to separate non-pressure and pressure steps and to support large time steps through PPE-based solvers. This work offers a practical, GPU-accelerated SPH toolkit that scales to millions of particles while supporting complex interactions and high-viscosity phenomena.

Abstract

This report presents the development and results of an advanced SPH (Smoothed Particle Hydrodynamics) simulation framework, designed for high fidelity fluid dynamics modeling. Our framework, accessible at https://github.com/jason-huang03/SPH_Project, integrates various SPH algorithms including WCSPH, PCISPH, and DFSPH, alongside techniques for rigid-fluid coupling and high viscosity fluid simulations. Leveraging the computational power of CUDA and the versatility of Taichi, the framework excels in handling large-scale simulations with millions of particles. We demonstrate the capability of our framework through a series of simulations showcasing rigid-fluid coupling, high viscosity fluids, and large-scale fluid dynamics. Furthermore, a detailed performance analysis reveals CUDA's superior efficiency across different hardware platforms. This work is an exploraion into modern SPH simulation techniques, showcasing their practical implementation and capabilities.

Journey into SPH Simulation: A Comprehensive Framework and Showcase

TL;DR

The paper addresses the challenge of realistic, large-scale SPH fluid simulation with rigid-fluid interactions and high-viscosity fluids in computer graphics. It presents a unified framework that integrates multiple SPH formulations (EOS/WCSPH, PPE-based PCISPH/DFSPH) and a rigid-fluid coupling scheme, implemented on GPUs via CUDA and Taichi. The pipeline supports core simulation, post-processing, and rendering, and demonstrates large-scale results (e.g., 1.23M particles) and complex interactions, with performance benchmarking showing CUDA superiority. Key contributions include flexible solvers, explicit/implicit viscosity, robust fluid-solid coupling, and a scalable implementation for millions of particles, enabling realistic simulations for visual effects and scientific visualization. The framework solves the incompressible Navier–Stokes equations with the divergence-free constraint and momentum balance , leveraging operator splitting to separate non-pressure and pressure steps and to support large time steps through PPE-based solvers. This work offers a practical, GPU-accelerated SPH toolkit that scales to millions of particles while supporting complex interactions and high-viscosity phenomena.

Abstract

This report presents the development and results of an advanced SPH (Smoothed Particle Hydrodynamics) simulation framework, designed for high fidelity fluid dynamics modeling. Our framework, accessible at https://github.com/jason-huang03/SPH_Project, integrates various SPH algorithms including WCSPH, PCISPH, and DFSPH, alongside techniques for rigid-fluid coupling and high viscosity fluid simulations. Leveraging the computational power of CUDA and the versatility of Taichi, the framework excels in handling large-scale simulations with millions of particles. We demonstrate the capability of our framework through a series of simulations showcasing rigid-fluid coupling, high viscosity fluids, and large-scale fluid dynamics. Furthermore, a detailed performance analysis reveals CUDA's superior efficiency across different hardware platforms. This work is an exploraion into modern SPH simulation techniques, showcasing their practical implementation and capabilities.
Paper Structure (29 sections, 19 equations, 6 figures, 1 table, 2 algorithms)

This paper contains 29 sections, 19 equations, 6 figures, 1 table, 2 algorithms.

Figures (6)

  • Figure 1: Detailed workflow of our SPH simulation framework. This diagram illustrates the step-by-step process of our SPH simulation pipeline. It begins with the "Prepare Scene" phase, where users define fluid and rigid body properties, along with simulation parameters. The "Simulation" phase is next, showcasing the sequential application of gravitational, viscous, and pressure forces, followed by the dynamic updates of fluid and rigid bodies, incorporating various solvers for viscosity and pressure management. The final "Post-Processing" phase involves surface reconstruction of fluid particles using SplashSurf and rendering the scene in Blender, utilizing Blender's rich community resources for scene creation.
  • Figure 2: Demonstration of Rigid-Fluid Coupling.
  • Figure 3: Fluid with extremely high viscosity.
  • Figure 4: Large Scale Fluid Simulation of fluid consisting of 1.23M particles.
  • Figure 5: Natural buckling effect produced by our framework.
  • ...and 1 more figures