Preprints
https://doi.org/10.5194/egusphere-2026-2591
https://doi.org/10.5194/egusphere-2026-2591
05 Jun 2026
 | 05 Jun 2026
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

Pysammos 1.0.0: a discrete-to-continuum transformation Python tool to analyse the rheology of granular materials

Claudia Elijas-Parra, Eric C. P. Breard, John P. Morrissey, P. J. Zrelak, and Mark Naylor

Abstract. Granular flow processes involving different interstitial fluids and coupling regimes are widespread in both natural systems (e.g., landslides, rock avalanches, river sediment transport) and industrial applications (e.g., aggregates in concrete manufacturing, powder technology, animal feed). Despite this, the behaviour of complex granular flows is not fully understood. Modelling of granular media through software packages that couple the Discrete Element Method with Computational Fluid Dynamics (DEM-CFD) enables a comprehensive description of granular small-scale mechanics through simulations of particle-particle and particle-fluid interactions at high temporal and spatial resolution. These approaches are pivotal in the development of constitutive models that represent the bulk rheology of granular media. While DEM-CFD simulations provide particle-scale information (e.g., particle velocities and forces), extracting continuum fields requires a discrete-to-continuum (D2C) transformation that applies a mathematical approach termed coarse-graining. Although some DEM software packages include built-in D2C capabilities, others, such as MFiX-DEM, do not. Consequently, users are often required to develop custom D2C workflows or adapt simulation outputs to the requirements of other D2C tools. Hence, we introduce Pysammos, a Python package that performs discrete-to-continuum transformations and is designed to be user-friendly, open-source, and computationally efficient. Pysammos is able to process polydisperse granular mixtures of any particle shape, while also offering the option to analyse different particle phases separately. It post-processes output files from MFiX-DEM software and produces vtkhdf outputs ready for visualisation in ParaView, as well as a more generic h5 format for further data analysis. Pysammos is able to operate on standard desktop computers as well as on HPC systems. Finally, we showcase a variety of exemplar applications such as sediment erosion, crystals and magma in a conduit, bedload transport and impact cratering.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Claudia Elijas-Parra, Eric C. P. Breard, John P. Morrissey, P. J. Zrelak, and Mark Naylor

Status: open (until 31 Jul 2026)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
Claudia Elijas-Parra, Eric C. P. Breard, John P. Morrissey, P. J. Zrelak, and Mark Naylor

Data sets

Example granular material simulation data for the Pysammos Python package C. Elijas-Parra et al. https://doi.org/10.5281/zenodo.19351802

Model code and software

Pysammos v1.0.0 C. Elijas-Parra et al. https://doi.org/10.5281/zenodo.19355667

Pysammos - GitHub repository C. Elijas https://github.com/Claudia-Elijas/pysammos

Pysammos - Documentation C. Elijas https://claudia-elijas.github.io/pysammos/

Claudia Elijas-Parra, Eric C. P. Breard, John P. Morrissey, P. J. Zrelak, and Mark Naylor
Metrics will be available soon.
Latest update: 05 Jun 2026
Download
Short summary
Granular flows are widespread in nature and industry, yet poorly understood. Discrete particle simulations offer detailed insight into their behaviour, but only provide properties of the individual particles, such as velocity and force. To obtain bulk flow quantities relevant to science and engineering, such as pressure or strain rate, we present Pysammos: an open source, user-friendly too to process discrete particle simulation data into continuum fields.
Share