Gaussian Fluids: A Grid-Free Fluid Solver based on Gaussian Spatial Representation

Jingrui Xing, Bin Wang, Mengyu Chu, Baoquan Chen

TL;DR

This paper introduces Gaussian Spatial Representation (GSR), a novel grid-free fluid solver that models continuous flow velocity as a weighted sum of 3D Gaussian functions. By leveraging the analytical differentiability of Gaussians, the solver bypasses traditional grid or particle discretizations to achieve highly memory-efficient, spatially adaptive simulations that preserve fine-scale vortex structures over long time horizons.

What Problem Does This Paper Address?

Simulating fluids accurately requires capturing intricate, chaotic spatial details (like turbulent vortices) while efficiently solving the underlying Navier-Stokes equations over time. Traditional methods fall into two main camps, both facing trade-offs:

  • Eulerian (Grid-based) methods: Fixed grids suffer from numerical dissipation (blurring out fine details) unless the grid resolution is massive, which triggers the curse of dimensionality in memory usage.
  • Lagrangian (Particle-based) methods: Particles (like SPH) struggle to capture thin, sharp structures accurately due to interpolation errors in sparsely sampled regions.

Recently, Implicit Neural Representations (INRs) have emerged as a continuous alternative, but they are computationally expensive because calculating spatial derivatives requires costly automatic differentiation.

The authors bridge this gap by adapting the core concept behind 3D Gaussian Splatting—which revolutionized multi-view image reconstruction—to represent continuous fluid velocity fields dynamically and efficiently.

Methods

Instead of storing velocities on a grid or discrete particles, GSR represents the velocity field $\tilde{\mathbf{v}}(\mathbf{x})$ as a combination of localized, anisotropic Gaussian kernels:

$$\tilde{\mathbf{v}}(\mathbf{x}) = \sum_{i=1}^{N} \mathbf{v}_i \hat{G}_i(\mathbf{x})$$

Where each Gaussian has a position, rotation, and scale. To make this computationally viable, the authors introduce several key innovations:

  1. Clamped Gaussians & Spatial Hashing: Gaussians are truncated beyond a small threshold to enforce local influence. A spatial hash table enables $O(1)$ retrieval of neighboring kernels, dropping the evaluation complexity from $O(N)$ to $O(1)$.
  2. Analytical Differentiation: Unlike neural networks, the spatial derivatives (divergence and curl) of Gaussians can be computed directly and analytically. This drastically accelerates physics-based optimization loops.
  3. Physics-Guided Optimization: The solver advances through time by first advecting the Gaussian positions using a standard Runge-Kutta (RK4) step, followed by an optimization phase driven by PDE losses (vorticity preservation and divergence-free constraints).
  4. Gradient Projection: To prevent the divergence loss and vorticity loss from fighting each other during optimization, the authors employ a multi-task learning technique called Gradient Surgery. If the gradients conflict, they project them onto orthogonal directions to ensure stable convergence.
Fig. 2. The gradiant projection technique can turn the contradicted gradi- ents into compatible ones, resulting in larger steps in gradient descent.
  1. Dynamic Reseeding: Gaussians that become excessively stretched due to turbulent flow are automatically split into smaller, isotropic Gaussians to maintain spatial adaptivity.

Datasets

The method was evaluated across a variety of classic 2D and 3D fluid dynamics benchmarks:

  • Taylor-Green Vortex: Used for quantitative validation against an analytical ground truth.
  • Taylor Vortex & 2D/3D Leapfrog Vortices: Used to test long-term stability and vortex preservation.
  • Vortices Pass: A benchmark testing fluid flow through a narrow gap between obstacles to validate harmonic field components.
  • Kármán Vortex Street: A classic boundary-induced obstacle flow scenario.
  • Vortex Ring Collision & Smoking Bunny: Complex 3D scenarios featuring high-detail turbulent interactions and intricate boundary geometries.

Key Insights and Ideas

  • The Power of Analytical Derivatives: The "aha moment" of GSR is that Gaussians provide the continuity benefits of neural representations (INRs) but allow for exact, closed-form spatial derivatives. This eliminates the heavy computational overhead of backpropagating through a neural network just to find a gradient.
  • Resolving the Physics Tug-of-War: Enforcing incompressibility ($\nabla \cdot \mathbf{u} = 0$) often inadvertently dampens the rotational details (vorticity) of a fluid. Using gradient projection ensures that making a fluid incompressible doesn't wipe out its turbulent character.
  • Memory Efficiency via Sparsity: Because Gaussians only need to exist where the fluid action is happening, the representation is incredibly lightweight compared to dense grids.

Key Results

  • Superior Accuracy: On the Taylor-Green benchmark, GSR achieved a Mean Squared Error (MSE) orders of magnitude lower ($2.18 \times 10^{-7}$) than traditional Eulerian solvers ($2.01 \times 10^{-2}$) and INR-based alternatives ($1.99 \times 10^{-5}$).
  • Extreme Memory Savings: For the Taylor Vortex scene, GSR required only 148.5 KB of memory, compared to 2 MB for a standard Semi-Implicit Euler grid and 8.8 MB for Smoothed Particle Hydrodynamics (SPH).
  • Vorticity Preservation: Qualitative results show that GSR maintains sharp, thin filaments of vorticity over hundreds of frames without the artificial damping common in other solvers.
Fig. 3. Our method compared with traditional Eulerian and Lagrangian discretizations and INSR on the Taylor vortex example. We show frame 300 while more are given in figure 9.

Limitations and Future Work

Despite its advantages, the authors note a few limitations:

  • Computational Speed: Because it relies on a first-order optimization loop (Adam) at each time step, GSR is currently slower than explicit, highly-optimized traditional grid or particle solvers.
  • Soft Constraints: The boundary conditions and divergence-free constraints are enforced via loss functions ("soft constraints"), leaving minor residual errors that can accumulate over long timelines.
  • Harmonic Consistency: While the solver handles obstacles well implicitly, it does not explicitly guarantee time-consistency for harmonic components in non-simply connected domains (domains with holes).

Future Directions: The authors plan to explore hard physical constraints, improve harmonic component modeling, and leverage GSR's efficient gradient tracking for inverse problems like key-frame-based fluid control.

Summary updated

BibTeX
@inproceedings{xing2025gaussian,
  author = {Jingrui Xing and Bin Wang and Mengyu Chu and Baoquan Chen},
  title = {{Gaussian Fluids: A Grid-Free Fluid Solver based on Gaussian Spatial Representation}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2025},
  doi = {10.1145/3721238.3730620},
}
Figure