CraftSPH: A composable framework for differentiable smoothed particle hydrodynamics implemented in PyTorch

Gen Matono, Shujiro Fujioka, Mayuko Nishio
9/24/2026
physics.flu-dyncs.LGmath.NA

No confident code implementation found for this paper.

Abstract

Smoothed particle hydrodynamics (SPH) is well suited to large-deformation fluid problems, and the growing use of automatic differentiation in engineering applications has motivated interest in differentiable SPH solvers. In this study, a composable differentiable SPH framework, CraftSPH, has been developed.

Show full abstract

In CraftSPH, major computational operations are implemented as independent modules that users can combine to construct solvers for different purposes. This design supports high-accuracy discretization and both explicit and implicit computation within a common framework, while allowing individual components to be maintained and extended. Selected numerical operations also support automatic differentiation (AD) for physical-parameter estimation and potential coupling with deep learning models. These capabilities were demonstrated through forward and inverse analyses. Forward analyses using an implicit SPH scheme with high-accuracy discretization showed good agreement with analytical and reference solutions for Poiseuille flow and a rising bubble, while capturing the key experimental trends in two- and three-dimensional dam-break problems. In inverse analyses, explicit and implicit SPH schemes were used to estimate kinematic viscosity in Taylor-Green vortex flow and Reynolds number in lid-driven cavity flow. The results also showed that the choice of operations included in the computational graph affects the computed gradients. Together, these findings demonstrate that CraftSPH enables users to assemble problem-specific solvers for forward and inverse analyses within a common framework.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{matono2026craftsph,
  title  = {CraftSPH: A composable framework for differentiable smoothed particle hydrodynamics implemented in PyTorch},
  author = {Gen Matono and Shujiro Fujioka and Mayuko Nishio},
  year   = {2026},
  eprint = {2609.38208},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.38208v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.38208.svg)](https://codeofpaper.com/paper/2609.38208)

Discussion