A fluid simulation system based on the MPS method

André Luiz Buarque Vieira-e-Silva, Caio José dos Santos Brito, Francisco Paulo Magalhães Simões, Veronica TeichriebarXiv 2021 · DOI

TL;DR

This paper introduces Voxar MPS, an open-source, parallelized framework that integrates several state-of-the-art numerical improvements into the Moving Particle Semi-implicit (MPS) method. By leveraging CUDA-based GPU acceleration, the system achieves up to a 43x speedup, enabling interactive-rate simulations of complex phenomena like multiphase oil spills and turbulent flows with hundreds of thousands of particles.

What Problem Does This Paper Address?

Simulating fluid flow is essential for everything from engineering coastal defenses to creating realistic visual effects in games. Traditional "mesh-based" methods (like FEM or FDM) struggle with large deformations and free-surface flows (where the liquid meets the air). "Meshless" particle-based methods like MPS are better suited for these scenarios but face two major hurdles:

  1. Numerical Instability: Standard MPS often suffers from "spurious pressure oscillations"—unphysical jitters in pressure that can ruin a simulation's accuracy.
  2. Computational Cost: Solving the governing equations for thousands or millions of particles is incredibly slow, especially when ensuring the fluid remains perfectly incompressible.

While various researchers have proposed individual fixes for these issues, there hasn't been a unified, high-performance, open-source tool that brings them all together—until now.

Methods

The authors developed a system that allows users to toggle between different "flavors" of the MPS method depending on their needs for speed versus precision:

  • Pressure Calculation: Users can choose the Fully Incompressible (FI) approach (high precision, high cost via the Poisson Pressure Equation) or the Weakly Compressible (WC) approach (faster, using an Equation of State).
  • Numerical Enhancements: The framework integrates several "corrected" models to fix standard MPS flaws, including:
  • CMPS: For better momentum conservation.
  • MPS-HS & MPS-HL: Higher-order source terms and Laplacian models to stabilize pressure.
  • ECS: Error-compensating terms to minimize incompressibility violations.
  • Fluid Models: Support for Multiphase flow (fluids with different densities) and Turbulent flow using a Sub-Particle Scale (SPS) model based on Large Eddy Simulation (LES) principles.
  • Parallelization: The core algorithms were rewritten for OpenMP (CPU) and CUDA (GPU). They utilized a "cell-linked list" strategy for neighborhood searching, which is the primary bottleneck in particle simulations.

Datasets (Validation Scenarios)

The authors validated their system using four classic fluid dynamics benchmarks:

  1. Elliptic Water Drop: Used to measure how well the system maintains constant volume (incompressibility).
  2. Dam Break: A standard test for numerical precision, comparing the "leading edge" of a collapsing water column against experimental data.
  3. Rayleigh-Taylor Instability: Testing the multiphase model's ability to handle density stratification (a heavy fluid sitting on top of a light one).
  4. Oil Spill: A qualitative comparison against experimental leakage from a damaged tank to validate multiphase interaction.

Key Insights and Ideas

  • The "Swiss Army Knife" Approach: The most significant contribution isn't a single new equation, but the integration. By providing a GUI to "switch on" specific improvements, the authors allow researchers to explore the trade-offs between stability, physical accuracy, and runtime performance in a single environment.
  • Scalability is Key: The GPU implementation shows that parallelization efficiency increases with the number of particles. While small simulations (around 1,000 particles) are actually slower on the GPU due to data transfer overhead, massive simulations (1.5 million+ particles) see exponential benefits.
  • Precision vs. Performance: The paper highlights that the Fully Incompressible (FI) model is a massive memory hog compared to the Weakly Compressible (WC) model, requiring nearly 4x the RAM for the same particle count.

Key Results

  • Massive Speedups: The CUDA-accelerated code achieved speedups ranging from 3x to 43.5x compared to sequential CPU execution.
  • Interactive Rates: The system can simulate 200,000 particles at 1 frame per second (FPS) and 46,000 particles at 4 FPS, which are considered interactive rates for complex engineering simulations.
  • Accuracy: In the Dam Break test, the proposed technique's results almost perfectly overlapped with experimental data, outperforming several older standard methods.
  • Open Source: The entire codebase is available on GitHub under the GPLv3 license, providing a rare high-performance baseline for the research community.

Limitations and Future Work

  • CPU Bottleneck: The OpenMP (CPU) version did not achieve significant speedups because the neighborhood search algorithm was not optimally parallelized for multi-core CPUs.
  • Memory Limits: Even with 11GB of VRAM, the GPU version hits a wall at roughly 1.5 million particles for the FI model.
  • Future Directions: The authors suggest moving toward Multi-GPU/Cluster support to handle even larger domains. They also propose using Neural Networks to learn the solutions to the costly Poisson Pressure Equation, which could potentially offer a massive leap in simulation speed.

Summary updated

BibTeX
@misc{vieiraesilva2021fluid,
  author = {André Luiz Buarque Vieira-e-Silva and Caio José dos Santos Brito and Francisco Paulo Magalhães Simões and Veronica Teichrieb},
  title = {{A fluid simulation system based on the MPS method}},
  year = {2021},
  eprint = {2105.01677},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.01677},
}
Figure