The public operator, HOutflowBndCondOp, is not itself a boundary condition operator. It holds
the boundary data both conditions share and applies them with two methods: ApplyPressure
sets the Dirichlet pressure coefficients, and ApplyVelocity adds the velocity flux.
Two adapters present these to the linear systems, which accept only Dirichlet and
Neumann condition operators: GetPressureDirichletOp returns a DirBndCondOp,
HOutflowPressureAdapter, added to the pressure system with AddDirichletBCOp, and
GetVelocityNeumannOp a NeuBndCondOp, HOutflowVelocityAdapter, added to the velocity
system with AddNeumannBCOp. The Apply of each forwards to the matching method
of the operator, which the operator hands each adapter with SetOwner when it
creates it, so both refer to the same geometry, normals, and intermediate arrays.
Figure 31.3 shows the exact ordering inside SolveUnsteadyStokesSystem of the class
VelocityCorrectionScheme.
The history field passed to UpdatePressure is stored at the time-integrator scale. If it is
denoted by V *, the scale set by SetScale and the velocity the operator evaluates
are
| (31.3) |
Scaling only the velocity would make the viscous normal derivative and divergence
inconsistent with the switch and energy term. The boundary kernel therefore applies
velocityScale to both extracted quantities.