Single-phase flow and solvers
These cases test the incompressible flow solver without particles or interfaces: the discretisation, the coupled pressure-velocity solution and the linear solvers, restarts, and viscoelastic flow.
| Case | Ranks | Input | Checks |
|---|---|---|---|
LDC |
1 | testcases/ldc/ldc.mf |
fields against the reference |
SOLVER |
2 | testcases/Solver/automatic.mf, restart.mf, schur.mf |
log checks and run-against-run comparisons, no stored reference |
VISCOELASTIC |
1, 4 | testcases/viscoelastic/run.mf |
fields against the serial and 4-rank references |
LDC: lid-driven cavity
The classic lid-driven cavity: a square cavity (1 x 1, one cell thick, 50 x 50 x 1 cells) with a moving lid, density
1 and viscosity 0.01 (Re = 100). It runs 12 time-steps of 0.02 with the second-order backward Euler scheme in time,
central differences in space, and a fully implicit (AllImplicit) pressure-velocity coupling. The velocity and
pressure fields are compared with the reference.
This is the smallest case of the testbench and the first to run when a change touches the flow solver. It is also the basis of the lid-driven cavity example.
SOLVER: pressure-velocity coupling, restarts and linear solvers
The lid-driven cavity of LDC on 2 ranks, in three runs that test the solver machinery rather than the flow:
automatic.mf:MWIPressureTerms Automatic, forced to switch between the semi-implicit and the fully implicit pressure-velocity coupling at every time-step, with reduced linear solves (InnerIterationReduction); 8 time-steps, with restart files written after time-step 4.restart.mf: restarts this run after time-step 4 on 2 ranks.schur.mf: the fully implicit coupling with the Schur-complement field-split preconditioner, reused over several solves.
There is no stored reference. The checks are:
- the logs show that the automatic mode switched in both directions, that a reduced linear solve ended the outer iterations, and that the restarted run continued in the stored mode and made the same decisions as the continuous run;
- the restarted velocity at time-step 8 equals that of the continuous run (relative tolerance 1e-8);
- the Schur field-split run reaches the same solution as the automatic run (relative tolerance 1e-6).
VISCOELASTIC: viscoelastic lid-driven cavity
The lid-driven cavity (20 x 20 x 1 cells) with a viscoelastic fluid described by the linear Phan-Thien-Tanner (LPTT)
model: solvent viscosity 1, polymer viscosity 2.33, relaxation time 5 and extensibility 0.25, so the flow is strongly
elastic. The polymer stress and the velocity are solved fully coupled (ViscoelasticStressVelocityCoupling
AllImplicit) with Newton linearisations, and the CUBISTA scheme is used for advection. The case runs to t = 1 and is
compared with the reference on 1 and on 4 ranks.