Smoothed particle hydrodynamics analysis and visualization with Python.


Plonk is under development. The API may change. It may contain bugs. However, please use Plonk and provide feedback by raising a GitHub issue.

Plonk is a Python tool for analysis and visualization of smoothed particle hydrodynamics data with a focus on astrophysical fluid dynamics, as opposed to cosmology.

With Plonk we aim to provide a Python alternative to tools such as the analysis tools bundled with Phantom, and to the visualization tool Splash.


If you use Plonk in a scientific publication, please cite the paper published in JOSS.

Mentiplay, (2019). Plonk: Smoothed particle hydrodynamics analysis and visualization with Python. Journal of Open Source Software, 4(44), 1884,

For BibTeX entry, see CITATION.bib.


The main author is Daniel Mentiplay.

If you would like to contribute, see


Copyright 2019 Daniel Mentiplay and contributors.

Plonk is available under the MIT license. For details see LICENSE.

Other Packages

Here are some other, mature, Python analysis and visualization packages for smoothed particle hydrodynamics, and other scientific, data:

  • pynbody — “an analysis package for astrophysical N-body and Smooth Particle Hydrodynamics simulations”.

  • Py-SPHViewer — “a parallel Python package to visualise and explore N-body + Hydrodynamics simulations using the Smoothed Particle Hydrodynamics (SPH) scheme”.

  • yt project — “yt is an open-source, permissively-licensed Python package for analyzing and visualizing volumetric data”.

In addition, SPLASH is a mature, Unix command line, “free and open source visualisation tool for Smoothed Particle Hydrodynamics (SPH) simulations”, written in Fortran.

Indices and tables