Instability of co-flow in a Hele-Shaw cell with cross-flow varying thickness

Abstract We analyse the stability of the interface between two immiscible fluids both flowing in the horizontal direction in a thin cell with vertically varying gap width. The dispersion relation for the growth rate of each mode is derived. The stability is approximately determined by the sign of a simple expression, which incorporates the density difference between the fluids and the effect of surface tension in the along- and cross-cell directions. The latter arises from the varying channel width: if the non-wetting fluid is in the thinner part of the channel, the interface is unstable as it will preferentially migrate into the thicker part. The density difference may suppress or complement this effect. The system is always stable to sufficiently large wavenumbers owing to the along-flow component of surface tension.


Introduction
The parallel co-flow of two fluids occurs in many industrial, biological and environmental processes. It is often important to understand the interfacial instability and develop strategies to control it. Frequently, these flows occur in thin channels whose thickness varies in the cross-flow direction. Examples include: the flow of cement and drilling fluid within a casing pipe of a subsurface well, where the intermingling of cement and mud can produce poorly sealed wells with the attendant risks of leakage; the flow of coatings in the corner region along the line of intersection between two planes, where the displacement of air limits the formation of non-coated zones (Weislogel & Lichter 1996); flows of reactants in microfluidic channels (Sauer 1987;Huang et al. 2018); and the displacement of water by CO 2 in permeable channels used for CO 2 sequestration, where intermingling may enhance the efficiency of the sequestration (Woods & Mingotti 2016). For the last example of CO 2 sequestration, the pore-scale dynamics, which is controlled by capillary effects and the interpore geometry, is not fully understood but can have a significant effect on macroscale mechanisms such as the flux and the residual trapping of the CO 2 , which are key to estimating storage efficiency (Zhao et al. 2019;Benham, Bickle & Neufeld 2021).
If the initial flow involves the displacement of one fluid by a second along the channel, the displacing fluid will migrate along the wide part of the channel, stretching out the interface; at long times, the interface is approximately directed along the channel, and the flow evolves to the co-flowing geometry of the present problem (cf. Woods & Mingotti 2016;Mortimer & Woods 2021). We investigate how the stability of the interface between the two fluids in a thin cell with vertically varying gap width is controlled by cross-layer buoyancy and capillary effects (figure 1). We assume that inertia plays a negligible role in the base flow. It has been shown that when inertia plays a significant role and the two fluids in the Hele-Shaw cell have significantly different viscosities, the shear-controlled Kelvin-Helmholtz instability may occur as has been observed experimentally (Zeybek & Yortsos 1992;Gondret & Rabaud 1997;Rabaud & Moisy 2020). In wider channels, it has been shown that even at zero Reynolds number the vertical shear associated with the no-slip boundaries at the top and bottom can give rise to interfacial instabilities in the co-flow of two fluids of different viscosity (Yih 1967). Similar behaviour can occur in two-layer gravity-driven flow (Loewenherz & Lawrence 1989).
In the present work, we consider a laterally thin cell in which the vertically varying velocity arises from variations in the cell width. The stability is primarily controlled by the density difference between the fluids and surface tension. It is well established that the along-flow component of surface tension stabilises larger wavenumbers. The combination of surface tension and the cross-cell variation in thickness introduces a new (de)stabilising process for small wavenumbers in the case that the (non-)wetting fluid is in the thinner part of the channel. This effect may complement or suppress the effect of a density difference between the two fluids on the stability of the interface.
The impact of variations in the surface tension associated with variations in the channel width have been explored in detail for the related problem in which an input fluid displaces an ambient fluid in a cell whose width varies in the direction of flow (Homsy 1987;Al-Housseiny, Tsai & Stone 2012;Dias & Miranda 2013;Grenfell-Shaw & Woods 2017). These studies have identified that the effect of cross-cell curvature can complement or suppress the classical Saffman-Taylor instability (Saffman & Taylor 1958).

