WorksPhysics and Astronomy
Cyclic changes of frame for designing non-retracing verification cases for numerical interface tracking
Abstract
A forward-backward deformation test supplies an exact final interface, but retracing can allow errors from the two halves to cancel. We construct alternative tests by superposing a cyclic change of frame on the same base deformation. The frame returns to its starting pose, preserving the exact final phase and the deformation history up to rigid placement. A small returning translation can keep trajectories close to the retraced ones. A full rotation about a fixed centre or axis gives closed paths with nonzero winding for material labels that stay off that centre or axis. For incompressible base fields the transformed velocity is divergence-free. We construct discretely solenoidal face fluxes for geometric volume-of-fluid advection by circulating the transformed potential. In three TwoPhaseFlow benchmarks, with a shared time grid for each pair, a full-turn frame increased the final cell-average shape discrepancy in all 30 comparisons, with a median factor of 1.50. The fitted convergence exponent decreased in each of the six benchmark-reconstruction comparisons over the tested grids.
Introduction
Deformation tests challenge a numerical interface with thin sheets or filaments and use a known final phase to measure the resulting error. Let be the initial phase and the flow map of a prescribed velocity on the region traversed by the phase. If
then exactly. The initial geometry supplies the final reference without a separate reference advection calculation. Rigid rotation of a slotted disc [14] is one familiar return test. In widely used deformation tests [4, 3, 10], a forward flow stretches the phase and a reversed flow brings it home. In that case every material label is in the same place at and . Numerical errors from the two halves can then oppose one another at the endpoint.
A cyclic change of frame lets us choose how the phase returns. At every time , apply a rigid motion to the whole configuration produced by the base flow at that time. The stationary mesh sees a different placement of the same deforming shape. If , every material point still returns exactly. A small returning translation changes the path by an arbitrarily small amount. Full revolutions, nonuniform angular speeds and combined rotations and translations give different paths and time histories, subject to confinement of the swept phase.
There are precedents in tracer transport. Nair and Lauritzen [9 Section 3.2.3] combined a reversing deformation on the sphere with a synchronized zonal revolution. Chen et al. [2 Section 3.3] used translation through a periodic Cartesian domain, where the frame closes modulo the domain length. We formulate the construction for returning rigid motions in Euclidean space, characterize mirrored-time separation of material labels, and give a discretely solenoidal realization for geometric volume-of-fluid (VOF) advection.
Figure 1 separates the two motions before combining them. The base flow changes the shape; the rigid frame changes its placement. Compare the three entries in any time column: the bottom shape has the same deformation as the top shape, carried by the frame pose in the middle row. The coloured points make this correspondence visible. The frame is superposed continuously while the base flow acts. It is not applied only after the deformation has finished, and the computational mesh remains stationary.
Figure 1. Two returning motions and their combination. Read each row from left to right. A: the base flow deforms a disc and then undoes that deformation. B: the rigid frame alone carries the undeformed disc through one full turn. C: at each time, apply the frame pose in B to the deformed shape in A. Orange circles and blue diamonds identify the two material points throughout. Slate-grey arrows are the carried reference axes. The light grey axes remain fixed in the laboratory. The dotted circle marks the disc-centre orbit under the frame motion alone and serves as a placement guide in C. At and , each coloured point occupies the same position in A and appears on opposite sides of the rotation centre in C. At , every row recovers its initial configuration. The snapshots follow directly from the analytic example in (18).
§ 2 shows how midpoint quadrature can give zero terminal error despite an erroneous intermediate position. § 3 derives the cyclic-frame construction and its conditions for return and separation. For geometric VOF, we obtain discretely solenoidal face fluxes by circulating the potential
of the prescribed velocity (§ 4). The paired studies in § 5–§ 7 use isoAdvector with plicRDF and isoAlpha reconstructions in TwoPhaseFlow [13]. § 8 summarizes the procedure for other implementations.
Error cancellation in one dimension
Consider a point with initial position and prescribed velocity
§ 5 uses this temporal profile in the deformation tests. The velocity reverses at , with . The exact trajectory satisfies and returns to .
The midpoint rule
reduces to second-order midpoint quadrature for this spatially uniform velocity. Summing the first steps gives the error at ,
At , the midpoints of steps and lie symmetrically about , , where the velocity takes opposite values. The error at therefore vanishes pair by pair,
for every even . The terminal error therefore misses the nonzero midpoint error in (4).
In one dimension the Euclidean frame of § 3.4 reduces to a translation. Consider the returning displacement
The point now moves with the velocity , and its exact position still satisfies , while for and . The translation breaks coincidence at mirrored times even on a line, where a nonconstant returning trajectory necessarily revisits positions. At the terms of still cancel as in (5). The midpoint error comes from the added quadratic velocity ,
For the modified test has a nonzero second-order terminal error. It comes entirely from the additional velocity, with the original cosine contribution still cancelling. The expressions (4)–(7) are checked with SymPy [8] by the script cancellation_1d.py in the data archive [1].
The endpoint error also depends on the choice of frame. For with , the mirrored positions differ at every interior pair. The midpoint samples of sum to zero on any uniform grid with at least two steps, since their phases are equally spaced over one period. On the even grids used above, the cosine contribution from (2) also vanishes, giving zero terminal error despite the loss of mirrored-time symmetry.
Construction of a returning advection field
Flow maps
For a prescribed velocity , a material trajectory satisfies
The flow map gives the position at time of a trajectory starting at at time [7],
Applied to every point of a set , it transports the set, , and the phase at time is (Figure 1). Following a trajectory from to and then from to is the same as following it from to ,
In particular, integrating (8) backwards from to returns every point whenever the required trajectories exist and are unique. Thus is the inverse of on the corresponding domain [7]. The benchmarks constructed here have the stronger property that forward integration over gives the identity on the admissible initial positions. For the final phase reference, it would suffice for the map to return as a set.
Superposing a cyclic change of frame
We prescribe the motion between fixed endpoints by composing two motions that each return at . First take .
The base field applies the first-half velocity in reverse temporal order and with opposite sign during the second half. This reverses the first-half flow. § 3.3 shows that its flow map , with , satisfies
The equality at mirrored times is the symmetry that allows the cancellation in § 2.
The second motion is a rotation, possibly combined with a translation. It preserves distances and has the identity pose at both endpoints,
An example is the rotation about a point by the angle , with the rotation matrix : during every off-centre point turns once about and is back at its initial position at (row B of Figure 1).
At each , apply the frame to the base position . The pose then gives the laboratory trajectory (row C of Figure 1)
Inserting (11) and (12) at gives the exact return of every point,
and therefore of the phase, . At every intermediate time the laboratory phase is , where is the base phase. The exact deformation history is preserved up to rigid motion, including the thickness of fine structures and the phase topology. The orientation and position relative to the stationary mesh generally change.
At mirrored times and , the base flow gives the same position,
and the laboratory separation is determined by the two frame poses,
For the rotation about , the angles at the two times differ by . With and , (15) becomes
The rotation does not change lengths. In the plane, , so
the squared length of the chord between and its rotation by . With ,
which is positive for if . At and the same base point is rotated by a quarter and three quarters of a turn, respectively, so these two positions lie opposite one another about (row C of Figure 1). For a planar full turn, every label that avoids the centre is separated at every interior mirrored pair. Separation at even one pair suffices to break exact mirrored-time retracing for that label. This criterion concerns matched times and makes no claim about path intersections at other times.
A full turn also rules out complete retracing with a different time parametrization. For a base trajectory that avoids the rotation centre, choose a continuous polar angle about that centre. The first and second halves give opposite angle increments. The frame adds , so the laboratory trajectory has winding number one. An out-and-back traversal at any speed has winding number zero. In three dimensions the same argument uses the projection perpendicular to the rotation axis. § 5.1, § 6 and § 7 verify that the base phase avoids the centre or axis in each reported case.
§ 3.4 obtains the laboratory velocity by differentiating (13). For rotation about this yields
with : the velocity of the rotation plus the base velocity. The base velocity is evaluated at the point of the base flow that the rotation moves to , and it is turned by the same rotation.
The rigid motion can also be read as a moving coordinate frame: is the position relative to a frame that rotates with , and the position in the laboratory. § 3.4 uses this view and allows a frame with , for which suffices.
The base return and the returning frame give the exact endpoint. The pointwise separation (15) tests whether mirrored-time retracing is broken. § 3.3–§ 3.5 establish these properties and the preservation of incompressibility needed for the benchmarks below.
For the analytic illustration in Figure 1, take a disc of radius 0.26 centred at and use
The base shear has determinant one, reverses after , and returns each label at . The full turn is about , visibly separated from the initial disc. These configurations are drawn directly from (18). They illustrate the construction without adding a numerical benchmark. The phase stays off the rotation centre: throughout the base motion its first coordinate is at least . The winding argument therefore applies.
Exact return of the base flow
Let . Choose a field that admits absolutely continuous first-half trajectories on for the initial positions under consideration. It may deform the initial phase strongly. To return the material, apply the first-half field in reverse temporal order with the opposite sign,
or, written with the time measured from ,
Its flow map is denoted by , and the trajectory that starts at an arbitrary by . The value of at the single instant does not affect the trajectories, so may jump there when .
To show on admissible initial positions, compare the two halves as in Appendix Appendix § 10. For , view the positions at and as functions of . The chain rule, (19) and give
so both functions satisfy
At both functions equal . For uniqueness, assume satisfies a spatial Lipschitz estimate for almost every ,
the squared distance between two solutions of (21) satisfies . Grönwall’s inequality keeps it at zero if it is zero initially. Thus the two trajectories coincide,
At this gives . As was any admissible initial position, .
The argument assumes existence of the first-half trajectories and uniqueness of the reflected initial-value problem. Reflection of the first-half solution itself supplies existence on the second half. Appendix § 10 gives sufficient regularity assumptions. If uniqueness fails, trajectories can merge and the reflected field need not prescribe a unique return. In one dimension, brings every point with to rest at by . The reversed field admits both the solution that stays at and solutions that leave at any time, so is not determined by .
For the benchmark, the ambient field must be defined along the required trajectories and retain the needed regularity and incompressibility. § 4.3 gives an extension and a confinement check for the vortex.
Equation (23) specifies the temporal reversal that the cyclic frame can break while preserving the exact endpoint.
Laboratory velocity and trajectory separation
A moving rigid frame is described by the position of its origin and its orientation, a rotation matrix with and . Assume and are continuously differentiable. A point with coordinates relative to the frame has the laboratory position (Figure 2)
Figure 2. The rigid frame at time : its origin is at and its axes are rotated by , here by the angle . A point with coordinates relative to the frame has the laboratory position . The frame returns at if and .
Let the material move with the base field relative to the frame, , and follow it in the laboratory, . Differentiating with the product rule and inserting gives the velocity of the point in the laboratory,
The right-hand side defines the laboratory field
the transformation law of a velocity field under a superposed rigid motion. Its three terms are the translation of the frame, its rotation, and the base velocity, evaluated at the position relative to the frame and rotated into the laboratory. The laboratory flow is defined wherever the corresponding base trajectory exists. Uniqueness follows by applying the inverse frame to any laboratory solution. With , the laboratory trajectory is
At the base flow map is the identity, and (27) reduces to . Thus each admissible point returns if the frame closes,
Only the endpoint poses enter this one-cycle return criterion. When differs from the identity, the base initial phase is .
By (23), . The laboratory separation at the mirrored times is
With , the separation vanishes precisely when the relative motion fixes . Identical poses give coincidence for all labels, while distinct poses can still coincide on their relative fixed set. For a full turn about a fixed axis in three dimensions, (16) holds with distance to the axis in place of distance to the planar centre. The translation (6) is the case and .
For the interface , the relation shows that mirrored shapes are congruent. Shape symmetry can make the contour sets coincide even when individual labels occupy different positions.
Incompressibility
The results use incompressible advection, with discrete carrier-volume balance addressed separately in § 4.1. For a spatially Lipschitz base field with almost everywhere, each term of (26) is divergence-free. The spatial derivatives below hold almost everywhere and also give zero distributional divergence. The translation does not depend on . The rotation term has the gradient , which is skew-symmetric because , so its trace vanishes. The rotated base velocity has the divergence
The same gradient calculation shows that the symmetric part of is the rotated symmetric part of . The added rotation gradient is skew-symmetric. This is the local rate-of-deformation counterpart of the rigid correspondence between the exact phases. The endpoint argument itself uses only invertibility and .
Conditions for the benchmark construction
Table 1 gives the conditions for exact return, mirrored-time separation and incompressibility. § 8 gives a mesh algorithm.
| Property | Why it is needed | How it is obtained |
| Base flow returns each admissible point | is the exact solution | reversed second half (19), with existence and uniqueness as in Appendix § 10 |
| Frame returns at | initial and final base positions have the same laboratory placement | , (28) |
| Mirrored-time separation | breaks the exact retracing symmetry when the same material point has different positions at a mirrored pair | choose and check the relative frame motion using (29) |
| Divergence-free laboratory field | preserves incompressibility at the continuum level | and a rigid frame, § 3.5 |
Table 1. Requirements of the construction.
Explicit rotating-frame formulas
For a planar rotation with angle ,
so that in two dimensions
with . In three dimensions, a rotation about the first coordinate axis is
The special case , gives a pure rotating frame; it is closed over when in this example. In general the planar rotation closes when is an integer multiple of .
Base vortex on the unit square
One standard divergence-free deformation pattern on is generated by the stream function
which gives
Multiplying (35) by an arbitrary integrable amplitude on gives a time-dependent first-half field . Combining the reflected base field with the cyclic frame gives a divergence-free laboratory field with exact return. In the base coordinates the solution follows the autonomous flow of at signed flow time on the first half, with the reflected amplitude on the second half.
Volume fraction transport and error measurement
The phase is described by its indicator , equal to 1 in and 0 elsewhere. A geometric VOF method decomposes into cells , , and advects their volume fractions [7]. For a solenoidal velocity, the integral form of the transport equation for , integrated over a time step , gives
an exact equation, which the geometric VOF method approximates [7]. Wherever the backward ambient flow is defined, . Exact return of the phase gives , so the exact volume fractions at are the initial ones, . This common reference permits comparison of the paired runs by volume error, symmetric difference, interface distance or shape moments.
Solenoidal face fluxes for geometric VOF
Cell balance from edge circulation
Geometric VOF reconstructs an interface within each interfacial cell and approximates the phase volume transported through each face over the time step [7]. The volumetric carrier fluxes should satisfy cell-wise balance,
where is the set of faces of , and the fluxes are taken with the outward orientation.
A face-centre evaluation or interpolation of a divergence-free field can leave a cell flux imbalance. Cell-wise carrier balance is the discrete counterpart of incompressibility. It does not by itself ensure accurate or bounded phase transport. In the global phase balance, shared conservative phase fluxes cancel between cells, leaving boundary transport and any sources or numerical corrections.
For consistently oriented closed cell boundaries, (37) holds in exact arithmetic if the fluxes are constructed as a discrete circulation of a vector potential. In two dimensions, embedded in the ordered – plane, use , so that . Then
where is the exact instantaneous flux and is its edge-trapezoid approximation. The sum uses vertex samples of and oriented edges of the face polygon. When the faces of one cell are traversed with their outward orientation, every edge of the cell is traversed exactly twice in opposite senses, so the contributions cancel identically. This is the discrete counterpart of . Adding a smooth gradient to the potential leaves the exact circulation invariant. Its edge quadrature can change, while cell-wise cancellation is preserved.
Remark 1 (Design rule). For this flux assembly, express a modification of the test field as a modification of the potential at mesh vertices and reuse the oriented circulation.
Stream function of the laboratory-frame field
To apply Remark 1 to § 3, we need the laboratory-frame potential. In two dimensions write for rotation by and use the convention in (34)–(35),
For the explicit benchmark formulas, specialise the base field to , where now denotes the antisymmetric amplitude on the full interval . Let the frame rotate by about a fixed centre and translate by , i.e. , and set and . The laboratory-frame field (32) is then
Proposition 1 (Stream function of the laboratory-frame field). The field (40) satisfies with
Proof. The three terms are treated separately. For the translation, the gradient of the first term is , which gives after multiplication by . For the rotation, , hence . For the base term, note that , so the chain rule gives and therefore
where because and both lie in the abelian group .
Because rotations commute in , the base contribution uses at the pulled-back point with the same time factor . Substituting (41) for in (38) gives the full laboratory flux. For any admissible frame the edge cancellation enforces (37) in exact arithmetic.
In three dimensions the same route applies with a vector potential and , using
where , is the frame angular velocity and is the component of orthogonal to . The rotation term is zero when . The base term follows from equivariance of the curl under proper rotations for the base potential . In the ordered – plane the embedding gives . The horizontal part of the shear flow in § 6 uses , which gives .
Confinement of the material support and domain sizing
The fixed mesh must contain the swept phase over the entire cycle. For the vortex, a streamline invariant bounds the support and gives sufficient domain dimensions for a chosen rotation centre.
Proposition 2 (Invariance of the streamline band). Let with . Then is constant along base-flow trajectories.
Proof. , since is skew-symmetric.
For the disc in § 5.1, lies between and . To see the lower bound, minimize at fixed height by taking the largest allowed . Write on the disc with and set . The derivative of , divided by , is , with the continuous endpoint interpretation. For both terms are non-positive, and for the first is at most while the second is at most . The minimum is attained at . The upper bound is attained at since each sine factor is maximal there among points in the disc.
Let and put in the base square. The function is concave for , since increases for . For , applying concavity to gives
The inequality is attained along the diagonals. Applying it to the lower level of the streamline band gives the sharp centred radius
For a rotation about and an offset the laboratory phase lies in the ball about of radius . Table 2 gives conservative square side lengths for three centres and zero offset. The centred rotation has a physical clearance of at least 0.058, about 1.9 cell widths at and 119 at .
| Rotation centre | Upper bound on support radius | Sufficient square side |
| (0.5, 0.5) | 0.442 | 0.884 |
| (0.5, 0.75) | 0.692 | 1.384 |
| (0.2, 0.2) | 0.867 | 1.734 |
Table 2. Sufficient square side lengths for the vortex disc, using the centred streamline-band radius and the triangle inequality. Each square is centred at the rotation centre and there is no frame translation.
Where leaves the unit square, is extended by zero. Since and both vanish on , together with itself, this extension is . Its piecewise bounded second derivatives and continuous gradient give a Lipschitz base velocity as in (22). Outside the base square the velocity is that of the frame alone.
Results
Reversed vortex and numerical protocol
We use the two-dimensional reversed-vortex case and solver distributed with TwoPhaseFlow [13]. The mesh covers the unit square in the – plane with cells and one cell in the transverse direction. We initialise the phase geometrically as a disc of radius centred at .
The base field is (35) with stream function (34). A smooth amplitude implements the forward–backward construction,
The run covers half a cosine period. With , , so the field satisfies the antisymmetry (20) and the base trajectories retrace as shown in § 3.3.
The superposed frame, denoted Frame A below, is one full revolution about the centre of the domain,
so that , as required by (28). The support bound in Table 2 places the swept phase strictly inside the unit square. The stream-function value at exceeds those in the phase’s streamline band. Equation (16) therefore gives distinct positions for each phase label at interior mirrored times. The extruded square has unit depth. For Frame A, we assemble carrier fluxes on boundary faces by circulation; the unframed vortex retains the reference implementation’s boundary-flux assembly. All three benchmarks prescribe zero phase fraction on the physical outer boundary. The transverse faces of the two-dimensional case use empty boundary conditions.
The advection scheme is isoAdvector [11], tested with the plicRDF [12] and isoAlpha reconstructions. It uses face fluxes and cell-centred velocities evaluated at time-step midpoints. The framed vortex fluxes use (41) and (38). Within each pair of runs, the framed and unframed cases use a common time grid. Let and let be the maximum of the framed over space and time samples. This estimate is greater than the corresponding unframed estimate in each benchmark. We round the number of steps up to a multiple of four,
We use the 1-norm because the cell Courant number equals for a uniform velocity on a cubic cell. The maximum interface Courant indicators reported by the solver round to 0.200 for the vortex and shear and 0.154 for the fully three-dimensional deformation [1]. The solver evaluates this indicator using the current phase fraction and the face fluxes available before the next midpoint update. The time-step formula uses the sampled speed, and the logged values describe the solver’s diagnostic on that grid.
Let and let be the reference fraction obtained by cutting each cell using samples of the implicit initial interface. We measure the terminal, cell-volume-weighted discrepancy from this reference and the absolute change in transported phase volume,
The archived boundedness diagnostic takes the maximum over MPI ranks of , with cell extrema computed separately on each rank. This diagnostic equals the largest excursion outside if each rank with no violation contains a pure-phase cell. The tables give terminal values. The implementation checks also report maxima over stored outputs or solver iterations, as specified in the run summaries.
The shape diagnostic compares cell averages with a discrete geometric reference. It need not equal the volume of the symmetric difference between reconstructed phases. We fit refinement exponents to .
Implementation checks
We check carrier-flux balance, the identity frame and the effect of rigid rotation separately. § 7 reports the vector-potential checks. The TwoPhaseFlow implementation and its workflows were written with an AI coding assistant (see the declaration at the end of the article); the checks in this section test the implementation regardless of how it was written.
We monitor the discrete balance (37) at each step. The largest value of over the framed vortex runs is . The residual is zero in the recorded frame-only runs. The largest stored phase-volume change in the two-dimensional study is , at [1], reversed-vortex/results/courant_check.txt.
For the identity control, we set and in the moving-frame implementation and compare with the original retracing case. The two common outputs are at and . At , the two plicRDF runs give to the displayed precision, with relative difference . This also bounds the relative difference at the earlier output. The reported discrepancy at measures agreement of the two outputs’ diagnostics against the initial disc [1], reversed-vortex/results/frame_identity_check.txt.
Setting reduces the test to a solid-body revolution of the disc. The plicRDF control gives , and at , 128 and 256. The observed exponents between successive grids are 2.04 and 2.02 [1], reversed-vortex/results/frame_only_check.txt. These values characterise the discretisation of the isolated rigid motion. The framed vortex combines rigid motion and deformation.
Interface evolution
Figure 3 and Figure 4 show the reconstructed interfaces at , and on the grid with plicRDF. The snapshots come from separate visualisation runs with more frequent outputs than the convergence runs.

