Skip to content

YAML basics

.msp files are YAML. The constructs used in exaDEM decks are:

# a comment
global:                          # a map (block)
  simulation_end_iteration: 10000 # scalar
  dt: 0.0005 s                   # value with a unit

io_tree:
  - io_config:
     dir_name: "MySimDir"        # string

input_data:                      # a list (batch of operators)
  - lattice:                     # operator with parameters, block style
     structure: SC
     types: [ Sphere1 ]          # a vector
     size: [ 1.0, 1.0, 1.0 ]
  - set_quaternion: { random: true }  # flow style

setup_drivers: nop               # a hook that does nothing

onika extensions

Syntax Meaning
includes: [ file.msp ] read other configuration files first (searched in the exaDEM configuration path)
+key: [ ... ] append to the batch key instead of replacing it
name: other_block the hook name runs the batch or operator other_block
name: nop the hook name does nothing
rebind: { slot: other } inside a batch, read/write the slot slot under the name other
loop: true, condition: slot repeat the batch while the boolean slot is true
condition: slot (without loop) run the batch only if the slot is true
0.5 m, 1.0e-4 s value with a unit, converted to the internal units

Debugging a deck

--debug-graph true prints the operator graph actually executed, and --debug-config true the final merged configuration.