Formulation
The flow and the cell geometry are illustrated in figure 1. The cell occupies 0 < y < H and has width b( y) which varies in the vertical direction, where α represents the inclination of the cell walls, which may be positive or negative, and α > −b 0 /H, so that the cell width is non-negative. Flow is driven in both fluids in the x direction by a background pressure gradient with magnitude G. For relatively slow flows, we can apply the lubrication approximation, which is to say that the leading-order velocities are independent of x. Under this assumption, the momentum and continuity equations for the gap-averaged velocity in each fluid take the form (equation (11) of Gondret & Rabaud 1997) where ∇ = (∂/∂x, ∂/∂y), e y is the unit vector in the y direction and μ and ρ are the fluid viscosity and density, respectively. Also, p is the pressure, g represents gravity, which acts in the negative y direction, andū = (ū,v) is the width-averaged velocity in the x and y directions. The boundary conditions are no-flux at the top and bottom of the channel, v = 0, whilst at the fluid-fluid interface, y = y I , the velocity in each fluid satisfies the kinematic boundary condition In addition, there is a pressure jump at the interface associated with its curvature, κ = ∇ 2 y I , given by where γ represents surface tension. The unperturbed steady base flow is given bȳ The fluids are immiscible and the location of the fluid-fluid interface, y I = h, is a constant for the case of steady flow, which depends on the channel angle, the relative flux in each layer and the viscosity ratio. Although the curvature of the interface in the along-flow direction vanishes since y I is independent of x, there is curvature in the cross-channel direction owing to the contact angle at the wall and the varying channel width (figure 1b). Hence, there is a pressure jump at the interface, which is independent of x, and the constants in P 0 in the base flow are different in the two fluids.
We consider perturbations to the interface and steady base flow of the form where ζ , u( y), v( y) and p( y) are assumed to be small. We seek to determine the stability of such perturbations. The linearised governing equations in each fluid are where a prime ( ) denotes differentiation with respect to y. We eliminate p to obtain (2.12) Also, continuity yields which can be used to eliminate u( y) from (2.12) and obtain a differential equation for v( y), where the coefficients are defined below for the dimensionless analogue.
2.1. Non-dimensionalisation To scale the system, we use the tank height, H, as the length-scale, and the time-scale is The upper fluid is labelled fluid 2, whilst the lower is labelled fluid 1 (figure 1). Henceforth, all quantities are dimensionless unless stated otherwise, and we discard the hat notation. The dimensionless equation in fluid j = 1, 2 becomes where M 1 = M, M 2 = 1 and R 1 = R, R 2 = M, and we have introduced the dimensionless parameters which respectively represent the viscosity ratio, the density ratio and the importance of viscous drag relative to inertia; A is inversely proportional to a Reynolds number.

Boundary conditions
(2.21) The kinematic boundary conditions (2.3) at the fluid-fluid interface become The dynamic boundary condition at the interface accounts for a jump in pressure associated with surface tension and curvature. This comprises two contributions: the along-channel curvature and the cross-channel curvature. The former is proportional to the second derivative of the interface y I in the x direction, which furnishes a term proportional to k 2 . Treating the cross-channel curvature requires more care. The contact angle,θ, is defined as the angle between fluid 1 and the channel wall ( figure 1b). In a cell with inclined walls, the radius of curvature is adjusted from the case of a parallel-sided cell and we define an effective contact angle, θ =θ − φ, where tan φ = α/2 (Park & Homsy 1984;Romero & Yost 1996;Grenfell-Shaw & Woods 2017). The discontinuity in the perturbed pressures at the interface is then given by where we have introduced the following dimensionless groups: We use the dimensionless analogues of (2.9) and (2.13) to obtain the dimensionless pressures in terms of the vertical velocity, v, in each fluid, We substitute the pressures into the dynamic boundary condition (2.23) to obtain where the suppressed argument of v (1) , v (2) , dv (1) /dy, dv (2) /dy and b is y = h.

Solution method
The system for v( y) comprises two second-order linear ordinary differential equations in 0 < y < h and h < y < H (2.16) and four boundary conditions: no-flux at the top and bottom boundaries (2.21) and the kinematic and dynamic boundary conditions (2.22a,b), (2.26) at the interface. We note that the two equations for the kinematic condition (2.22a,b) can be used to eliminate ζ from the problem. To solve this system, we first simplify the problem by writingb( y) = kb( y)/α and obtain the following equation for v ( j) (b): where for each fluid we have introduced The general solution for v in each fluid is given by a linear combination of two independent power series, Φ ( j) (b) and Ψ ( j) (b), whose coefficients are determined by Frobenius' method (given in Appendix A). The velocities are where c ( j) are constants and we have used the no-flux boundary conditions at the base and the top (y = j − 1). The dynamic boundary condition may be written as follows (at y = h): (3.9) The kinematic boundary condition may be written as Combining the velocities with these two boundary conditions furnishes the following dispersion relation: where (3.14) , (3.16) with i denoting the imaginary unit. For any value of k and the dimensionless parameters, we may obtain a solution for the growth rate, ω, that satisfies (3.11) (e.g. figure 2a).

