Configuration files
Every run reads, in this order:
data/config/main-config.msp — the default simulation graph, installed with exaDEM;
- the files listed under its
includes: key (config_defaults.msp, config_numerical_schemes.msp,
config_globals.msp, config_iteration_log.msp, config_iteration_dump.msp, config_paraview.msp, ...);
- your deck, given on the command line, and the files it includes.
A later file overrides earlier definitions key by key. The default simulation block runs a fixed sequence:
| simulation:
name: sim
body:
- print_logo_banner
- hw_device_init # MPI and CUDA
- global # global parameters (time step, frequencies, ...)
- io_tree # output directories
- drivers # init_drivers + setup_drivers
- domain
- grid_flavor
- particle_regions
- input_data # particle creation and initialization
- check_input_data
- init_rcut_max
- grid_post_processing
- print_domain
- print_drivers
- first_iteration # first force computation, critical time step, first outputs
- compute_loop # the DEM time loop
- simulation_epilog
- hw_device_finalize
|
Spheres or polyhedra
A deck must include the configuration file of its particle type:
| includes:
- config_spheres.msp # or config_polyhedra.msp, or config_fragmentation.msp
|
These files replace the operators left to nop in the default graph by their sphere or polyhedron version
(neighbor search nbh_sphere / nbh_polyhedron, migration of the interactions, ParaView outputs, ...).
Hooks filled by a deck
A deck never edits simulation: it fills the hooks called by it. A typical deck defines:
| includes: # config_spheres.msp or config_polyhedra.msp
io_tree: # output directory (optional)
domain: # simulation box, cell size, periodicity
particle_regions: # spatial regions (optional)
input_data: # creation and initialization of the particles
setup_drivers: # walls, cylinders, meshes (optional)
compute_force: # gravity, contact law, external forces
global: # time step, number of steps, output frequencies
|
Overriding and appending
key: value replaces the whole block key;
- inside a map, only the keys you give are replaced (e.g.
global: { simulation_end_iteration: 1000 } keeps the
other globals);
+key: [ ... ] appends operators to the batch key instead of replacing it.
| compute_force: # replaces compute_force
- gravity_force
+compute_force: # appends to compute_force (e.g. in a deck including a common file)
- contact_sphere:
config: { kn: 1000, kt: 1000, kr: 0.0, mu: 0.1, damp_rate: 0.999 }
|