English

TinyDEM: Minimal open granular DEM code with sliding, rolling and twisting friction

Computational Physics 2025-12-05 v1 Soft Condensed Matter

Abstract

This article introduces TinyDEM, a lightweight implementation of a full-fledged discrete element method (DEM) solver in 3D. Newton's damped equations of motion are solved explicitly for translations and rotations of a polydisperse ensemble of dry, soft, granular spherical particles, using quaternions to represent their orientation in space without gimbal lock. Particle collisions are modeled as inelastic and frictional, including full exchange of torque. With a general particle-mesh collision routine, complex rigid geometries can be simulated. TinyDEM is designed to be a compact standalone program written in simple C++11, devoid of explicit pointer arithmetics and advanced concepts such as manual memory management or polymorphism. It is parallelized with OpenMP and published freely under the 3-clause BSD license. TinyDEM can serve as an entry point into classical DEM simulations or as a foundation for more complex models of particle dynamics.

Keywords

Cite

@article{arxiv.2507.12610,
  title  = {TinyDEM: Minimal open granular DEM code with sliding, rolling and twisting friction},
  author = {Roman Vetter},
  journal= {arXiv preprint arXiv:2507.12610},
  year   = {2025}
}

Comments

14 pages, 6 figures, 3 tables

R2 v1 2026-07-01T04:05:00.640Z