Skip to content

Boundary Conditions

Periodic axes need no boundary condition. Each non-periodic plane needs one, chosen among:

Condition Declared in Typical use
bounce-back domain: bounce_back_planes fixed no-slip walls
neumann boundary_conditions prescribed velocity (Zou-He), fixed or moving walls
rho boundary_conditions prescribed pressure (inlet / outlet)
lid_driven_cavity +post_stream_bcs or boundary_conditions moving lid (equilibrium at the wall velocity)
cavity_z_0, cavity_z_l +pre_stream_bcs moving lid by momentum injection

In the Poiseuille deck, the two Z walls are at rest, imposed by a Neumann condition with zero velocity:

1
2
3
4
boundary_conditions:
  - neumann:
     U: [0.0, 0, 0]
     regions: [plan_xy_0, plan_xy_l]

The same channel can be closed with bounce-back walls instead:

1
2
3
4
5
6
do_domain:
  - domain:
     bounds:    [ [0,0,0], [0.1,0.1,0.1] ]
     cell_dims: [ 30 , 30 , 30 ]
     periodic:  [ true, true, false ]
     bounce_back_planes: [ plan_xy_0, plan_xy_l ]

Warning

A plane cannot be both periodic and a bounce-back plane: domain aborts.

The velocities U are given in physical units (m/s). See Boundary Conditions for the formulas and where each condition is applied in the time step.