A little background¶
exaDEM is a Discrete Element Method (DEM) code for large-scale granular simulations with spherical and non-spherical particles.
What is exaDEM?¶
exaDEM is a DEM simulation code developed in C++20 within the exaNBody framework, which provides the basis for
the DEM functionalities and the performance optimizations. Its parallelization strategy is hybrid: MPI between
processes and OpenMP threads inside each process. exaDEM also runs on MPI + GPU with the CUDA programming
model provided by the onika layer, so that the same operators can exploit GPU computing power.
The goal of exaDEM is to provide researchers and engineers with a modern, scalable tool to address DEM simulations,
from a few hundred grains on a laptop to hundreds of millions of grains on a supercomputer.
Particles¶
exaDEM handles two kinds of particles, selected by the configuration file included at the top of the input deck:
- spheres (
config_spheres.msp), described by a radius; - sphero-polyhedra (
config_polyhedra.msp), whose vertices are spheres and edges cylinders. The shapes and part of the contact detection come from the Rockable DEM code (CNRS). This approach also represents non-convex particles such as hexapods.
See Particles.
Software stack¶
exaDEM is built on the same software stack as exaStamp (molecular dynamics), exaMPM (material point method) and
hippoLBM (Lattice Boltzmann):
- onika provides the runtime: operators, the YAML simulation graph, OpenMP and CUDA parallelism, plugins.
- exaNBody provides the N-body data structures (particle grid, cells, ghost layers), the MPI domain decomposition with load balancing (RCB), neighbor lists, regions and generic operators (time integration, I/O).
- exaDEM provides the DEM fields, shapes, interactions, contact laws, drivers and analyses.
Default execution graph¶
exaDEM uses the operator execution system of exaNBody: a simulation is a graph of operators described in YAML. A
default set of operators runs a DEM simulation with a velocity-Verlet time integration scheme. Including either
config_spheres.msp or config_polyhedra.msp at the beginning of your input file replaces some operators left to
nop (no operation) by their sphere or polyhedron version. If neither file is included, the simulation does not
work.
The graph below shows the sequence of the main operators of exaDEM version 1.2.2.
- Violet: operators only called with the polyhedra variant.
- Blue: operators of the numerical time scheme.
Previous version of the graph
See Simulation Graph and Numerical Scheme.
Coupling¶
exaDEM is coupled with the Lattice Boltzmann code hippoLBM in a dedicated code named ExaCoLD (not open source)
to simulate grains immersed in a fluid.