30.4 Volume-to-boundary evaluation

30.4.1 Gathering boundary-adjacent volume elements

At each update, the velocity data on the selected elements is copied from the full solver field into the restricted field:

V restricted|K ←  V full|K .
(30.11)

This is an indexed copy of every quadrature point and velocity component; it does not project or interpolate the values. The gather understands the interleaved element layout used by Serial, AVX, CUDA, and HIP execution.

30.4.2 Curl–curl on the restricted volume

The element operator computes

CK  = ∇ × (∇ × V K )
(30.12)

at volume quadrature points. This operation must occur before tracing to the boundary: its derivatives require the volume polynomial, not merely its face values.

30.4.3 Trace interpolation and normal contraction

Each region is traced by its own instance of the library helper PhysTraceExtractBndCond in MultiRegions::detail (§28.4.2), which extracts a volume field onto the physical points of a continuous boundary region, including regions of mixed shape and order and the Gauss–Lobatto points of collapsed directions. Its volume expansion list is the restricted list of boundary-adjacent elements, which is built from an expansion-information map and has no mesh graph, so the mesh graph of the velocity field is passed to it. Writing Extractf(⋅) for this operator’s action on face f,

                 (  )
vf(xa) = ExtractfvK  (xa),
(30.13)

where a indexes the boundary region’s own quadrature points.

Because extraction is linear, the base and acceleration contributions are combined before tracing rather than after: one volume-domain kernel first forms the combined flux s (P  - νC ) (or s (R  - νC ) for Update) on the boundary-adjacent volume elements, since Extract (P )- ν Extract (C) = Extract (P - νC )
       f               f             f. A single PhysTraceExtractBndCond::Apply call per region then traces that combined flux to boundary points, and a separate kernel contracts it with the outward normal:

gf=  snf ⋅Extractf(P - νC )(xa)- s nf ⋅uD (xa,t).
 a     a                            a
(30.14)

The discrete Dirichlet velocity uD (t) is evaluated on the boundary expansion of the velocity, never traced from the volume: ExpressionOp evaluates the expressions at its points, FwdTransBCOp projects them onto it as DirBndCondOp sets the Dirichlet coefficients of the velocity, and BwdTransOp evaluates the projection at its points. Only the coefficients of the projection are kept, and for a region whose Dirichlet velocity conditions are not time-dependent they are computed once, at the first update. The evaluation at the points is written into the work storage of the region that held the traced flux, which is free by then. The velocity and pressure boundary expansions of a region must share their quadrature points, on which the outward normals are stored too.