Front tracking
The front-tracking cases need a build with MFTL2 and, for the sharp methods, with IRL (see Obtaining the code). The testbench builds and installs MFTL2 from its current sources before the first of these cases.
| Case | Ranks | Libraries | Checks |
|---|---|---|---|
FT |
1 (checks on 1, 2, 4) | MFTL2 | fields against the reference; curvature, flux-corrected advection, option errors |
FT_Sharp_CSF |
1 | MFTL2, IRL | fields against the reference |
FT_Sharp_Integral |
1 | MFTL2, IRL | fields against the reference |
MFTL-ADAPTER |
1–4 (and 8) | MFTL2 | unit tests, no stored reference |
Rising bubble
The three simulation cases use the same physical problem: a gas bubble (diameter 0.75, density ratio about 1000) rising in a liquid under gravity, in a box of 7.5 x 15 x 7.5 that is periodic in x and z, with adaptive mesh refinement (up to 4 levels) around the interface. The interface is a triangulated front that is advected with the flow and remeshed. The cases differ in how the interface acts on the flow:
FT: classic front tracking. The phase indicator is reconstructed from the front with a Poisson equation
(IndicatorFunction POISSON), and surface tension is applied with a constant coefficient (SurfaceTensionMethod
CONSTANT). The case runs to t = 0.5 and the fields are compared with the reference. After the run, three further
checks use the same executable:
- curvature: the curvature of the front in the
.vtuoutput must be the curvature 2/R of the sphere within 10 %, on 1, 2 and 4 ranks; - flux-corrected advection: with
FRONTTRACKING FluxCorrectedAdvection yes, the largest volume change of the bubble in one time-step must be below 2e-6, and without it above 2e-5 (so the check sees that the option acts); - option errors: invalid option values (e.g. a remeshing frequency of 0, an unknown
MWIPressureTermsvalue) must stop MultiFlow at the option parser with a clear message.
FT_Sharp_CSF: sharp front tracking with CSF. The phase indicator is computed geometrically from the front with
IRL (IndicatorFunction IRL), and surface tension with the continuum surface force (SurfaceTensionMethod CSF).
FT_Sharp_Integral: sharp front tracking with integral surface tension. As FT_Sharp_CSF, but with the surface
tension force computed from integrals over the front within each cell (SurfaceTensionMethod INTEGRAL).
The two sharp cases run to t = 0.05. All three references were produced with MFTL2; a comparison against a reference of the old MFTL1 is reported as not validated (see Reference data).
MFTL-ADAPTER: the MFTL2 integration layer
Unit tests of the layer between MultiFlow and MFTL2 (src/include/mftl_adapter.h, src/general/mftlwrapper), run on
1 to 4 ranks (and 8 for the gathered remeshing): ownership and redistribution of the front over the processors,
remeshing, the restart meshes, the parallel search for triangle pairs across processor boundaries and periodic
boundaries, the nearest-point search of the integral surface tension, and the rotation integrator of moving IBM
particles against analytical solutions. Every check is compared with an exact or a brute-force answer, so no stored
reference is needed.
Validation suites
Two larger front-tracking suites are not part of the regular testbench, because they take much longer. They build MultiFlow with their directory as the case directory, generate the meshes and input files, and check the results against analytical solutions or against equivalent runs:
| Suite | Directory | What it tests |
|---|---|---|
| Open surfaces | testcases/FT_OpenSurfaces |
open (non-closed) fronts: surface scalar transport with Neumann, Dirichlet and mixed boundary conditions against exact solutions, conservation on moving and remeshed patches, pinned surface tension |
| Periodic fronts | testcases/FT_PeriodicFronts |
fronts crossing periodic boundaries: bubbles and droplets through the seams and corners compared with the same runs shifted away from them, pinch-off and coalescence on a seam, the sharp (IRL) methods |
Run them with
testcases/FT_OpenSurfaces/run_suite.sh /path/to/workdir [group ...]
testcases/FT_PeriodicFronts/run_suite.sh /path/to/workdir [group ...]
The default group quick takes about half an hour on 16 cores; full runs all cases on more rank counts. The
scalar-transport group of the open-surface suite needs a build with MF3_FT_SCALAR_TRANSPORT (SCALAR=1). The
scripts use the environment of your shell (PETSC_DIR, PETSC_ARCH, MPI_HOME, MFTL2_SRC, MFTL2_ROOT, and
IRL_DIR, MFIRL_C_DIR for the sharp cases).