CraftSPH: A high-accuracy and composable differentiable SPH solver implemented in PyTorch
Gen Matono, Shujiro Fujioka, Mayuko Nishio
Abstract
Smoothed Particle Hydrodynamics (SPH) is well suited to a range of problems, particularly those involving large deformations in fluid dynamics. In recent years, in addition to the advancement of SPH formulations, the development of differentiable solvers has also progressed. However, unified frameworks that flexibly accommodate diverse numerical schemes, including advanced and implicit methods, while supporting continuous extension and updating remain limited. In this study, a high-accuracy and composable differentiable SPH solver, CraftSPH, has been developed. In CraftSPH, major computational operations are implemented as independent modules, which can be combined according to the intended purpose of constructing a solver. This design enables different computational schemes to be intuitively constructed from combinations of common components and allows newly developed high-accuracy discretization methods to be flexibly incorporated and extended. Furthermore, each module supports automatic differentiation, enabling applications to physical-parameter estimation and to optimization that combines SPH solvers with deep learning models. Accordingly, CraftSPH provides an SPH computational framework in which high-accuracy discretization, explicit and implicit computations, and automatic differentiation can be handled in a unified and extensible manner. To demonstrate the applicability of CraftSPH to a wide range of problems, forward analyses are conducted for Poiseuille flow, two- and three-dimensional dam-break problems, and a rising-bubble problem. In addition, the performance of automatic differentiation is evaluated through inverse problems involving parameter estimation for the Taylor-Green vortex and lid-driven cavity flow.
Create a lesson
Related papers
Particle dynamics in a microfluidic T-junction vortex flow: the role of history force
Matteo Chiatto, Luigi de Luca, Howard A. Stone et al.
Predicting the Final Stationary State of Sheared 2D Euler Fluids
Renato Pakter, Yan Levin
Re-emergence of fingering in solidifying liquid-metal drops
Siyu Zhang, Feng Wang, Yuan Ma et al.
The binormal flow: a toy model for turbulence
Elena Danesi, Pablo Merino, Luis Vega
Non intrusive parametric Reduced Order Models based on physics for incompressible flow
Cyrille Allery, Claudine Beghein
Conjugate heat transfer in turbulent pipe flow with azimuthally non-uniform heating
Jonathan Neuhauser, Davide Gatti, Bettina Frohnapfel