Obstacles¶
Obstacles are solid bodies placed inside the simulation domain. They are registered in the set_obstacles hook,
called by setup_obstacles during the initialization. Each operator adds one obstacle to the list and requires a
unique integer id.
Then update_obstacles marks the nodes inside the obstacles as solid (OBST = -2 in the ParaView files), and
wall_bounce_back, part of the default pre_stream_bcs, applies a no-slip (bounce-back) condition at every
fluid/solid interface:
| Operator | Shape |
|---|---|
register_solid_wall |
axis-aligned box |
register_solid_ball |
sphere |
register_quadrics |
quadric surface: sphere / ellipsoid, cylinders, cone |
register_rshape |
STL mesh, with Minkowski rounding |
Warning
Do not replace pre_stream_bcs without keeping wall_bounce_back in it: use +pre_stream_bcs: to add a
condition. Some example decks without bounce-back planes set pre_stream_bcs: [ wall_bounce_back ]
explicitly, which keeps the obstacle bounce-back.
Obstacles are static: they are registered once, before the first time step.