Examples#

These application recipes build on the component tutorials in the User guide. The tutorials explain the API; these recipes combine it into simulation and analysis workflows. Both sets of pages are generated from Python sources in the repository’s examples directory.

The scripts use small, reproducible configurations for a short first run. Their particle counts and iteration limits are teaching defaults, not production settings or evidence of bulk behavior. Each recipe explains its observables and any checks needed before interpreting the result.

The figures are regenerated from each run. ParaView renders particles, meshes, contact networks and saved simulation frames; Matplotlib shows diagnostics such as energy, contact pressure, spectra and convergence. Short movies have playback controls, and selected scenes can be explored interactively in 3D.

Construction & packing pipelines#

Dynamics & active matter#

Inference, deformation & ensembles#

These short applications connect mechanics to measured outcomes: fitting a contact parameter, comparing constitutive response, following a rearrangement, and quantifying preparation dependence across independent simulations.

Reinforcement learning#

Start with the training tutorial for the optional, experimental reinforcement-learning subsystem.