31.6 Velocity phase in detail

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

                               n+1
hdesired = 1-[(p- νd)n + G ] = ∂u----.
         ν                    ∂n
(31.7)

31.6.1 Why the default adapter leaves the outlet out

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

hcustom = hdesired.
(31.8)


 spwcorceoCstlveuamGvaesscskpenduotoalodrmmpcucapebrotnirre tipjiqtydsrnhevu-saeyceeNucstilo/ere-oc-uen--
IPsvriyowotygsmliicdrotaupthaubuenmn|lcopmne+Γoc ltu1aoWnmRficaRdaHloehdTapSaldeBrsddayse
  octhoNhpGdeee,effiurdscm r,iriaenedenngtniosns
   scatter- add

Figure 31.6 Velocity-update pipeline. Unlike pressure, velocity boundary data is a weak load: it is integrated against the boundary basis and scatter-added to the linear-system right-hand side.


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.