Skip to content

Tutorials & Examples

The examples are the input decks of the example directory of the exaDEM repository. Many of them have a minimal version (*_mini.msp, *_minimal.msp), mainly used for the tests (ctest), because the full examples can take a long time to run.

Running an example

From the build directory:

./exaDEM ../exaDEM/example/spheres/rigid-surface/rigid_surface.msp --omp_num_threads 4                     # full run
./exaDEM ../exaDEM/example/spheres/rigid-surface/rigid_surface.msp --set-global-simulation_end_iteration 100   # a few steps

Outputs are written under the current directory, in the directory set by io_config (dir_name) in each deck, or ExaDEMOutputDir by default.

Visualization in ParaView

  • Spheres: use the "Point Gaussian" representation and adjust the radius (one type), or select "Use Scale Array" with radius as "Gaussian Scale Array", unselect "Use Scale Transfer Function" and set "Gaussian Radius" to 1.
  • Polyhedra: see ParaView for polyhedra, OBBs and the contact network.
  • Drivers: only meshes have ParaView outputs; for cylinders, surfaces and balls, use "Sources" → "Geometric Shapes" → "Cylinder" / "Plane" / "Sphere".

Contents

Page Content
Examples with spheres rotating drums, rigid surface, imposed velocity, movable wall, STL mesh, RSA, jet, mirror boundary conditions
Examples with polyhedra generator, rotating drums, balls, STL box, funnel, rescaled shapes, fragmentation, impact
Show-cases large simulations on a laptop and on supercomputers
Hexapods in a rotating drum step-by-step tutorial: generation, deposit, rotation
Blade in a silo step-by-step tutorial with STL meshes
Public examples examples of the exadem-public-examples repository