TNL-SPH: Open-source modular SPH solver for modern computing platforms based on GPU accelerators
Description
TNL-SPH is a novel open-source implementation of Smoothed Particle Hydrodynamics (SPH), integrated as a submodule of the Template Numerical Library (TNL), designed for modern distributed computing platforms with GPU accelerators. Focusing on hydrodynamic problems using weakly compressible formulations, TNL-SPH offers a modular, high-performance framework for implementing various SPH schemes and particle methods. Developed in C++17, it leverages TNL’s templated vectors and expression templates to provide compact, algebraic representations of numerical schemes, simplifying the development of complex physical models. Its multilayered design separates parallelism, performance, and numerical methods, enabling seamless execution across diverse hardware, including multi-GPU and distributed systems. TNL-SPH outperforms existing SPH codes for free-surface flows and supports scalable, high-performance simulations. This paper presents the design, implementation, and performance of TNL-SPH, alongside its applications in hydraulic problems, demonstrating its versatility and efficiency for scientific and engineering computations.