WorksPhysics and Astronomy
GeoChemFoam: Operator Splitting based time-stepping for efficient Volume-Of-Fluid simulation of capillary-dominated two-phase flow
Abstract
We present a novel time-stepping method, called Operator Splitting with Capillary Relaxation (OSCAR), for efficient Volume-Of-Fluid simulations of capillary-dominated two-phase flow. OSCAR uses operator splitting methods to separate the viscous drag and the surface tension forces. Different time-steps are used for the viscous drag steps, controlled by the injection velocity, and for the capillary relaxation steps, controlled by the velocity of capillary waves. Although OSCAR induces an additional numerical error of order 0 in time resulting from the splitting, it is well suited for simulations at low capillary number. First, the splitting error decreases with the capillary number and at low capillary number, the relaxation steps converge before reaching their last iteration, resulting in a large speed-up (here up to 250x) compared to standard time-stepping methods. The method is implemented in GeoChemFoam, our OpenFOAM-based CFD solver. Convergence, accuracy and efficiency are demonstrated on three benchmark cases: (1) the steady motion of an air bubble in a straight 2D microchannel, (2) injection of supercritical CO2 in a 3D constricted channel leading to a snap-off, and (3) water drainage in a 2D oil-wet micromodel representing a porous media.
Introduction
Understanding multiphase flow at the microscale is of utmost importance for a wide range of applications, such as bio-chemical processing [6], material manufacturing [38], medical diagnostic systems [31] and subsurface engineering processes [35]. Multiphase flow involves the coupling of viscous drag in each phase with surface tension forces located at the two-fluid interface [17]. Numerical simulations at the microscale can help investigate the fundamental physics of these processes and inform upscaling models for macroscopic applications [8].
Modelling multiphase flow at the microscale is challenging due to the discontinuity of material properties at the interface between two fluids and due to interfacial boundary conditions resulting from surface tension forces. This is particularly true at low capillary number, for which interfacial forces dominate viscous forces locally [29]. Accurate representation of the interface and accurate modelling of the capillary waves induced by local capillary disequilibrium is essential.
Direct Numerical Simulation (DNS) of multiphase flow at the microscale can be achieved using the algebraic Volume-Of-Fluid (VOF) method implemented in the OpenFOAM® toolbox [23], where the interface between the two fluids is captured using an indicator function, i.e. a phase volume fraction [12], which is transported by solving an algebraic advection equation. Although other methods such as geometric VOF [9, 28, 24] or level-set [37, 10, 18, 11] can provide a more accurate description of the sharp interface, the algebraic VOF method is attractive due to its flexibility, robustness in terms of mass conservation, and adaptability to more complex physics.
There are two main challenges into applying DNS of multiphase flow at low capillary number. First, inaccurate computation of the interfacial force can generate non-physical parasitic velocities [32, 33, 29]. Second, stability constraints resulting from capillary wave velocities lead to high computational cost. Although parasitic velocities have the potential to modify the global dynamic of a two-phase system, it is often unclear if they actually do. This is because performing simulation at very low capillary number is often not possible due to the high computational cost. Pavuluri et al. [27] observed parasitic currents during numerical simulations of spontaneous imbibition in a straight microchannel as high as six times larger than the maximum velocity expected from an analytical solution, but the error in the velocity of the two-phase interface was less than 10%. However, their analysis was restricted to capillary number larger than due to the strong capillary wave stability limit, the excessively small time-step and the large computational cost.
When simulating two-phase flow at low capillary number, the injecting velocity is low, so the time-scale of the viscous drag is large compared to the time-scale of the capillary waves. In addition, the interface remains close to capillary equilibrium for most of the time, so the small time-steps of the simulation are only necessary to ensure stability. Implicit and semi-implicit time-stepping, such as used in immersed boundary methods [22], have yet to be extended to multiphase flow with surface tension forces [29]. Alternatively, this type of problems, when two coupled operators have very different time-scales, can be handled efficiently using Operator Splitting (OS) methods [13].
In this paper, a novel time-stepping method, called Operator Splitting with Capillary Relaxation (OSCAR) is presented. OSCAR uses OS to separate the viscous drag resulting from the injection velocity and the surface tension force in the momentum equation. The total velocity and pressure fields are reconstructed using an additive OS method [7], and the displacement of the interface is performed using a sequential OS method [3]. The viscous drag step is solved with a time-step controlled by the injection rate and the capillary relaxation step is solved with a time-step controlled by the capillary waves. At low capillary number, one viscous drag time-step represents a large number of capillary time-steps, but the capillary relaxation may reach an equilibrium state so that additional steps are unnecessary, resulting in a large speed-up. Convergence, accuracy and efficiency of the method are demonstrated in three test cases: the steady motion of an air bubble in a straight 2D microchannel, injection of supercritical in a 3D constricted channel leading to a snap-off and water drainage in an oil-wet polydisperse discs micromodel representing a porous media.
Mathematical model
Volume-Of-Fluid
In the VOF method, the interface between two fluids is tracked using an indicator function , which represents the volume fraction of one of the fluid in each grid cell. The density and viscosity of the fluid in each cell are expressed using their single-field values
where () and (Pa.s) are the density and viscosity of phase . Similarly, the velocity and pressure in the domain are expressed in term of the single-field variables
where (m/s) and (Pa) are the velocity and pressure in phase . Each phase is assumed to be Newtonian and incompressible, and fluid properties are assumed to be constant in each phase. Gravity is neglected. In this case, the single-field Navier-Stokes equations Hirt and Nichols, [12] can be written as
Algebraic VOF methods model the displacement of the interface by solving a discretized form of the phase advection equation.
The surface tension force can be modelled using the Continuum Surface Force (CSF) formulation introduced by Brackbill et al. [2]
where is the interfacial tension, and is the mean interface curvature, which can be computed as
where is the interface normal vector, defined as
The flow regimes associated to these equations is characterised by the capillary number, which quantifies the relative importance of viscous and capillary forces,
where is the reference velocity.
Stability criteria
In the VOF method, Eq. (7) is usually solved using explicit time-stepping, i.e following
where and are the values of and at time , respectively, and is the time-step. In addition, high resolution differencing schemes or models with compression of the interface are used to compute the divergence of in order to reduce numerical diffusion and obtain a sharp front. The surface tension force is then calculated using and the pressure-velocity system defined by Eqs. (5) and (6) is solved for and using the Pressure Implicit Sequential Operator (PISO) algorithm (Issa et al., [15]).
where and are the diagonal and off-diagonal elements of the coefficient matrix of Eq. (6). In all our simulations, the PISO loop is iterated three times to approach a converged solution. The explicit time-stepping in Eq. (12) induced a stability condition on the magnitude of the time-step, known as the Courant-Friedrichs-Lewy (CFL) condition (Courant et al., [4])
where is the distance between two grid nodes. Alternatively, implicit time-stepping can be used to avoid this time-step restriction, but this leads to additional numerical diffusion and smearing of the sharp interface [25]. Even for implicit time-stepping, using a time-step larger than will result in difficulties to solve the pressure-velocity system [15]. In addition, the computation of the surface tension force induced an additional time-step restriction, the so-called Brackbill condition [2], which insures the stability of the capillary waves propagation
where is the average density of the two phases. At the microscale and at low capillary number, the Brackbill time-step can be several orders of magnitude lower than the CFL time-step. To complete a simulation at the Brackbill time-step requires a very large number of time-steps and a large computational time, but applying a larger time-step will result in non-physical results [5]. In this case we have a clear separation of time-scales between two coupled operators in our system, the viscous drag and the capillary force. This type of problem can be handle efficiently using OS methods.
Operator-Splitting based time-stepping
The time-stepping method presented here uses OS to separate the viscous drag and the capillary forces. The domain boundaries are assumed to be made of an inlet, with constant injected velocity, an outlet, with free-flow condition, and solid walls, with no-flow and no-slip condition. The system is then split in two sub-systems, a viscous drag step that includes the injection velocity, which results in viscous drag velocity and pressure and , and intermediate phase indicator function , and capillary relaxation steps that include the surface tension forces, which results in capillary relaxation velocity and pressure and , and a new indicator function . Different time-stepping strategy can be applied to the viscous and capillary relaxation steps, with the CFL condition controlling the viscous drag steps and the Brackbill condition controlling the capillary relaxation steps. An additive OS method [7] is used for the velocity and pressure, i.e.
while a sequential OS method [3] is used for the phase function, i.e.
The advantage of this formulation is that at low capillary number, the capillary relaxation steps may converge before reaching their final step, leading to a large reduction of CPU time.
Viscous drag step
The first step of our solution procedure is to solve the viscous drag step. Given the viscous drag velocity and pressure , and the phase indicator function at time , the intermediate phase indicator function is given by
with boundary conditions
The viscous drag velocity satisfies the momentum conservation equation
with the mass conservation equation
and boundary conditions
The phase indicator equation (Eq. (18)) is solved with explicit time-stepping, while the pressure-velocity system defined by Eq. (20) and Eq. (21) is solved using the PISO algorithm [15]. The viscous drag step is solved with a time-step to ensure stability.
Capillary relaxation steps
After the viscous drag step, capillary relaxation is performed. In order to ensure stability of the capillary waves, the global time-step is split into sub-steps . For each sub-step, the phase indicator function is evolved first following
with boundary conditions
The surface tension force is then computed using the updated value of the phase indicator function. The capillary relaxation velocity satisfies momentum conservation equation
with the mass conservation equation
and boundary conditions
Again, the phase indicator equation (Eq. (23)) is solved with explicit time-stepping, while the pressure-velocity system defined by Eq. (25) and Eq. (26) is solved using the PISO algorithm [15]. The residual of the sub-steps is defined as the initial residual of the first PISO iteration
where is the normalized norm [23]. The relaxation steps are stopped at if or if . Then, the solution is moved to the next global time-step using
and the global variables
Implementation
The numerical method has been implemented in GeoChemFoam (https://julienmaes.com/geochemfoam), our OpenFOAM®-based [23] reactive transport solver. The standard VOF solver of OpenFOAM®, so-called interFoam, has been modified for this purpose into another solver called interOSFoam. The full solution procedure is presented in Figure 1. The divergence in the momentum equation (Eq. (6)) is discretized using linear upwinding, while the divergence in the phase fraction equation (Eq. (7)) is discretized using the second-order van Leer scheme [39]. To limit the smearing of the interface, an artificial compression velocity is introduced, following the method implemented in OpenFOAM® [23].
Figure 1. Full solution procedure for interOSFoam.
Benchmark cases
Convergence, accuracy and efficiency of OSCAR are evaluated on three benchmark cases. The convergence is assessed on the first test case using the relative error, defined as
where the reference values are the ones obtained at mesh resolution of 1 m. The splitting error induced by OSCAR is defined as
Benchmark case 1: bubble motion in a straight 2D channel
The first benchmark case considered is the steady motion of a non-wetting air bubble through a straight two-dimensional channel. An air bubble ( kg/m and Pa.s) is initially at capillary equilibrium in a 2D straight channel of length 600 m and width 100 m in ethanol ( kg/m and mPa.s). The interfacial tension is equal to 20 mN/m and the contact angle is set at toward the wetting phase (the liquid phase). The bubble is initialised as a rectangle of length m and width 100 m, at a position m from the left boundary, and is relaxed until capillary equilibrium. Then, at , we inject from the left boundary ethanol at constant velocity ranging from 0.167 m/s () to 1.67 m/s ().
First convergence of OSCAR is investigated. Simulations with different mesh resolution are performed for each capillary number. In each case, the viscous drag steps are performed with a time-step and the capillary relaxation steps are performed with a time-step , being the smallest integer for which . Table 1 gives the relative error (Eq. (31)) at dimensionless time for all capillary numbers, and for mesh resolution , 5 and 10 m. The order 1 convergence behaviour is clearly visible.
| Resolution | ||||||
| 2 m | 0.019 | 0.016 | 0.015 | 0.015 | 0.015 | 0.015 |
| 5 m | 0.061 | 0.054 | 0.054 | 0.054 | 0.054 | 0.054 |
| 10 m | 0.083 | 0.078 | 0.079 | 0.079 | 0.079 | 0.079 |
Table 1. errors (Eq. (31)) of OSCAR for simulation of air bubble motion in a straight 2D microchannel at different capillary numbers and different mesh resolutions. The order 1 convergence behaviour is clearly visible.
In order to compare accuracy and CPU time of OSCAR with PISO, simulations on the reference grid at all capillary numbers and various CFL are performed up to a dimensionless time . Figure 2 shows the bubble shape at dimensionless time obtained with PISO and OSCAR with CFL , for , and . The film is fully resolved for , partially resolved for and unresolved for . The calculated film thickness is presented in Figure 3 and compared with the experimentally validated correlation by Ausillous and Quéré [1]. At , the film thickness predicted by the correlation is 2.69 m and we obtain 2.67 m with PISO and 2.61 m with OSCAR, which corresponds to errors of 0.7% and 3%. At , the correlation gives a thickness of 0.65 m, and we obtain 0.39 m with PISO (error 40%) and 0.38 m (error 42%). We conclude that OSCAR is capable of modelling the thin film thickness with similar accuracy than PISO.

Figure 2. Bubble shape at during simulation of air bubble motion in a straight two-dimensional channel at capillary numbers from to . The simulations for are performed with PISO and OSCAR, and the local splitting error in phase volume fraction is shown. The simulations for cannot be performed with PISO due to high computational cost and only the OSCAR results are shown.

Figure 3. Comparison of thin film thickness during steady motion of an air bubble in a 2D channel at various capillary numbers obtained by numerical simulations with PISO and OSCAR and with experimentally validated correlation by Aussillous and Quéré [1].
The local splitting error in the phase volume fraction is also shown on Figure 2. For and , the splitting error is mostly localized on the right part of the bubble. This is due to the slightly smaller film thickness, resulting in a slightly lower bubble velocity. Table 2 shows the evolution of the splitting error (Eq. (32)) as a function of the capillary and the CFL numbers. For , not all simulations could be perform with PISO due to the Brackbill stability limit. This occurs when . The simulations that could not be performed are marked with “−”. The order 0 behaviour with respect to time (i.e. CFL) is clearly visible. However, the error remains low for all simulations. The maximum error occurs for and and is equal to . We also observe that the error reduces with respect to with an order of about 0.5.
| — | |||
| — | — |
Table 2. Splitting error as a function of the capillary and the CFL numbers
The computational cost of these simulations is presented in Table 3. Simulations with could not be performed due to high computational time, but in order to have an estimation of the simulation time for using PISO, simulations with were performed until a dimensionless time and the total computational cost was extrapolated. For each capillary number, the minimum computational time is presented in blue.
| PISO | PISO | PISO | PISO | OSCAR | OSCAR | OSCAR | OSCAR | |
| 0.48 | 3.00 | 19.0 | 163* | 0.89 | 5.96 | 36.1 | 290* | |
| — | 3.25 | 19.9 | 168* | 4.01 | 6.12 | 38.1 | 299* | |
| — | — | 20.0 | 181* | 26.6 | 21.4 | 38.2 | 291* | |
| — | — | — | 214* | 24.3 | 21.5 | 38.3 | 293* | |
| — | — | — | — | 24.4 | 21.5 | 38.3 | 292* | |
| — | — | — | — | 24.4 | 21.6 | 38.3 | 293* |
Table 3. Comparison of CPU time between PISO and OSCAR for the simulation of the steady motion of a air bubble in a 2D channel at various CFL and capillary numbers.
For , the CPU time using OSCAR is roughly twice as large as the CPU time using PISO. For all these simulations, , and OSCAR performs one viscous drag step and one capillary relaxation step for each global time-step. For , the simulations that could not be performed with PISO due to the Brackbill stability limit are marked with “−”. These simulations can be performed using OSCAR thanks to the different time-steps for viscous drag and capillary relaxation. This is of no interest for , since the minimum CPU time for PISO, obtained with , is lower than the minimum CPU time for OSCAR. However, at , the simulation with PISO could only be performed at , and the (extrapolated) CPU time is 214 hours. Although the simulation with OSCAR at would be even longer, for the capillary relaxation steps converge rapidly. OSCAR is therefore able to provide a converged results in 24.3 hours using or 21.5 using , roughly 10 time faster than what can be achieved using PISO. In addition, reducing the capillary number further by a factor 10 or 100 has little impact on the CPU time of OSCAR and simulations for
can be performed. The bubble shape at dimensionless time for , and is also shown in Figure 2 but only with OSCAR, as these simulations are impossible to perform with PISO due to high computational time.
In order to understand the origin of the speed-up obtained, the percent of relaxation steps performed for each time-step and average percent of relaxation steps performed for and CFL are plotted in Figure 4. In this case, one viscous drag step correspond to capillary relaxation step. When the relaxation steps converged for , a speed-up is obtained. For most of the time-steps, the capillary relaxation converges in between 4 and 8 steps, which corresponds to 5 and 10% of . The average number of relaxation steps is 6.2, which corresponds to 7.75% of , and provides a large speed-up.

Figure 4. Percent of relaxation steps performed for each time-step and average percent of relaxation steps performed as a function of time during steady motion of an air bubble in a 2D channel at .
We conclude that OSCAR is able to simulate accurately the motion of an air bubble in a 2D microchannel at all capillary numbers considered here, from to , and is particularly efficient for with low splitting error.
Benchmark case 2: snap-off in a 3D constricted channel
The second benchmark case consider a 3D constricted channel with a square cross section. The geometry is made of two cubes of side separated by a square-shaped tube of side and length in the middle. The inlet is located at the left boundary and the outlet at the right boundary. The other boundaries are solid. The domain is meshed with a Cartesian grid of resolution that contains 456,000 cells.
The domain is initially filled with water at and 9 MPa ( and ). At t, we inject supercritical CO (, and ) from the left boundary at constant velocities corresponding to capillary numbers , , and . The contact angle is set at toward the wetting phase (the water). Since the aspect ratio , the injection will lead to a snap-off in the constriction ([30]) and a CO bubble will form (Figure 5). Each simulation is performed using PISO with a constant time-step and using OSCAR with a constant time-step . Each simulation is run until snap-off occurs unless mentioned otherwise.

Figure 5. Phase distribution after snap-off during injection of supercritical CO (blue) in pore-constriction. The simulations for are performed with PISO and OSCAR, and the local splitting error in phase volume fraction is shown. The simulations for cannot be performed with PISO due to high computational cost and only the OSCAR results are shown.
Figure 5 shows the phase distribution after snap-off for and using PISO and OSCAR. The local splitting error in the phase volume fraction is also shown in Figure 5. Most of the error is located at the interface after the snap-off occurred. The splitting leads to a slight delays in the snap-off and as a result the bubble is slightly larger. Table 4 shows the CPU time, snap-off time and bubble volume obtained with PISO and OSCAR and the evolution of the splitting error with respect to the capillary number. The simulations at and with PISO could not be performed until snap-off due to high CPU time and the ones reported in the table were obtained by extrapolation. These simulations could be performed using OSCAR and the phase distribution after snap-off is shown on Figure 5. The snap-off time and bubble volume obtained with PISO and OSCAR are similar and the difference decreases with . In addition, the splitting error decreases with , with an order of approximately 0.7. OSCAR gives a speed-up compared to PISO for capillary number . OSCAR is 2.2 time faster than PISO for , 12 time faster for and 120 time faster for .
| CPU time (hour) | Snap-off time (s) | Bubble volume () | Splitting error | ||||
| PISO | OSCAR | PISO | OSCAR | PISO | OSCAR | ||
| 6.8 | 13.3 | 0.028 | 0.028 | 0.0804 | |||
| 30.9 | 13.7 | 0.14 | 0.14 | 0.0166 | |||
| 300* | 24.6 | – | 1.4 | – | – | ||
| 3000* | 24.6 | – | 14 | – | – |
Table 4. Comparison of CPU time, snap-off time and bubble volume obtained with PISO and OSCAR and evolution of the splitting error (Eq. (32)) for the simulation of snap-off in a 3D constricted channel at various capillary numbers.
The percent of relaxation steps performed for each time-step and average percent of relaxation steps performed for are plotted in Figure 6. When the relaxation steps converged before , a speed-up is obtained. However, when reaches without convergence, then 100% of the relaxation steps have been performed and no speed-up is obtained. The absence of convergence can have two causes. First, the viscous drag might be too strong for the relaxation steps to converge within a time corresponding to . In this case, the interface is not at capillary equilibrium for the time-step considered. Second, the absence of capillary equilibrium in the numerical simulation can be caused by numerical errors, e.g. parasitic currents. In average 42% of the capillary relaxation steps are performed. However, the oscillatory nature of the number of capillary relaxation steps in Figure 9 suggests that parasitic currents play a large role in the convergence of our numerical solution and reducing them could further improve the CPU time of OSCAR.

Figure 6. Percent of relaxation steps performed for each time-step and average percent of relaxation steps performed as a function of time during snap-off in a 3D constricted channel at .

Figure 9. Percent of relaxation steps performed for each time-step and average percent of relaxation steps performed as a function of time during water drainage in a 2D oil wet micromodel at .
We conclude that OSCAR is capable of simulating snap-off in a 3D constricted channel with similar accuracy as PISO, and that for the simulation can be performed in approximately 24 hours, while these simulations cannot be performed with PISO due to high CPU time.
Water drainage in an oil-wet micromodel
The final benchmark case considers a 2D micromodel made of polydisperse discs representing a porous media. The model is constructed from a homogeneous domain with discs radius 270 m by adding a ran-
dom deviation of magnitude 270 m in disc radius and center position, following the method presented in Patsoukis-Dimou et al. [26] and the code is available open source (https://github.com/hannahmenke/DrawMicromodels). The geometry is presented in Figure 7. At the inlet situated at the top, the pores have been prolonged by tubes of 0.1 cm, so that the injected fluid can be relaxed to capillary equilibrium before the injection starts.

Figure 7. Micromodel geometry. Dimensions are in cm.
To mesh the domain, a 2D uniform Cartesian grid comprising 600 500 grid blocks of size 30 m is generated, and then all cells containing solid are removed and replaced by hexahedral and tetrahedral cells that match the solid boundaries using the snappyHexMesh OpenFOAM® utility (OpenCFD, [23]). The final grid contains 141,600 cells.
The domain is initially filled with dodecane ( kg/m and mPa.s). At , water is injected ( kg/m, mPa.s and mN/m.) from the inlet at constant velocities corresponding to capillary numbers from to . We chose a relatively high contact angle of 45° (weak drainage). Each simulation are performed using PISO with a constant time-step and using OSCAR with a constant time-step . Unless mentioned otherwise, each simulation is run until 5 pore volumes have been injected, i.e when
where is the injecting velocity, the area of the inlet and the total pore-volume of the domain.
Figure 8 shows the phase distribution at the end of each simulation obtained with PISO and OSCAR at , and . PISO and OSCAR shows the same transition between viscous dominated regime (), where the displacement is mostly compact, and capillary dominated (), where capillary fingers develop. The local splitting error in phase volume fraction is also shown. At , the error is located in the wetting films, but since the capillary force is dominated by the viscous force, the error does not lead to a significant difference in the invasion pattern. At , the displacement is strongly capillary dominated and the splitting error is low. We observe that the error is larger in the transition between the regimes, i.e. for . The relaxation of the coupling between viscous and capillary forces leads to a small but not insignificant difference in the invasion pattern.

Figure 8. Phase distribution at end of simulation during water drainage in an oil-wet micromodel at various capillary numbers. The simulations for are performed with PISO and OSCAR, and the local splitting error in phase volume fraction is shown. The simulations for cannot be performed with PISO due to high computational cost and only the OSCAR results are shown
Table 5 shows the CPU times and residual oil saturations obtained with PISO and OSCAR, and the evolution of the splitting error with respect to the capillary number. As noted before, the splitting error is largest () for for which the coupling between viscous and capillary forces matters the most and is low for and . For , the residual saturation obtained with OSCAR
| CPU time (hour) | Residual oil saturation | Splitting error | |||
| PISO | OSCAR | PISO | OSCAR | Splitting error | |
| 0.56 | 1.12 | 0.433 | 0.434 | 0.067 | |
| 1.56 | 2.51 | 0.471 | 0.481 | 0.12 | |
| 16.8 | 18.0 | 0.465 | 0.464 | 0.025 | |
| 165* | 63.2 | — | 0.456 | — | |
| 1650* | 63.9 | — | 0.454 | — | |
| 16500* | 64.5 | — | 0.454 | — |
Table 5. Comparison of CPU time and residual saturation obtained with PISO and OSCAR and evolution of the splitting error (Eq. (32)) for the simulation of water drainage in 2D oil-wet micromodel at various capillary numbers.
and PISO had a small discrepancy of 2%. The discrepancy for and is 0.2%. The simulations for , and were slightly slower with OSCAR, since for each time-step, viscous and capillary relaxation steps need to be solved. However, the simulations for , and could not be performed with PISO due to high CPU time, and the time reported in Table 5 were obtained by extrapolation. These simulations could be performed using OSCAR and the phase distribution at the end of the simulation is shown on Figure 8. CPU times and residual oil saturations obtained with OSCAR are given in Table 5. OSCAR gives a speed-up compared to PISO for capillary number . OSCAR is 2.5 time faster than PISO for , 25 time faster for and 250 time faster for . The residual saturation for is lower than for as the capillary fingers are less ramified.
The percent of relaxation steps performed for each time-step and average percent of relaxation steps performed for are plotted in Figure 9. On average, 39% of the capillary relaxation steps are performed. Again, the oscillatory nature of the number of capillary relaxation steps in Figure 9 suggests that parasitic currents play a large role in the convergence of our numerical solution and reducing them could further improve the CPU time of OSCAR.
We conclude that OSCAR is capable of simulating accurately drainage in a 2D micromodel for capillary number . In particular, it can be used to simulate flow at capillary number in about 60 hours while the CPU time with PISO is more than 165 hours and increases linearly as decreases.
Conclusions
In this work, OSCAR, a novel time-stepping algorithm for efficient simulation of multiphase flow at low capillary number, is presented. The algorithm uses operator splitting method to separate the viscous drag and the capillary forces. Different time-steps is used for each operator, i.e. based on the CFL number for the viscous drag steps, and based on the minimum of the CFL and of the Brackbill number for the capillary relaxation steps. For one viscous drag step, several capillary relaxation steps are performed until they reach convergence or if they reach the maximum number corresponding to the viscous drag time-step. Convergence, accuracy and efficiency of the method are investigated with three test cases.
In benchmark case 1, the motion of an air bubble in a 2D straight channel filled with dodecane was considered. Convergence of OSCAR with respect to grid size was investigated and an order 1 convergence was observed. The film thickness at the surface of the solid was calculated for and we observed that OSCAR resolves the film with similar accuracy than PISO. Although an additional splitting error of order 0 with respect to the time-step was also observed, this error was smaller than 0.015 for all time-steps and all capillary numbers, and decreased as decreased. For , the splitting error was smaller
than 0.001 and fast convergence of the capillary relaxation steps led to a large speed-up, so that simulation at could be performed using OSCAR in approximately 20 hours, while these simulations were not performed with PISO due to high computational time.
In benchmark case 2, injection of supercritical in a 3D constricted channel with aspect ratio equal 3 leading to a snap-off was considered. Simulations were performed at capillary number from to with OSCAR and PISO and snap-off was observed in each case. The snap-off time and bubble volume obtained with PISO and OSCAR were similar and the difference decreased with . In addition, the splitting error decreased with , with an order of approximately 0.7. For the simulation could be performed in approximately 24 hours using OSCAR, while the CPU time with PISO was more than 300 hours and increased linearly as decreases.
In benchmark case 3, water drainage in an 2D oil-wet micromodel was considered. The splitting error was maximal for and the residual saturation obtained with OSCAR and PISO had a small discrepancy of 2%, but were almost equal for and . For , the simulations could be performed with OSCAR in approximately 60 hours, while the CPU time with PISO was more than 160 hours and increased linearly as decreases.
This work paves the way for efficient simulations of multiphase flow at low capillary numbers, which are an essential feature of multiphase reactive transport applications (e.g. storage, enhanced oil recovery, soil decontamination). Indeed, these applications include processes such as diffusion of ions in water [19] and mineral dissolution [34] that have time-scales several orders of magnitude larger than the time-scale of capillary waves and at the microscale they can only be modelled using an operator splitting based time-stepping. Our investigation was based on algebraic VOF method, but the principle of splitting the viscous drag and the capillary force can be applied to most multiphase flow methods, i.e. geometric VOF, level-set or phase-field. In particular, there is potential for even more speed-ups since in this work spurious currents may have prevented faster convergence of the capillary relaxation steps. Improving on the convergence criteria using topology-based deficit curvature [36] or energy balance [20] so that capillary equilibrium can be identified despite parasitic currents could also lead to further speed-up. Splitting methods also isolate the complexity of operators [14] and simplify the application of machine-learning-based acceleration in numerical models (Menke et al., 2021; [16].
Acknowledgment
This work was done as part of the UK EPSRC funded project on Direct Numerical Simulation for Additive Manufacturing in Porous Media (grant reference EP/P031307/1).
References
References
References
- [1]Aussillous, P., Quéré, D., 2000. Quick deposition of a fluid on the wall of a tube. Phys. Fluids 12 (10), 2367–2371.
- [2]Brackbill, J. U., Kothe, D. B., Zemach, C., 1992. A continuum method for modeling surface tension. J. Comput. Phys. 100 (2), 335–354.DOI
- [3]Carrayrou, J., Mose, R., Behra, P., 2004. Operator-splitting procedures for reactive transport and comparison of mass balance error. Journal of Contaminant Hydrology 68, 239 – 268.pubmed.ncbi.nlm.nih.gov/14734248
- [4]Courant, R., Friedrichs, K., Lewy, H., 1928. Über die partiellen differenzengleichungen der mathematischen physik. Math. Ann. 100, 32–74.
- [5]Denner, F., Paré, G., Zaleski, S., 2016. Dispersion and viscous attenuation of capillary waves with finite amplitude. Eur. Phys. J. Special Topics 226, 1229–1238.DOI
- [6]Elvira, K. S., Solvas, X. C. I., Wootton, R. C. R., deMello, A. J., 2013. The past, present and potential for microfluidic reactor technology in chemical synthesis. Nature Chemistry 5 (11), 905–915.DOI
- [7]Farago, I., Gnandt, B., Havasi, A., 2008. Additive and iterative operator splitting methods and their numerical investigation. Computers and Mathematics with Applications 55, 2266–2279.DOI
- [8]Ferrari, A., Lunati, I., 2013. Direct numerical simulations of interface dynamics to link capillary pressure and total surface energy. Advances in water resources 57, 19–31.DOI
- [9]Gerlach, D., Tomar, G., Biswas, G., Durst, F., 2006. Comparison of volume-of-fluid method for surface tension-dominant two-phase flows. Int. J. Heat Mass Transfer 49, 740–754.
- [10]Gibou, F., Fedkiw, R., Osher, S., 2018. A review of level-set method and some recent applications. J. Comput. Phys. 353, 82–109.
- [11]Hashemi, M. R., Ryzhakov, P. B., Rossi, R., 2020. An enriched finite element/level-set method for simulating two-phase incompressible fluid flows with surface tension. Comput. Method Appl. M. 370 (113277).DOI
- [12]Hirt, C. W., Nichols, B. D., 1981. Volume-Of-Fluid (VOF) method for the dynamic of free boundaries. J. Comput. Phys. 39 (1), 201–225.DOI
- [13]Holden, H., Karlsen, K. H.and Lie, K., Risebro, N. H., 2010. Splitting method for partial differential equations with rough solution. European Mathematical society.
- [14]Iliev, O., Nikiforova, A., Semenov, Y. V., Zakharov, P. E., 2017. Splitting algorithm for numerical simulation of Li-ion battery electrochemical processes. AIP Conference Proceedings.DOI
- [15]Issa, R., Ahmadi-Befrui, B., Beshay, K., Gosman, A., 1985. Solution of the implicitly discretised reacting flow equations by operator-splitting. J. Comput. Phys. 93 (2), 388–410.
- [16]Leal, A. M. M., Kyas, S., Kulik, D. A., Saar, M. O., 2021. Accelerating reactive transport modeling: ondemand machine learning algorithm for chemical equilibrium calculations. Transport in Porous Media 133, 161–204.DOI
- [17]Levich, V. G., 1962. Physicochemical Hydrodynamics. Prentice Hall inc., Englewood Cliffs, N.
- [18]Luo, K., Shao, C., Chai, M., Fan, J., 2019. Level set method for atomization and evaporation simulations. Progress in Energy and Combustion Science 50, 49–75.DOI
- [19]Maes, J., Menke, H. P., 2021. Geochemfoam: Direct numerical simulation of multiphase reactive transport in real pore geometries with equilibrium reactions. arXiv:2103.03579.arxiv.org/abs/2103.03579
- [20]McClure, J. E., Berg, S., Armstrong, R. T., 2021. Capillary fluctuations and energy dynamics for flow in porous media. arXiv:2012.09206.DOI
- [22]Newren, E. P., Fogelson, A. P., Guy, R. D., Kirby, R. M., 2007. Unconditionally stable discretizations of the immersed boundary equations. Journal of Computational Physics 222 (2), 702–719.DOI
- [23]OpenCFD, 2016. OpenFOAM, the open source cfd toolbox, User Guide. OpenCFD Ltd.
- [24]Owkes, M., Desjardins, O., 2014. A computational framework for conservative, three-dimensional, unsplit, geometric transport with application to the volume-of-fluid (vof) method. J. Comput. Phys. 270, 587–612.DOI
- [25]Patankar, S. V., 1980. Numerical Heat and Mass Transfer. Hemisphere Publ. Corp., Washington.
- [26]Patsoukis-Dimou, A., Menke, H. P., Maes, J., 2021. Benchmarking the viability of 3d printed micromodels for single phase flow using particle image velocimetry and direct numerical simulations. arXiv:2103.03597.arxiv.org/abs/2103.03597
- [27]Pavuluri, S., Maes, J., Doster, F., 2018. Spontaneous imbibition in a microchannel: anayltical solution and assessment of volume-of-fluid formulation. Microfluidics and nanofluidics 22 (90).
- [28]Popinet, S., 2009. An accurate adaptive solver for surface-tension-driven interfacial flows. J. Comput. Phys. 228, 5838–5866.DOI
- [29]Popinet, S., 2018. Numerical models of surface tension. Annual review of fluid mechanics 50, 49–76.DOI
- [30]Roman, S., Abu-Al-Saud, M. O., Tokunaga, T., Wan, J., Kovscek, A. R., Tchelepi, H. A., 2017. Measurements and simulation of liquid films during drainage displacements and snap-off in constricted capillary tubes. Journal of Colloid and Interface Science 507, 279–289.DOI
- [31]Sackmann, E. K., Fulton, A. L., Beebe, D., 2014. The present and future role of micro-fluidics in biomedical research. Nature 507 ((7491)), 181–189.
- [32]Scardovelli, R., Zaleski, S., 1999. Direct numerical simulation of free-surface and interfacial flow. Annu. Rev. Fluid Mech. 31, 567–603.DOI
- [33]Shams, M., Raeini, A. Q., Blunt, M. J., Bijelic, B., 2018. A numerical model of two-phase flow at the micro-scale using the volume-of-fluid method. Journal of computational physics 357, 159–182.DOI
- [34]Soulaine, C., Maes, J., Roman, S., 2021. Computational microfluidic for the geosciences. Frontier in Water 3 (643714).
- [35]Soulaine, C., Roman, S., Kovscek, A., Tchelepi, H. A., 2018. Pore-scale modelling of multiphase reactive flow. application to mineral dissolution with production of co2. J. Fluid Mech. 855, 616–645.
- [36]Sun, C., McClure, J. E., Mostaghimi, P., Herring, A. L., Berg, S., Armstrong, R. T., 2020. Probing Effective Wetting in Subsurface Systems. Geophysical Research Letters 47 (5).DOI
- [37]Sussman, M., Smereka, P., Osher, S., 1994. A level-set approach for computing solutions to incompressible tow-phase flow. J. Comput. Phys. 114, 146–159.DOI
- [38]Tavakoli, R., Babaei, R., Varahram, N., Davami, P., 2006. Numerical simulation of liquid/gas phase flow during mold filling. Comput. Method Appl. M. 196, 697–713.DOI
- [39]van Leer, B., 1974. Towards the ultimate conservative difference scheme. II. Monotonicity and conservation combined in a second-order scheme. Journal of Computational Physics 14 (4), 361–370.DOI