Analysis
The terms in the square brackets in S (3.14) correspond to the pressure jump at the interface, and we define (4.1) In general, J > 0 is associated with instability and J < 0 is associated with stability. The first term, R − 1, represents the density difference between the fluids. It stabilises the interface for R < 1 and destabilises it for R > 1. The term −Bo −1 k 2 stabilises the interface; it arises from surface tension suppressing the curvature in the along-channel (x) direction. The final term, −2Bo −1 α cos θ/b(h) 2 , is associated with surface tension acting on the curvature across the thickness of the cell. It drives or suppresses an instability depending on whether the wetting or non-wetting fluid is in the thinner part of the channel.
This corresponds to the sign of α and the sign of cos θ. To interpret the instability, we consider the simpler cases of equal density in § 4.1 and parallel walls in § 4.2 before returning to the full problem in § 4.3.
4.1. Equal density (R = 1) In the case of equal-density fluids, R = 1, the pressure jump reduces to (4.2) For small wavenumber, k, the cross-cell surface tension term controls the stability as demonstrated in figure 2(a). The red and yellow curves correspond to the non-wetting fluid occupying the thicker part of the channel, and the system is stable, as this fluid will remain in the thicker part of the channel. The blue and purple curves represent the converse situation, in which the non-wetting fluid is in the thinner part of the channel and will move to the wider side of the channel, leading to an instability (see figure 2b). For larger wavenumbers, the along-channel term stabilises the interface. The along-channel and cross-channel curvature terms balance (Bo −1 k 2 + 2Bo −1 α cos θ/b(h) 2 = 0) at a critical wavenumber, For k > k c , we anticipate that the system is stable. The critical wavenumbers are shown by crosses for the two unstable set-ups in figure 2, demonstrating good agreement with the predictions from § 3. The small discrepancy between the prediction of J (4.3) and the numerical results arises because of the physical effects, such as inertia, that are incorporated in the numerics but are neglected when using J as an approximation of the stability criterion. In many settings, it is important to understand how the instability depends on the flux in each layer. To analyse this, we calculate the relative flux, Q, of the top to the bottom layer, (4.4) The quantity MQ = μ 2 Q 2 /(μ 1 Q 1 ) depends only on α, h and b 0 . We consider channels of fixed dimensionless area, so that For a given channel area and relative flux Q, we can calculate the interface height h as a function of the channel angle α (see figure 3(a) for the case with dimensionless area 0.2). We can also calculate the critical wavenumber, k c , by using (4.3) (see figure 3(b) for the case θ = 3π/4).

4.2.
Parallel cell walls (α = 0) In the case that the cell walls are parallel, (4.6) For small k, the stability is controlled solely by the density ratio, R. In the case that R < 1, the system is stabilised by the density difference and there are no destabilising effects The corresponding critical wavenumber, k c , above which the system is stable according to (4.3) for θ = 3π/4. Note that the system is stable for all k for α 0.  (Gondret & Rabaud 1997). For R > 1, the Rayleigh-Taylor instability is stabilised for large k owing to the along-cell surface tension. Neutral stability is given by (4.7) Figure 4 shows the growth rate as a function of wavenumber (obtained in § 3). For R > 1, the critical wavenumber prediction is indicated by crosses, showing good agreement.

Competition between density difference and surface tension
The cross-cell surface tension effect may be nullified or complemented by buoyancy, depending on whether the wetting or non-wetting fluid is denser. The critical value of R corresponding to neutral stability is (see (4.1)) (4.8) The system is stable for all wavenumbers when R < R c (0), which is shown as a continuous blue line in figure 5. The results from § 3 for neutral stability for k = 0.2 are plotted as black circles, showing good agreement. A comparison is also shown for k = 1.5 as a broken blue line. . Critical value of R corresponding to neutral stability from (4.8) as a function of cell wall inclination α and relative flux QM for k = 0, θ = 3π/4, Bo = 5. The cell area is fixed as 0.2, and the interface position is given in figure 3(a). Figure 6 shows the critical density ratio R c (0) as a function of the relative flux, and the channel inclination α in the case of a constant cell area, 0.2. The interface height h is obtained from (4.4). When α is small, the critical density ratio becomes independent of the relative flux (and hence the interface height h) because wetting effects become unimportant.

Conclusion
We have obtained the dispersion relation for the co-flow of two immiscible fluids in a Hele-Shaw cell with vertically varying gap width. The stability of the system is accurately predicted by the sign of the quantity J = R − 1 − Bo −1 [k 2 + 2α cos θ/b(h) 2 ]. (5.1) The last term, associated with channel wall inclination, represents the preference of the non-wetting fluid to occupy the thicker part of the channel. The interface is stable when the fluids have equal density and the wetting fluid occupies the thinner part of the channel.
A density difference may complement or oppose this effect. We have obtained critical values of the density ratio, R, below which the system is stable to all wavenumbers. Our results also provide a basis for exploring the stability of important but more complex situations such as cells with elastic walls and cells whose vertical structure varies in the horizontal direction (e.g. Pihler-Puzović et al. 2013).
Declaration of interests. The authors report no conflict of interest.