Pysammos 1.0.0: a discrete-to-continuum transformation Python tool to analyse the rheology of granular materials
Claudia Elijas-Parra, E. C. P. Breard, John P. Morrissey, P. J. Zrelak, Mark Naylor
University of Edinburgh · University of Oregon
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Modeling fluid--solid interaction in three-dimensional granular systems: Two-way coupling of SPH and LS-DEMarXiv · 2026
- The Granule-In-Cell Method for Simulating Sand–Water MixturesACM Transactions on Graphics · 2025
- On the interaction of dilatancy and friction in the behavior of fluid-saturated sheared granular materials: A coupled computational fluid dynamics–discrete element method studyPhysics of Fluids · 2025
- PyDebrisFlow2D: A 2D Conservative Python Multiphysics Solver for Variable-Density Debris Flows with Voellmy Resistance, Bed Exchange, and Grain Size SegregationApplied Sciences · 2026
- Community Detection of Force-Chain Network Evolution During Particle Migration in Granular Packings Under Fluid ActionProcesses · 2026
- GranularGPT: Natural-Language-Driven End-to-End Discrete Element Method SimulationsarXiv · 2026