Skip to content

Boundary Conditions

Periodic dimensions need no boundary condition. On each non-periodic plane of the domain, one of the following conditions is applied:

Condition Operator Declared in Applied
No-slip wall pre_bounce_back / post_bounce_back domain: bounce_back_planes automatically, before and after streaming
Velocity (Zou-He) neumann boundary_conditions after streaming
Pressure / density rho boundary_conditions after streaming
Moving lid (equilibrium) lid_driven_cavity +post_stream_bcs or boundary_conditions after streaming
Moving lid (momentum injection) cavity_z_0, cavity_z_l +pre_stream_bcs before streaming

The six boundary planes are named after the plane they lie in; the same names are used by all operators (regions slot):

Name Plane
plan_yz_0 / plan_yz_l X = xmin / X = xmax
plan_xz_0 / plan_xz_l Y = ymin / Y = ymax
plan_xy_0 / plan_xy_l Z = zmin / Z = zmax

Several conditions can be listed in the same block; they are applied in order:

1
2
3
4
5
6
7
boundary_conditions:
  - neumann:
     U: [0.0, 0, 0]
     regions: [plan_xy_0, plan_xy_l]
  - rho:
     regions: [plan_yz_0, plan_yz_l]
     delta_p: [4.756243e-03 kg/m/s^2, -4.756243e-03 kg/m/s^2]

Appending to pre_stream_bcs / post_stream_bcs

These two batches contain the automatic bounce-back steps (domain walls and obstacles). Add conditions to them with +pre_stream_bcs: / +post_stream_bcs:; without +, the batch is replaced and the bounce-back is lost.

All the velocities U are given in physical units (m/s) and converted with the lattice celerity.

Obstacle surfaces (walls, balls, quadrics, STL meshes) are documented in Obstacles.