Skip to content

Global Control

The global operator, the first operator of initialize, creates the slots shared by the whole simulation. Its default values are defined in data/config/config_initialize.msp:

global:
   timestep: 0
   physical_time: 0.
   compute_loop_continue: true
   simulation_paraview_freq: -1
   simulation_dump_freq: -1
   simulation_analysis_freq: -1
   simulation_print_log_freq: 1
   simulation_end_iteration: 10
   display_paraview_first_timestep: false
   display_last_output: false
   do_set_distributions: true
   has_bounce_back: false
Parameters' description
Parameter Description Type Default
simulation_end_iteration number of time steps int 10
simulation_print_log_freq log line period (steps) int 1
simulation_paraview_freq ParaView output period (steps), -1 = never int -1
simulation_analysis_freq period of the analysis batch (steps), -1 = never int -1
simulation_dump_freq checkpoint period (steps), -1 = never int -1
display_paraview_first_timestep write a ParaView file of the initial state bool false
display_last_output write a ParaView file and a checkpoint at the end of the run bool false
output_directory directory of all the outputs string hippoLBMOutputDir
timestep, physical_time current step and time, set by the loop (or by read_dump) 0
compute_loop_continue loop condition, set to false by the loop itself bool true
do_set_distributions run the default initialization (set to false by read_dump) bool true
has_bounce_back set by domain when bounce-back planes are declared bool false

A deck overrides only what it needs:

1
2
3
4
5
6
global:
   simulation_paraview_freq: 100
   simulation_end_iteration: 3000
   simulation_print_log_freq: 10
   simulation_analysis_freq: 300
   output_directory: "PoiseuilleTestDir"

Time step

There is no dt in global: the LBM time step is computed by lbm_parameters from the grid spacing and the relaxation time (or the celerity).