Figure 3. Framed case (Frame A), plicRDF, , at , and . The top row shows the interface in laboratory coordinates. The bottom row maps the same contours through for comparison with Figure 4. The rows coincide at , where is the identity. The dashed red circle gives the exact initial and final interface. The + symbol marks the rotation centre. Data in [1], reversed-vortex/results/interface_moving_frame.png.

Figure 4. Unframed case, plicRDF, , at , and . Dashed red: exact interface at and . Data: [1], reversed-vortex/results/interface_non-moving_frame.png.
At the numerical contours show fragments near the filament tip. At fragments remain visible with the frame (Figure 3). The exact phase is the image of the initial disc under the flow map and remains connected throughout the cycle.
Figure 5 compares the numerical contours at the mirrored times and . Their relative placement follows the pattern shown by the exact configurations: near overlap at plotting scale without the frame and visible separation with Frame A.
Figure 5. Simulated interface (, plicRDF, ) at (solid) and (dashed). The unframed contours (left) nearly overlap at plotting scale. The framed contours (right) occupy different locations. Data in [1], reversed-vortex/results/interface_evolution.pdf; an animation of both runs is reversed-vortex/results/interface_evolution.gif.
Grid refinement
Figure 6 and Table 3 show how the terminal cell-weighted shape error changes with grid refinement.

