Let
| Symbol | Implementation quantity |
| s |
|
| ν |
|
| R |
|
| V |
|
| P |
|
| uD(t) | discrete Dirichlet velocity: the boundary expressions at the
target time, set by |
| C(V ) |
|
Update evaluates
| (30.4) |
where .
UpdateWithAcceleration, which VelocityCorrectionScheme calls, adds the acceleration to
the flux of Update:
| Fbase | = s | (30.5) |
| Facc | = s | (30.6) |
Their explicit contributions cancel exactly, so it takes the predictor and not
. It then
subtracts the discrete Dirichlet velocity, producing
| (30.7) |
The velocity solve imposes the Dirichlet data of a region as its projection onto the
boundary expansion of the velocity, not the expression
itself, so the velocity
history from which
is formed holds
on the boundary. The part of
that
takes from that history is then a backward difference of
, the discrete
, which vanishes at a steady state. Subtracting
instead would leave
in the flux: the projection error divided by the implicit step size, which
grows as
decreases wherever the data is not representable on the boundary
expansion.
A velocity component that is not Dirichlet on a region, such as a Neumann component of a
slip wall or of an inflow, has no prescribed boundary velocity and takes no acceleration there:
its term in the flux is
. On such a region the operator takes
and
subtracts
from (30.7), so
UpdateWithAcceleration also reads .
VelocityCorrectionScheme keeps the history of the explicit forcing from which is
extrapolated only on a rank holding such a region, as
HasNonDirichletVelocity
reports.
UpdateWeak evaluates the flux of the weak pressure form (PressureFormulation=Weak,
Section 29.2.3), which takes the predictor, the explicit advection and the forcing
into its volume term . Its flux is that of
UpdateWithAcceleration less
:
| (30.8) |
the boundary acceleration and the viscous term alone. On a velocity component that is not
Dirichlet the boundary velocity is
, the velocity the predictor carries, as in
UpdateWithAcceleration, so its term is , and
UpdateWeak reads
and
only on a rank holding such a region. The predictor is not gathered into the
restricted volume flux, which the combine kernel sets to
alone, and the remaining
steps are those of
UpdateWithAcceleration.
In the current solver call,
| (30.9) |
with the implicit step size of the stage. The predictor contains time-integrator-scaled
explicit terms.
VelocityCorrectionScheme keeps histories of the velocity and of the explicit
forcing, and combines them into and
with the coefficients
of the explicit
contributions of the stage, scaled to sum to
:
| (30.10) |
For a multistep IMEX scheme the are
times the extrapolation weights and sum to
, so
the scaling is
. For a later stage of an IMEXdirk scheme, such as the startup of a multistep
scheme, they are quadrature weights whose sum is not
; without the scaling,
would not
reduce to the velocity, and even a steady solution would get a wrong flux. Accordingly,
supplies the discrete negative acceleration in (30.3), while
supplies the
consistently extrapolated rotational viscous term. Keeping (30.7) in terms of the actual stage
quantities is important:
,
, and
are not all unscaled instantaneous physical
fields.