Skip to content

Configuration files

Every run reads, in this order:

  1. data/config/main-config.msp — the default simulation graph, installed with hippoLBM;
  2. the files listed under its includes: key: config_initialize.msp, config_compute_loop.msp, config_io.msp, config_analysis.msp and config_verification.msp;
  3. your deck, given on the command line.

A later file overrides earlier definitions key by key. The default simulation block runs a fixed sequence:

1
2
3
4
5
6
7
8
9
simulation:
  - message: "<hippoLBM banner>"
  - mpi_comm_world
  - init_cuda
  - initialize       # domain, LBM parameters, grid, initial distributions, obstacles, first outputs
  - compute_loop     # the LBM time loop
  - last_output      # final ParaView file and checkpoint if display_last_output is true
  - checker          # regression checks
  - finalize_cuda

A deck never edits simulation: it fills the hooks called by initialize and compute_loop. A typical deck defines:

1
2
3
4
5
6
7
do_domain:            # the domain (bounds, resolution, periodicity, bounce-back planes)
set_lbm_parameters:   # viscosity, relaxation time, body force
set_distributions:    # initial conditions (optional)
set_obstacles:        # obstacles (optional)
boundary_conditions:  # boundary conditions applied after streaming
analysis:             # profiles written every simulation_analysis_freq steps (optional)
global:               # number of steps, output frequencies, output directory

The complete default configuration is shown in Default YAML.

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.

pre_stream_bcs and post_stream_bcs

These two batches already contain the automatic bounce-back steps. To add a boundary condition to them, append it with +:

1
2
3
+pre_stream_bcs:
  - cavity_z_l:
     U: [0.1, 0.0, 0]

Writing pre_stream_bcs: without + replaces the default batch and removes the bounce-back on the domain walls and on the obstacles.