Figure 6. Convergence of with and without the superposed frame. The lines show least-squares fits on logarithmic axes. The legend gives the fitted exponents and maximum absolute log residuals. Data: [1], reversed-vortex/results/convergence_shape_error.png.
| no frame (retracing) | Frame A (non-retracing) | |||
| plicRDF | ||||
| 32 | 0 | |||
| 64 | 0 | |||
| 128 | 0 | |||
| 256 | ||||
| 512 | ||||
| 1024 | ||||
| 2048 | ||||
| fitted order | 2.35 | 2.19 | ||
| max residual | 0.356 | 0.374 | ||
| isoAlpha | ||||
| 32 | 0 | 0 | ||
| 64 | 0 | 0 | ||
| 128 | 0 | 0 | ||
| 256 | ||||
| 512 | ||||
| 1024 | ||||
| 2048 | ||||
| fitted order | 2.16 | 2.07 | ||
| max residual | 0.459 | 0.460 |
Table 3. Convergence on the reversed-vortex test, both reconstruction schemes. The order is the negative least-squares slope of against over the whole sequence; the residual is the maximum absolute residual in . Bold: the shape error with the frame exceeds the one without it at the same . Data: [1], reversed-vortex/results/convergence.csv.
The framed error exceeds the unframed error at all seven resolutions. The ratios range from 1.12 to 2.82 for plicRDF and from 1.05 to 2.54 for isoAlpha. Across those grids, the fitted refinement exponent decreases from 2.35 to 2.19 for plicRDF and from 2.16 to 2.07 for isoAlpha.
The maximum absolute log residuals range from 0.356 to 0.460. The four series depart more strongly from a power law than the shear-flow series in § 6. The reported exponents summarise the grids tested. The error increase is consistent with cancellation in the retracing runs. Rotation also changes mesh alignment, local fluxes and temporal discretisation error. The paired results do not separate these effects.
The largest recorded boundedness error is . We monitor boundedness alongside phase-volume change (§ 5.2) and fit refinement exponents only to the shape error.
A common time grid for paired runs
We use the fixed step from (47) for both members of each pair. Independent adaptive controllers can produce different grids in time. Near the base amplitude approaches zero while the rigid-frame velocity persists. In the adaptive vortex comparison at , the unframed run crossed in 35 steps of up to . The framed run took 118 steps of at most over the same interval.
A mesh-independent step cap does not by itself enforce a Courant limit. Under the inherited adaptive protocol, the observed maximum interface Courant number in the unframed vortex was 0.23, 0.32, 0.52, 0.65 and 1.18 at , 128, 512, 1024 and 2048. The framed runs stayed at about 0.20. When a Courant number exceeds one, the swept region can extend beyond the neighbouring cell. The common grid fixes step counts and sampling times, while local Courant histories and temporal discretisation errors can vary with the velocity field.
Three-dimensional shear flow
Case and vector potential
We use the shear-flow test of Liovic et al. [5] distributed with the same library [12]. A sphere of radius 0.15 starts at in the unit cube, with cells of equal side length in each direction. The distributed case uses a box of height 2. We retain its initial centre and velocity on the shorter domain. The sampled trajectories reach , an estimated distance of 0.115 below the upper boundary [1], deformation-sphere3d/results/support_extent.txt. The base field is
Here locates the swirl axis horizontally and the amplitude is on . With , the relation again gives exact retracing in the base flow.
The field (50) is the sum of a solenoidal horizontal field and an axial field. The potential generates the horizontal components, with given by (34). Extend by zero outside the horizontal square (§ 4.3) and use the radial formula for the axial component. To obtain its potential, solve with the regular choice . The combined potential is
Here is the horizontal position. The radial contribution to the potential is continuously differentiable at the axis, and . We use the three-dimensional formulas in § 4.2 to obtain the laboratory potential and the oriented circulation of § 8 to assemble the fluxes.
Flux assembly and reference comparison
The reference implementation evaluates (50) at face centres and sets , where is the centroid and is the area vector of face . The quadrature produces a discrete divergence residual. The pressure projection CorrectPhi solves a Poisson equation for a correction potential to enforce (37). With the moving frame, the spatial distribution of face fluxes changes from step to step. The projection would then require repeated solves.
Circulation gives discretely solenoidal fluxes directly. Table 4 records a separate unframed comparison with the reference implementation. The terminal errors are close. Isolating the effect of flux assembly in this auxiliary comparison requires the full run settings. The paired convergence runs use circulation for both cases and the common time grid described in § 5.1.
| quadrature + CorrectPhi | vector potential | difference | |
| 32 | 0.13% | ||
| 64 | 0.08% | ||
| 128 |
Table 4. Separate unframed shear-flow comparison of face-centre quadrature with Poisson projection and discrete circulation of the analytic vector potential (51). The entries give for plicRDF.
The archived shear-flow convergence runs give the following maxima:
[1], deformation-sphere3d/results/courant_check.txt. The discrete divergence residual grows as the grid is refined. The calculation divides the flux imbalance by cell volume, which decreases with refinement, and can therefore amplify round-off. The total phase-volume change remains below .
Frame choice and confinement
The frame rotates about the axis parallel to through . The horizontal motion has a scalar amplitude, so Proposition 2 confines the horizontal projection of the phase to the streamline band of through the sphere’s footprint. This footprint is the disc of radius about used in two dimensions. The bound in Table 2 thus gives and places the swept support horizontally inside the unit square. The axis lies outside the band because its stream-function value is greater than the upper band level. Rotation about preserves the axial coordinate.
The nonnegative flow time for is . The centred band gives . Concavity of from § 4.3, together with , gives for . By streamline invariance this yields for initial horizontal label . It follows that . When , the axial speed is at most , giving . When , the initial sphere gives . The axial speed in this range is at most , giving . The axial speed is nonnegative in autonomous flow time, so . The phase therefore lies inside the unit cube throughout the cycle.
Interface evolution and convergence
For both reconstructions the framed error exceeds the unframed error at every resolution. The ratios increase with refinement (Figure 9).

