PySPH: A Python-based Framework for Smoothed Particle Hydrodynamics

Prabhu Ramachandran, Aditya Bhosale, Kunal Puri, Pawan Negi, Abhinav Muta, A. Dinesh, Dileep Menon, Rahul Govind, Suraj Sanka, Amal S. Sebastian, Ananyo Sen, Rohan Kaushik, Anshuman Kumar, Vikas Kurapati, Mrinalgouda Patil, Deep Tavker, Pankaj Pandey, Chandrashekhar Kaushik, Arkopal Dutt, Arpit Agarwal

Research output: Contribution to journalArticlepeer-review

23 Citations (Scopus)


PySPH is an open-source, Python-based, framework for particle methods in general and Smoothed Particle Hydrodynamics (SPH) in particular. PySPH allows a user to define a complete SPH simulation using pure Python. High-performance code is generated from this high-level Python code and executed on either multiple cores, or on GPUs, seamlessly. It also supports distributed execution using MPI. PySPH supports a wide variety of SPH schemes and formulations. These include, incompressible and compressible fluid flow, elastic dynamics, rigid body dynamics, shallow water equations, and other problems. PySPH supports a variety of boundary conditions including mirror, periodic, solid wall, and inlet/outlet boundary conditions. The package is written to facilitate reuse and reproducibility. This article discusses the overall design of PySPH and demonstrates many of its features. Several example results are shown to demonstrate the range of features that PySPH provides.

Original languageEnglish
Article number34
JournalACM Transactions on Mathematical Software
Issue number4
Publication statusPublished - Dec 2021
Externally publishedYes


  • CPU
  • GPU
  • open source
  • PySPH
  • Python
  • smoothed particle hydrodynamics

ASJC Scopus subject areas

  • Software
  • Applied Mathematics


Dive into the research topics of 'PySPH: A Python-based Framework for Smoothed Particle Hydrodynamics'. Together they form a unique fingerprint.

Cite this