31.3 One time-integration stage: the complete workflow

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.


                         352... P41r.V.Re Pe IesrlMsseo6Etusc.XrrsiieutyVcretebebledoooxuPuctvnonitrodidyalasapursrsomyoyolenlavtusueiwpopoodldnravaktetee
 SetPresEsvuHarilesutGaThoateharitenehfdsebss cr(t to ot)ahnn,netl ud oaynapin v,reedrinlS Dato0iteci,rogt Eicrry,h a eltol∇eremt-e⋅ ascndatuals*pe,tdt ae vonreud filcrohnsciinttg⋅ ey (v.Γ∇a Eoulux;at e*trv)eaalnspu. ooarlatFdteoine ∇rmaVrtoy(PV*X w),M*iL,tfo thhrewnard-
the pairedtraNnesuaPfdmphoaapyrtanlsm;nyD H sethOareudita=vbfpOoltpuoe;nwr1 td,∕ra t(arhγceyteΔh attved)halna seupo veotesveeulo,rr*c aw tinrrtdiac=ytee fsessrtom topshnn+Vely1th*epitt arsonfes Γdustaollug∇ firgaueeenl Ddd*di arpconicrem=dhsblsiaeunltresl ce∇ go cVraeodffie*icffi.-i-ents.
 E - f b anedncHtie∇e cnlot⋅mms. uhpooS*lno ttzelvone f(tosesformrmifr-op(imnVm+)pt1,lh a piconrisdot)eje ebcolatrecs lmk iinewtena watrirsdt A t-hDotr IR baPonruso(nfodldruinamcertayiWrtR- iq tTmuoBpaaldpsirheciayOttsip)uc freaaolnrp sd uopninas+tcca1se.t..ter- adds it.

Figure 31.3 One complete implicit stage. The retained state created in step 3 is consumed in step 5; recomputing it after the pressure solve is neither necessary nor desirable.


31.3.1 Why the stage scale multiplies velocity and its gradient

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

s = --1-,    u * = sV *,   ∇u  * = s∇V  *.
    γ Δt
(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.