Skip to content

Obstacles

Solid bodies are registered in the set_obstacles hook. Each operator adds one obstacle with a unique integer id; the nodes inside the obstacles are marked as solid and a bounce-back (no-slip) condition is applied on their surfaces automatically.

The Poiseuille deck has no obstacle. A sphere placed in the channel would read:

1
2
3
4
5
set_obstacles:
  - register_solid_ball:
     id: 0
     center: [0.05, 0.05, 0.05]
     radius: 0.01

Available obstacles:

Warning

Obstacle bounce-back is part of the default pre_stream_bcs batch. Do not replace this batch (use +pre_stream_bcs to add a condition to it), or add wall_bounce_back back in it.