A-priori operator test for a sharp viscous stress on a 2-D MAC grid (architect, 2026-10-31).
Steady two-phase Stokes div(2 mu D(u)) - grad p + f = 0, div u = 0 on [0,1]^2 with a planar interface
phi = n.(x - c) - s (side A: phi < 0). Dirichlet data = exact FACE-AVERAGED velocities on every node outside
the unknown set (boundary faces and one ghost row). The MAC unknown is the face-averaged velocity, so the
error is measured against exact face averages. Direct sparse solve: this is the steady state of flow's
predictor + projection with any lagging of explicit terms.
Schemes (sample stress on cell centres = normal, on nodes = shear):
arith : beta_cell = mu(C), beta_node = mean of 4 cells (flow default)
harm4 : beta_node = harmonic of 4 cells (register Q4 option)
facef : exact PLIC face fraction per row, arithmetic ("sub-cell mu from PLIC")
linkh : each link difference divided by its own resistance (GFM / Liu-Fedkiw-Kang)
sharp : beta m + sum_l T_l(tau)(1 - beta Rbar_l), tau = interface traction
tau: 'oracle' (exact) or 'fit' (kinked LS fit on the low-mu side gradient, 3x3 block)