Skip to content

Initial Conditions

By default, the distribution functions are initialized at rest with a uniform density (\(\rho_{LBM} = 1\), i.e. avg_rho): the Poiseuille deck needs nothing more.

Additional initial conditions are added in the set_distributions hook, run after the default initialization:

1
2
3
4
5
6
7
8
9
set_distributions:
  - set_distribution:            # uniform rest state (as the default)
     value: 1.0
  - set_dp_pressure:             # + 1 MPa inside a sphere
     delta_p: 1.0e6
     quadrics: sphere
     transform:
       - scale:     [ 0.15, 0.15, 0.15 ]
       - translate: [ 1.0,  1.0, 1.0  ]

Available operators:

Restart

When the simulation restarts from a checkpoint (read_dump), set_distributions is skipped: the distributions of the checkpoint are used.