30.8 Implementation map

Implementation routine

Mathematical or data-layout role

BuildBoundaryData

Select pressure regions opted in via USERDEFINEDTYPE="H"; construct boundary physical/coefficient fields and continuous-Galerkin scatter maps.

v_SetVelocityContext

Build the velocity-dependent data below, once, before time stepping.

BuildBoundaryElementData

Match faces to owning elements; create the restricted volume list, volume gather maps, the CurlCurlOp, and one PhysTraceExtractBndCond per region.

BuildBoundaryVelocityData

Store the outward normals and set up, on the boundary expansion of the velocity of every region, the ExpressionOp, FwdTransBCOp and BwdTransOp of the discrete Dirichlet velocity; on a region with a velocity component that is not Dirichlet, also store the normals with the Dirichlet components zeroed.

UpdateFlux

Called by Update, UpdateWithAcceleration and UpdateWeak: gather the velocity, apply the curl–curl, and call BuildBoundaryPhys.

GatherBoundaryElements

Perform the indexed copy in (30.11).

CurlCurlOp::Apply

Evaluate (30.12) on boundary-adjacent volume elements.

HOPressureVolumeCombine
Kernel

Combine the base/predictor and curl–curl terms on the restricted volume domain, before extraction (see §30.4.3).

BuildBoundaryPhys

Combine the flux on the restricted volume, extract it onto every region, and contract it with the normal; on a region with a velocity component that is not Dirichlet, extract P - R too and subtract its contraction with the normals with the Dirichlet components zeroed.

PhysTraceExtractBndCond
::Apply

Trace the combined flux to boundary quadrature points, as in (30.13).

HOPressureBoundaryCombine
Kernel

Contract the traced flux with n, as in (30.14).

EvaluateBoundaryVelocity

Evaluate uD (t) on the boundary: the expressions, projected onto the boundary expansion of the velocity, the projection at the first update only for a region without a time-dependent Dirichlet velocity condition.

SubtractBoundaryVelocity

Subtract sn ⋅uD.

BuildBoundaryCoeffs

Apply (30.15), concatenate regions, and gather into domain-block order.

v_Apply

Signed and grouped scatter-add in (30.16), at the interleave width of the forcing.

v_AddNeumannSurfaceIntegral

Sum the boundary coefficients into the surface integral of the flux, as in §30.7.