Backward-facing Step
Steady channel flow over a backward-facing step at
Problem setup
The channel spans
Boundary conditions, exactly as they enter the loss:
- Inflow (
): for (zero on the step face), — terms u_in,v_in. - Walls (
, and the step face): no-slip — terms u_noslip,v_noslip. - Outflow (
): — term p_out.
Together with the three momentum/continuity residuals, that is eight loss terms balanced by grad-norm weighting; collocation points are drawn from the unstructured reference mesh with MeshSampler since the geometry is non-rectangular.

Results
The baseline never finds the recirculation bubble: it settles at a relative L2 error of 0.28 in


Run
cd examples/bfs_flow
python3 main.py --config=configs/fixed_pseudo_time.py| Config | Description |
|---|---|
configs/baseline.py | PirateNet baseline |
configs/pseudo_time.py | Adaptive pseudo-time stepping |
configs/fixed_pseudo_time.py | Constant pseudo-time weights (showcase) |
Notes
- Reading the
.vtureference data requirespip install pyvista.