JAX-SPH: A Differentiable Smoothed Particle Hydrodynamics Framework
Artur P. Toshev, Harish Ramachandran, Jonas A. Erbesdobler, Gianluca, Galletti, Johannes Brandstetter, Nikolaus A. Adams

TL;DR
JAX-SPH introduces a differentiable, Python-based Smoothed Particle Hydrodynamics framework compatible with deep learning, enabling advanced physics simulations and inverse problem solving.
Contribution
It presents the first Lagrangian fluid simulator in JAX with verified gradients, extending SPH algorithms and demonstrating applications in inverse problems.
Findings
Built a differentiable SPH framework in JAX
Verified gradient correctness through the solver
Enabled inverse problem solving and Solver-in-the-Loop applications
Abstract
Particle-based fluid simulations have emerged as a powerful tool for solving the Navier-Stokes equations, especially in cases that include intricate physics and free surfaces. The recent addition of machine learning methods to the toolbox for solving such problems is pushing the boundary of the quality vs. speed tradeoff of such numerical simulations. In this work, we lead the way to Lagrangian fluid simulators compatible with deep learning frameworks, and propose JAX-SPH - a Smoothed Particle Hydrodynamics (SPH) framework implemented in JAX. JAX-SPH builds on the code for dataset generation from the LagrangeBench project (Toshev et al., 2023) and extends this code in multiple ways: (a) integration of further key SPH algorithms, (b) restructuring the code toward a Python package, (c) verification of the gradients through the solver, and (d) demonstration of the utility of the gradients…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFluid Dynamics Simulations and Interactions · Lattice Boltzmann Simulation Studies · Fluid Dynamics and Heat Transfer
MethodsSPEED: Separable Pyramidal Pooling EncodEr-Decoder for Real-Time Monocular Depth Estimation on Low-Resource Settings
