Moving lid (lid_driven_cavity)¶
Description¶
lid_driven_cavity models a moving wall on any of the six boundary planes. At each fluid node of the selected
planes, it resets the distribution functions to their equilibrium at the prescribed velocity \(\mathbf{U}\), keeping
the local density:
With \(\mathbf{U} = 0\), it acts as a wall at rest. It generalizes the cavity_z_0 / cavity_z_l
conditions, restricted to the Z planes.
YAML syntax¶
| Slot | Type | Default | Description |
|---|---|---|---|
U |
Vec3d |
required | velocity (m/s) of the wall |
regions |
[string] |
required | planes: plan_xy_0, plan_xy_l, plan_xz_0, plan_xz_l, plan_yz_0, plan_yz_l |
It must run after streaming: in post_stream_bcs or in boundary_conditions. When the domain also has
bounce-back planes, append it with +post_stream_bcs: so that it runs after the bounce-back completion.
Usage example¶
Lid-driven cavity at Re = 1000 (lbm_lid_driven_cavity)
The domain has no bounce-back plane: the three fixed walls are walls at rest, and the lid moves at 1 m/s.
post_stream_bcs:
- lid_driven_cavity:
U: [1, 0.0, 0]
regions: [plan_xz_l]
- lid_driven_cavity:
U: [0, 0.0, 0]
regions: [plan_xz_0, plan_yz_0, plan_yz_l]
See the lid-driven cavity tutorial.