The Chrono distribution contains several demos for granular dynamics with the GRANULAR module.
Chrono::Granular provides support for GPU-accelerated granular dynamics via the penalty-based discrete element method (aka SMC).
Granular dynamics demos:
demo_GRAN_ballcosim
A simple co-simulation example: a triangle mesh represents a sphere represents whose dynamics are computed with a ___ system with external forces generated by a Chrono::Granular system of particles interacting with the mesh.
demo_GRAN_fixedterrain
Generates a set of particles which are fixed in space by sweeping out a meshed surface representing a fixed topography underlying loose granular material.
demo_GRAN_ShearBand
A box of loose material is settled and shoved to one side by a moving boundary condition plane.
demo_GRAN_terrainBox_SMC
A simple settling example used for performance analysis.