Divergence-free spaces and Stokes¶
For incompressible Stokes flow, approximate the velocity in a space whose basis functions already have zero divergence. Pressure remains a separate scalar field.
Build a matrix-valued kernel¶
Let \(z=x-y\) and choose a scalar potential \(\phi(z)\) with the derivatives required by the construction. RBFLAB uses
This is Hessian minus Laplacian times identity, with the library's signed scalar-potential convention. Its column divergence is
Consequently the expansion
is divergence-free wherever the required derivatives exist, up to arithmetic/evaluation error. The construction applies in 2D and 3D. For local reconstruction, each local field has this property; stitching patches by nearest-stencil selection does not establish global continuity or a distributionally divergence-free field across patch jumps.
Couple velocity and pressure through momentum¶
The steady and unsteady momentum equations are
A DivergenceFreeSpace supplies velocity columns; a PressureSpace supplies scalar pressure columns. Schematically, the combined kernel is
Componentwise momentum and velocity-boundary functionals act on this combined space. In a Hermite construction, applying them on both sides produces coupled velocity/pressure blocks. The pressure kernel can differ from the scalar potential used to form the velocity kernel.
The divergence constraint is built into this trial space; the symbolic momentum formulation does not add a redundant divergence(U) = 0 equation. This differs from approximating every velocity component by independent scalar RBFs and imposing a separate continuity row. Analytical incompressibility alone is not a proof of stability or pressure accuracy for every cloud.
Pressure and its constant mode¶
If the equations and boundary data only involve \(\nabla p\), then \(p\) and \(p+C\) are indistinguishable. A pressure gauge selects one representative, for example
A pressure space modulo constants instead represents that equivalence directly. RBFLAB's divergence-free Stokes route uses this pressure-space interpretation and reports pressure gradients. Do not add an arbitrary pressure boundary condition to remove the constant mode; a gauge is not an extra physical boundary condition.
Reconstruction is another functional¶
Let \(s_i=(\boldsymbol u_i,p_i)\) be a local coupled interpolant with matrix \(H_i\) and data \(d_i\). Direct pressure-gradient reconstruction uses the target \(\tau_{k,z}s_i=\partial_kp_i(z)\). As in local weights,
These weights act on the complete local data vector. Coupling through the coefficient solve is expected even though the output functional selects pressure.
A momentum-based estimate is different:
The two reconstructions agree only to the extent that the reconstructed momentum equation holds at the evaluation point. Report the chosen reconstruction and distinguish velocity, pressure-gradient, and divergence errors. Higher derivatives may amplify approximation and rounding errors.
Try it: spaces-based Stokes, annular Stokes. Background: Narcowich & Ward and Wendland's global Stokes analysis. The latter is not automatically a local LHI error theorem.