Figure 9. Convergence of for the three-dimensional shear flow, with and without the superposed frame. The lines show least-squares fits on logarithmic axes. The legend gives the fitted exponents and maximum absolute log residuals. Data: [1], deformation-sphere3d/results/convergence_shape_error.png.
| ratio | ||||
| plicRDF | 1.39 | 1.47 | 1.59 | 1.94 |
| isoAlpha | 1.29 | 1.37 | 1.50 | 1.75 |
Table 2 (PDF p. 26).
The fitted exponents are 1.84 with the frame and 1.99 without it for plicRDF, and 1.75 and 1.89 for isoAlpha. Over the common grid sequence, the slope of the fitted log-ratio versus log resolution is the unframed exponent minus the framed exponent.

Figure 7. Framed three-dimensional shear flow, isosurface, plicRDF, , , at , and . The frame makes one revolution about the axis parallel to through , marked +. The top row shows the computed interface in laboratory coordinates. The bottom row maps the same outputs through for comparison with Figure 8. Data in [1], deformation-sphere3d/results/interface3d_moving_frame.png.

Figure 8. Unframed three-dimensional shear flow, isosurface, plicRDF, , , at , and . Data: [1], deformation-sphere3d/results/interface3d_non_moving_frame.png.
| no frame (retracing) | Frame A (non-retracing) | ||||
| plicRDF | 32 | ||||
| 64 | |||||
| 128 | |||||
| 256 | |||||
| fitted order | 1.99 | 1.84 | |||
| max residual | 0.069 | 0.046 | |||
| isoAlpha | 32 | 0 | |||
| 64 | |||||
| 128 | |||||
| 256 | |||||
| fitted order | 1.89 | 1.75 | |||
| max residual | 0.065 | 0.045 |
Table 5. Convergence on the 3D shear-flow test, both reconstruction schemes. The order is the negative least-squares slope of against over the whole sequence; the residual is the maximum absolute residual in . Bold: the shape error with the frame exceeds the one without it at the same . Data: [1], deformation-sphere3d/results/convergence.csv.
The maximum absolute log residual is below 0.070 for each fit, the smallest residual range among the three benchmarks. The monotone increase in both error ratios is specific to this benchmark. It shows how changing the return path can affect the observed refinement trend when sampling times and continuum deformation up to rigid motion are matched.
A fully three-dimensional deformation
The shear flow of § 6 consists of a planar vortex and an axial drift. In the third benchmark we use the LeVeque field [4] in the unit-cube geometry of Enright et al. [3]. Each velocity component depends on all three coordinates,
with the same amplitude on and a sphere of radius 0.15 at (0.35, 0.35, 0.35).
Vector potential
To construct a potential for (52), set and integrate and , where are the components of . Choose the integration functions to recover the first component of the curl. With , , , the resulting potential is
Differentiation gives . A numerical check on a sample grid gives a maximum discrepancy of . The check approximates derivatives by the complex step . For analytic functions real on the real axis the truncation error is . This formula avoids subtractive cancellation, so a sufficiently small makes the truncation error negligible at working precision. The sampled maximum discrepancy for the shear field is [1], leveque3d/results/potential_check.txt and deformation-sphere3d/results/potential_check.txt. The shear samples lie away from the swirl axis, where the radial expression has a local analytic continuation. The potential’s regularity and curl on the axis follow from the construction in § 6, independently of this sampled check.
Remark 2 (Zero extension of the chosen potential). The vortex potential vanishes on the boundary. The chosen potential (53) has a nonzero tangential component on cube faces. On its second component satisfies . The zero extension used in § 4.3 would therefore introduce a tangential jump and a surface term in the distribution . Formula (53) instead defines a smooth periodic extension with a solenoidal curl. A zero extension requires a separate check of the tangential trace.
A separate unframed comparison on cubic cells with plicRDF gave shape errors for circulation and projected face-centre fluxes of and at , and and at , respectively. The full run settings for these reference checks are needed to isolate the effect of the two assemblies. In the paired convergence runs the recorded maximum divergence residual satisfies [1], leveque3d/results/courant_check.txt.
Confinement
The base velocity vanishes on the boundary of the unit cube, and uniqueness keeps the interior base trajectories inside. For the rotated flow we bound the horizontal support using and . Along each interior base trajectory, the three log-factor derivatives equal times , , , respectively. Their sum vanishes, so is invariant. The initial coordinates lie in , which gives . Since , the same lower bound holds for . Applying (44) to the latter product gives
The frame preserves and . The horizontal radius bound and the base confinement in the vertical direction therefore keep the rotated phase inside the cube. Every point on the axis is a base equilibrium, and the initial phase is disjoint from it. Uniqueness keeps each phase label off the axis, as required by the winding argument of § 3.2.
The archived trajectory samples give a sharper estimate, with maximum horizontal radius near and clearance near [1], leveque3d/results/support_extent.txt. The largest recorded phase-volume change is .
Interface evolution and grid refinement
For both reconstructions the framed error exceeds the unframed error at every resolution (Figure 12).

