After the Poisson solve, SetPressure hands the operator the solved pressure field, which it
does not own. The velocity flux is not computed ahead of the velocity solve: the paired
Neumann adapter computes it in its Apply, which the linear system calls once per solve, from
the values the pressure field holds at that moment. The flux applied can therefore never be
older than the pressure, and no separate update call has to be ordered between the pressure
and velocity solves; the adapter’s UpdateBndCoeffs has nothing to do. Inside Apply, the
solved pressure is extracted from its boundary-adjacent pressure elements onto the
same boundary quadrature points. Using retained G and d, the pointwise target
is
| (31.7) |
The velocity values of the HOutflow regions are interpreted as fb, which enters
equations (P) and (V) through G = E -fb, and so hdesired already. The velocity adapter is
added to the velocity system with AddNeumannBCOp(op, "HOutflow"), so the default
Neumann operator of the system, which evaluates the VALUE of every other velocity
Neumann region, leaves these regions out, and the paired adapter supplies the whole
load
| (31.8) |
Duplicate local CG targets at boundary corners or edges are handled by a unique-target subset plus grouped contributions. This avoids both double-counting and atomics while preserving orientation signs.