29.4 Initial conditions and restarts

VelocityCorrectionScheme::v_SetInitialConditions calls UnsteadySystem::v_SetInitialConditions for the velocity and scalars and then treats the pressure in the same way, on its own expansion list. The pressure function is evaluated on the velocity expansion, whose quadrature points it shares, and projected element by element onto the pressure expansion. A file written in parallel is read only in the parts that hold the elements of the process. Both go through UnsteadySystem::SetContinuousInitialConditions, which brings either source of an initial condition into the continuous space:

  1. element coefficients: the initial condition is evaluated at the quadrature points, an expression sampled and a file (.fld/.chk, SessionFunction::EvaluateFld) backward transformed, and projected element by element. The pressure is read from a file through the velocity expansion and projected element by element onto its own, as in the legacy solver, not truncated mode by mode to its order (with a modified basis, the truncation to order 1 keeps the vertex values only);

  2. every local copy of a global degree of freedom is replaced by the signed average of all copies (AvgAssmbScatrOp);

  3. the method selected by SOLVERINFO ProjectInitialConditions: Average (the default) writes the Dirichlet values at t0 over the boundary degrees of freedom (DirBndCondOp); Galerkin projects the field at the quadrature points with the global mass matrix solve of FwdTransOp, with the Dirichlet values at t0, starting from the averaged coefficients.

The start time of a file IC is taken from the file (CheckForRestartTime). As in the legacy solver (AvgAssemble, GlobalToLocal and the Dirichlet values imposed by VelocityCorrectionScheme::v_DoInitialise), a file IC that violates the velocity boundary conditions, for instance one interpolated from a lower order, therefore starts from velocity Dirichlet values that match the session; otherwise the first step would correct them and produce a pressure of order |u-uD|∕Δt (Section 29.5).

Restarts. The multistep history is not stored in checkpoints, so a restart is a cold start from the stored state and repeats the IMEXdirk start-up step of Section 29.2.