Abstract
Modeling the mechanics of fluid in complex scenes is vital to applications in design, graphics, and robotics. Learning-based methods provide fast and differentiable fluid simulators, however most prior work is unable to accurately model how fluids interact with genuinely novel surfaces not seen during training. We introduce SurfsUp, a framework that represents objects implicitly using signed distance functions (SDFs), rather than an explicit representation of meshes or particles. This continuous representation of geometry enables more accurate simulation of fluid-object interactions over long time periods while simultaneously making computation more efficient. Moreover, SurfsUp trained on simple shape primitives generalizes considerably out-of-distribution, even to complex real-world scenes and objects. Finally, we show we can invert our model to design simple objects to manipulate fluid flow.
Introduction
Simulating fluid-solid interactions is critical for diverse fields, from automotive aerodynamics to cinematic visual effects. While traditional physics-based solvers are accurate, their computational cost is prohibitive for many real-time or iterative design applications. Machine learning, particularly Graph Neural Networks (GNNs), has emerged as a fast alternative. However, these "learned" simulators often fail when encountering novel geometries, leading to physical inconsistencies such as fluid "leaking" through solid boundaries.
Current state-of-the-art models like Graph Network Simulators (GNS) typically represent both fluids and boundaries as discrete particles. This approach suffers from two primary issues:
- Surface Penetration: High-velocity particles or sparse boundary representations allow fluid to "teleport" through solids.
- Computational Bottlenecks: Representing complex environments (e.g., coral reefs or furnished interiors) requires millions of boundary particles, leading to memory exhaustion and slow inference.
The SurfsUp Framework
SurfsUp (Surface implicit sUbstitution for particles) addresses these limitations by transitioning from explicit particle-based boundaries to implicit Signed Distance Functions (SDFs). An SDF, $F(p)$, provides the distance from any point $p$ to the nearest surface, with the sign indicating whether the point is inside or outside the object.
Simulation Pipeline
The SurfsUp architecture integrates SDFs into the GNN workflow:
- Encoding: For each fluid particle, the model queries the local SDF value and its gradient (the surface normal). These are concatenated as features to the fluid particle nodes.
- Processing: A standard GNN performs message-passing between fluid particles to compute internal dynamics.
- Weighted Training: To prioritize boundary integrity, the loss function applies a higher penalty ($\lambda=5$) to errors occurring near the surface.
By decoupling the surface complexity from the graph size, the computational cost scales only with the number of fluid particles, regardless of the environment's geometric detail.
Generalization and Results
A key strength of SurfsUp is its ability to generalize to out-of-distribution (OOD) geometries. By training on a simple dataset of primitives—spheres, boxes, cylinders, cones, and toruses—the model learns the local physics of curvature and slope. This local focus allows it to handle complex, high-resolution 3D scans without further training.
Performance Metrics
In comparative evaluations against the GNS baseline:
- Leakage Reduction: In OOD scenarios, GNS averaged over 33,000 particle penetrations, whereas SurfsUp reduced this to just 324.
- Scalability: In a massive $40 \times 27 \times 6$ meter terrain simulation (68,000+ particles), SurfsUp maintained near-zero penetration with constant graph complexity.
- Inverse Design: Because the pipeline is fully differentiable, the model can be used for inverse design tasks, such as optimizing the shape of a funnel to direct fluid into a specific target.
Discussion and Future Work
SurfsUp demonstrates that implicit surface representations significantly enhance the robustness and efficiency of learned fluid simulators. However, some limitations remain. The reliance on Neural SDFs (like SIREN models) can introduce minor artifacts if the gradients are not perfectly unit-norm. Additionally, the current framework is limited to static, rigid surfaces. Future research will explore two-way coupling for deformable objects and extending the model to handle multi-phase or highly viscous fluids.
Summary updated