At each update, the velocity data on the selected elements is copied from the full solver field into the restricted field:
| (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.
The element operator computes
| (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.
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 for
this operator’s action on face
,
| (30.13) |
where 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
(or
for
Update) on the boundary-adjacent volume elements, since
. 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:
| (30.14) |
The discrete Dirichlet velocity 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.