flow.bounce_back_mask
flow.bounce_back_mask(wall)
Which arriving populations came from a wall node, per direction.
incoming[q, x] is true when the node x - c_q – the one whose population would stream into x along direction q – is a wall. Those are precisely the populations halfway bounce-back replaces.
In NumPy for the same reason as :func:duct_walls.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| wall | np.ndarray | Boolean wall mask, (NX, NY, NZ). |
required |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | Boolean mask, (19, NX, NY, NZ). |