Figure 12. Convergence of for the LeVeque field, with and without the superposed frame. The lines show least-squares fits on logarithmic axes. The legend gives the fitted exponents and maximum absolute log residuals. Data: [1], leveque3d/results/convergence_shape_error.png.
| ratio | ||||
| plicRDF | 1.32 | 1.72 | 2.74 | 2.08 |
| isoAlpha | 1.09 | 1.30 | 3.20 | 1.91 |
Table 7.
The fitted exponents are 1.81 with the frame and 2.08 without it for plicRDF, and 1.75 and 2.13 for isoAlpha. Both error ratios reach their maximum at .
Frame A increases the maximum absolute log residual from 0.255 to 0.484 for plicRDF and from 0.287 to 0.437 for isoAlpha. At the computed isosurface includes disconnected fragments at (Figure 10). Differences

Figure 10. Framed LeVeque case, isosurface, plicRDF, , , at , and , with a display cut at . The frame rotates once about the axis parallel to through , marked +. The top row shows the interface in laboratory coordinates. The bottom row maps the same outputs through . Detached fragments are visible at and . Data in [1], leveque3d/results/interface3d_moving_frame.png.

Figure 11. Unframed LeVeque case, isosurface, plicRDF, , , at , and ; cut at . Data: [1], leveque3d/results/interface3d_non_moving_frame.png.
| no frame (retracing) | Frame A (non-retracing) | |||
| plicRDF | ||||
| 32 | ||||
| 64 | ||||
| 128 | ||||
| 256 | ||||
| fitted order | 2.08 | 1.81 | ||
| max residual | 0.255 | 0.484 | ||
| isoAlpha | ||||
| 32 | ||||
| 64 | ||||
| 128 | ||||
| 256 | ||||
| fitted order | 2.13 | 1.75 | ||
| max residual | 0.287 | 0.437 |
Table 6. Convergence on the 3D LeVeque deformation test, both reconstruction schemes. The order is the negative least-squares slope of against over the whole sequence; the residual is the maximum absolute residual in . Bold: the shape error with the frame exceeds the one without it at the same . Data: [1], leveque3d/results/convergence.csv.
in the grid’s resolution of the thin sheet and fragments may contribute to the variation. The fitted exponents summarise a finite range for which the data depart visibly from a power law.
Using the construction in other solvers
The benchmark specifies an ambient velocity and an exact terminal interface. The host method determines how the prescribed velocity enters its advection update.
Velocity-based and flux-based methods
For a method that samples velocities at points, use the laboratory velocity (26) directly. A method that also requires locally balanced carrier fluxes can construct them from oriented potential circulation.
Inputs for potential circulation
(R1) A potential for the base field: a stream function in two dimensions, a vector potential in three, with or . Sections § 3.8, § 6 and § 7 give these for the three standard benchmark fields; for a new field supply a potential compatible with the intended domain.
(R2) The mesh vertex coordinates, and for each face its vertex loop in the orientation that the code uses for the sign of the face normal. Face planarity is unnecessary for the algebraic cancellation. A nonplanar face needs a consistently oriented shared spanning surface for the interpretation as an exact surface flux.
(R3) Write access to the face fluxes each time step, and to any sampled velocities required by the host advection scheme or its time-step control.
Algorithm
For the separable base field , proceed at each step with the step mid-point, frame , angular velocity and base amplitude :
Potential at the vertices. For every mesh vertex with position ,
with the component of orthogonal to and the rotation term set to zero when . In the planar implementation use , with from (41).
Fluxes by circulation. For every face , internal and boundary alike,
the sum running over the oriented edges of the face loop.
Cell velocity, if required. For every cell centre, evaluate (26) directly when the host scheme uses cell-centred velocities.
Step 2 enforces (37): the edge contributions cancel for any , so (37) holds to round-off regardless of the quadrature error of the edge integrals, provided each cell boundary uses a consistent oriented incidence and common edge values. Boundary fluxes must retain that balance.
The algorithm consists of one loop over the vertices and one over the faces, without a linear solve or a global reduction. A vertex potential depends only on the vertex position and prescribed frame data. Parallel implementations must use consistent shared-face fluxes and orientations. The cost is , with the number of vertices of the face . Compared with projecting a face-centre quadrature (§ 6.2), the algorithm obtains balanced fluxes directly from the analytic potential and avoids a linear solve.
Orientation and flux balance
Orient each face loop consistently with the signed face normal used by the host code. With the outward cell signs, monitor
Compare this residual with the scale of the face terms after dividing by cell volume. Reversing all face-loop signs leaves the residual unchanged. A final-time return can also survive a sign error, as in a full revolution with the wrong sense of rotation. A separate signed check can compare a face flux with its analytic value for a uniform translation or check a material displacement at an intermediate time.
Implementation checks
The following checks distinguish flux assembly from errors in interface transport.
Carrier balance and orientation. Monitor (54) and check an oriented reference flux or displacement.
Null frame. With and , compare against the reference implementation. The two paths should agree to round-off when they assemble the same discrete inputs. With different flux quadratures, compare their discretization errors as in § 6.2.
Frame only. With the field is a rigid motion with a known solution. The resulting error gives the scale of the rigid-motion control on the chosen mesh.
Inverse mapping. Map intermediate numerical interfaces back with and compare them in the base coordinates. The exact configurations agree. The numerical difference reflects the errors of both runs and any error in their plotted reconstructions.
Use the same time grid in a pair and check the swept phase support and recorded volume drift.
Choosing a frame
A returning frame can be chosen to control how the phase moves relative to the mesh. For example, for a pure translation with , the mirrored-time gap is for every label. Small gives nearly retraced paths. A full turn or a combination of rotation and translation can explore different orientations and locations while keeping the exact return. Check separation on the relevant labels using (29). Also bound or estimate the swept support and verify that it fits the domain, as in § 4.3 and § 7.
Conclusions
A cyclic change of frame varies the path of a deforming phase across a stationary mesh. The base flow and the frame each return, so the phase returns exactly with its deformation history preserved up to rigid placement. A small returning motion yields almost retraced paths. For a full rotation about a fixed centre or axis, material labels that stay off it have nonzero winding, which excludes complete geometric retracing. For a divergence-free base flow, potential circulation gives locally balanced carrier fluxes for geometric VOF.
With the full-turn frame and a shared time grid, the final shape errors were larger in all 30 pairs, by factors of 1.05 to 3.20 and a median factor of 1.50. The fitted refinement exponents were smaller with the frame in all six comparisons. The shear test showed the most regular convergence over the tested grids and a monotone increase in the framed-to-unframed error ratio. The vortex and fully three-dimensional deformation showed more variation across resolutions. The results establish a dependence on the return path for these cases. Both reversal cancellation and the changed motion relative to the grid can influence the differences, and the paired tests do not isolate their contributions. As the one-dimensional examples show, breaking mirrored-time retracing alone does not guarantee a larger terminal error.
Exact return of the time-reversed base flow
Let , and , and let be the first-half field of § 3.3. Assume first-half trajectories exist as absolutely continuous curves in over . On , a sufficient setting for existence and uniqueness is measurability in time, an integrable bound at one spatial reference point, and the spatial Lipschitz bound (22) with nonnegative . On a restricted domain the existence interval must also cover the relevant trajectories. The reflected first-half curve solves the second-half equation and stays in the same base domain. The uniqueness estimate below then gives the terminal identity on the admissible initial positions.
The base field is defined by (19). Its value at the single instant does not affect the integral form of the differential equation, so may jump there; all derivatives of trajectories below hold almost everywhere, or one-sided where appropriate. The flow map of satisfies, for starting points and times for which the map is defined,
Fix an arbitrary and write
The two mirrored functions satisfy the same equation
For , the chain rule applied to the position at time gives
where the first branch of (19) applies because . For the position at time , the second branch applies, and gives
Equations (A.3) and (A.4) show that and , both viewed as functions of , satisfy the same differential equation (21). At both are the midpoint position,
The two functions therefore solve the same initial-value problem on . To conclude that they coincide, it remains to show that this problem has a unique solution.
Lipschitz continuity and Grönwall's inequality imply uniqueness
Let and be two solutions of (21) with ,
and let be their difference. Differentiating the definition and inserting (A.6) gives
The squared Euclidean norm is , and the product rule gives
With for every real and the Cauchy–Schwarz inequality ,
The Lipschitz condition (22) at the time bounds the last factor by , so
The differential form of Grönwall’s inequality states that if is absolutely continuous and almost everywhere, with integrable, then
The function is absolutely continuous because and are. With ,
where the integral is finite because . The equal initial values give , so (A.12) gives . A squared norm is nonnegative, hence
which is the uniqueness of the solution of (21).
Retracing and the identity of the final flow map
The functions and solve (21) with the same initial value (A.5). By (A.13) they coincide, which is the retracing (23), for . For ,
Since and was arbitrary, for every admissible , that is, .
The retracing (23) is stronger than the return: every material point traverses its first-half trajectory in reverse order. § 3.4 gives the condition under which a returning frame breaks this symmetry for a given material point.
CRediT authorship contribution statement
Dieter Bothe: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Resources, Software, Validation, Visualization, Writing – original draft, Writing – review & editing. Tomislav Marić: Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Data availability
The code and data supporting this article are openly available in the archive [1]. It contains the TwoPhaseFlow source code at the tag arxiv-nonretracing-advection-v1 [6], the Snakemake workflows of the three studies, the error time series and case settings of every run, all generated results, and the scripts for Figure 1 and § 2. Figure and table captions name the file each was produced from. The tables and convergence figures can be regenerated from the archived run data without OpenFOAM (verification/postprocess.py). The studies themselves are rerun with one command each, as described in the archive’s README.md.
Acknowledgements
The authors gratefully acknowledge the computing time provided to them on the high-performance computer Lichtenberg at the NHR Centers NHR4CES at TU Darmstadt. This is funded by the Federal Ministry of Education and Research, and the state governments participating on the basis of the resolutions of the GWK for national high performance computing at universities. Tomislav Marić gratefully acknowledges the support of the Athene Young Investigator Programme of the Technical University of Darmstadt.
Declaration of generative AI and AI-assisted technologies in the research and manuscript preparation process
Both authors used generative AI tools in this work, and we state here how. Dieter Bothe used ChatGPT (OpenAI) to help derive the transformation of § 3, to write a first Python implementation of it and to draft its first description. He later used it for mathematical review and editorial revision of the manuscript, including the analytic illustration of Figure 1 and its script. Tomislav Marić used Claude Code (Anthropic), an agentic coding assistant based on Claude models, to write the implementation in TwoPhaseFlow (the flux assembly from the stream function and the vector potentials, the moving-frame classes, the Snakemake workflows, the post-processing and the data archive), to run and monitor the simulations on the Lichtenberg cluster, to draft and edit the text from the authors’ notes and review comments, and to search and check the cited literature. The AI tools are not authors. The generated code was checked by the tests reported in § 5.2 and by the grid-refinement studies. The authors checked the derivations and the numbers in the text against the code and the archived results. They reviewed and edited all content and take full responsibility for the published article.
References
- [1]D. Bothe and T. Marić. Cyclic changes of frame for designing non-retracing verification cases for numerical interface tracking – Data. Figshare, version 1, 2026. https://doi.org/10.6084/m9.figshare.35042791.
- [2]Y. Chen, H. Weller, S. Pring, and J. Shaw. Comparison of dimensionally split and multi-dimensional atmospheric transport schemes for long time steps. Quarterly Journal of the Royal Meteorological Society, 143(708): 2764–2779, 2017. doi: 10.1002/qj.3125.DOI
- [3]D. Enright, R. Fedkiw, J. Ferziger, and I. Mitchell. A hybrid particle level set method for improved interface capturing. Journal of Computational Physics, 183(1):83–116, 2002. doi: 10.1006/jcph.2002.7166.DOI
- [4]R. J. LeVeque. High-resolution conservative algorithms for advection in incompressible flow. SIAM Journal on Numerical Analysis, 33(2): 627–665, 1996. doi: 10.1137/0733033.DOI
- [5]P. Liovic, M. Rudman, J.-L. Liow, D. Lakehal, and D. Kothe. A 3D unsplit-advection volume tracking algorithm with planarity-preserving interface reconstruction. Computers & Fluids, 35(10):1011–1032, 2006. doi: 10.1016/j.compfluid.2005.09.003.DOI
- [6]T. Marić. TwoPhaseFlow: moving-frame verification workflows, tag arxiv-nonretracing-advection-v1. https://github.com/tmaric/TwoPhaseFlow/tree/arxiv-nonretracing-advection-v1, 2026. Commit 86555a2e5; based on DLR-RY/TwoPhaseFlow.
- [7]T. Marić, D. B. Kothe, and D. Bothe. Unstructured un-split geometrical Volume-of-Fluid methods – a review. Journal of Computational Physics, 420:109695, 2020. doi: 10.1016/j.jcp.2020.109695.DOI
- [8]A. Meurer, C. P. Smith, M. Paprocki, O. Čertík, S. B. Kirpichev, M. Rocklin, A. Kumar, S. Ivanov, J. K. Moore, S. Singh, T. Rathnayake, S. Vig, B. E. Granger, R. P. Muller, F. Bonazzi, H. Gupta, S. Vats, F. Johansson, F. Pedregosa, M. J. Curry, A. R. Terrel, Š. Roučka, A. Saboo, I. Fernando, S. Kulal, R. Cimrman, and A. Scopatz. SymPy: symbolic computing in Python. PeerJ Computer Science, 3:e103, 2017. doi: 10.7717/peerj-cs.103.DOI
- [9]R. D. Nair and P. H. Lauritzen. A class of deformational flow test cases for linear transport problems on the sphere. Journal of Computational Physics, 229(23):8868–8887, 2010. doi: 10.1016/j.jcp.2010.08.014.DOI
- [10]W. J. Rider and D. B. Kothe. Reconstructing volume tracking. Journal of Computational Physics, 141(2):112–152, 1998. doi: 10.1006/jcph.1998.5906.DOI
- [11]J. Roenby, H. Bredmose, and H. Jasak. A computational method for sharp interface advection. Royal Society Open Science, 3(11):160405, 2016. doi: 10.1098/rsos.160405.DOI
- [12]H. Scheufler and J. Roenby. Accurate and efficient surface reconstruction from volume fraction data on general meshes. Journal of Computational Physics, 383:1–23, 2019. doi: 10.1016/j.jcp.2019.01.009.DOI
- [13]H. Scheufler and J. Roenby. TwoPhaseFlow: A framework for developing two phase flow solvers in OpenFOAM. OpenFOAM Journal, 3:200–224, 2023. doi: 10.51560/ofj.v3.80.DOI
- [14]S. T. Zalesak. Fully multidimensional flux-corrected transport algorithms for fluids. Journal of Computational Physics, 31(3):335–362, 1979. doi: 10.1016/0021-9991(79)90051-2.DOI


