Abstract
We investigate two-phase flow in porous media and derive a two-scale model, which incorporates pore-scale phase distribution and surface tension into the effective behavior at the larger Darcy scale. The free-boundary problem at the pore scale is modeled using a diffuse interface approach in the form of a coupled Allen–Cahn Navier–Stokes system with an additional momentum flux due to surface tension forces. Using periodic homogenization and formal asymptotic expansions, a two-scale model with cell problems for phase evolution and velocity contributions is derived. We investigate the computed effective parameters and their relation to the saturation for different fluid distributions, in comparison to commonly used relative permeability saturation curves. The two-scale model yields non-monotone relations for relative permeability and saturation. The strong dependence on local fluid distribution and effects captured by the cell problems highlights the importance of incorporating pore-scale information into the macro-scale equations.
Similar content being viewed by others
![](https://media.springernature.com/w215h120/springer-static/image/art%3A10.1007%2Fs11242-017-0940-y/MediaObjects/11242_2017_940_Fig1_HTML.gif)
Avoid common mistakes on your manuscript.
1 Introduction
Flow through porous media, especially in multi-phase systems, is of interest in a variety of applications from oil recovery and CO2 sequestration to fuel cells and biological systems. Traditionally these are modeled using extended Darcy’s law for two phases, which lacks the mathematical derivation from pore-scale information available for the single-phase Darcy’s law. Single-phase Darcy’s law can be derived from a pore-scale model of (Navier–)Stokes equations through upscaling procedures. For two phases Darcy’s law has been extended by introducing empirically derived relative permeability saturation curves to capture fluid interactions. Commonly, the effective behavior depends only on the averaged saturation and the model fails to capture different pore-scale effects. Further empiric modifications such as play-type hysteresis have been added to account for missing behavior. Additionally, efforts have been made to derive macro-scale models with effective parameters incorporating more detailed effects through closure problems (Auriault and Sanchez-Palencia 1986; Auriault 1987; Auriault et al. 1989; Bourgeat 1997; Whitaker 1986, 1994; Lasseux et al. 1996). In this work we start from a two-phase-flow model at the pore scale and through appropriate assumptions and a periodic homogenization approach, we derive a two-scale model of macroscopic Darcy’s law-type equations with effective parameters computed from solutions of resulting pore-scale cell problems. The presented two-scale model is derived for creeping flow and moderate capillary number.
The flow of the two fluids is modeled on the pore scale using quasi-compressible Navier–Stokes equations with phase-dependent density and viscosity as well as an additional term capturing surface tension forces at the fluid-fluid interface. For the pore-scale model with resolved phase distribution we use a diffuse interface approach in the form of an Allen–Cahn phase-field model (Allen and Cahn 1979). Where a sharp-interface model separates the pore space into subdomains for each fluid phase, our approach captures the interface implicitly through a smooth phase field function. All unknowns are defined and modified equations hold on the entire domain of the pore space. This removes the need to track or capture the interface and decompose the domain in the numeric simulation. To resolve the transition zone between the two bulk phases a fine discretization is required near the interface, requiring high computational effort in the absence of adaptive local mesh refinement. Furthermore the Allen–Cahn model used in this work is not conservative, including a curvature-driven motion of the interface. While the conservative Cahn–Hilliard model requires solving a fourth-order partial differential equation, we consider the second-order Allen–Cahn equation, which offers a much simpler numerical implementation, and we investigate the two-scale model derived from it. While there are different approaches to ensuring conservation of the phase field (Bringedal 2020) or counteracting this curvature-driven motion entirely (Xu et al. 2012), we apply the scaled mobility approach presented in Abels (2021) to eliminate the curvature-driven motion only in the sharp-interface limit. A core advantage of the diffuse interface approach is the ease of upscaling the equations, as they are defined on a stationary domain encompassing both fluid phases. In contrast, upscaling a sharp-interface model requires special attention to the evolving domains (van Noorden 2009).
The model is presented for two phases but extends well to more evolving phases (Kelm et al. 2022; Redeker et al. 2016), only a non-neutral contact angle at internal triple points between phases requires more attention (Rohde and von Wolff 2021). We consider an isothermal model but mention that phase-field models for two-phase flow influenced by temperature variations can be found in the literature (Zhang et al. 2022).
To bridge the scale gap between pore scale and the averaged Darcy scale we employ the method of formal asymptotic homogenization (Hornung 1997). Representing the porous medium by a periodic arrangement of scaled reference cells, one introduces an additional spatial coordinate for this smaller scale. Here the macroscopic scale corresponds to the Darcy scale and the microscopic scale is the pore scale. These two scales are sufficiently separated, with representative length scales L and \(\ell\) respectively defining a length scale ratio \(\epsilon = \ell /L \ll 1\). Assuming asymptotic expansions of the unknowns in terms of \(\epsilon\), considering the limit \(\epsilon \rightarrow 0\) and grouping by orders of \(\epsilon\), one obtains equations that are defined on the macro-scale and form micro-scale cell problems. The former contains effective parameters which are computed from the cell problem unknowns, linking the two scales. Through the cell problems, these parameters and the effective behavior depend additionally on the distribution of fluids and are able to capture more detailed effects on the fluid velocities.
The homogenization leads to macroscopic equations similar to the extended Darcy’s law but with effective parameters computed from solutions of cell problems instead of being given by empiric relations. These effective parameters can be understood as total phase mobilities and for isotropic pore geometries a relative permeability can be computed. Through the cell problems these relative permeabilities in the two-scale model depend on the local phase distribution at the pore scale. This motivates a comparison of computed relative permeabilities to commonly used functional relations, enabling us to investigate under which conditions the models agree and which additional pore-scale effects are captured by the two-scale model. We investigate numerically the effective parameters computed for different geometries and fluid properties. Constructing fluid distributions of varying saturations, we solve the cell problems for the velocity contributions to obtain a relative permeability curve. The models are implemented using a staggered finite volume discretization in DuMu\(^{\textsf{x}}\) (Koch et al. 2021), with Dune-SPGrid (Nolte 2011) and Dune-Subgrid (Gräser and Sander 2009) used for the grid.
In Daly and Roose (2015), Metzger and Knabner (2021), and Sharmin et al. (2022) a Cahn-Hilliard model was used to derive a similar two-scale model. We instead investigate the applicability of the simpler Allen–Cahn model and the effects of micro-scale information on the effective flow parameters. The derivation of a two-scale model in Metzger and Knabner (2021) additionally assumes a separation of time scales and a different asymptotic expansion to arrive at an instationary problem for the phase distribution. We use the full expansion in the spatial separation \(\epsilon\) instead and afterward introduce an artificial evolution to obtain a local phase distribution. In Daly and Roose (2015) three time scales are used to separate interface equilibration, macroscopic flow and saturation changes. In Sharmin et al. (2022) a solute-dependent surface tension is considered and simulations of the coupled two-scale model are presented. We instead focus on a systematic investigation of the effective parameters computed from the cell problems. A similar comparison of effective parameters is included in Lasseux and Valdés-Parada (2022), where a sharp-interface Stokes model for two-phase flow is upscaled using volume averaging. However, Lasseux and Valdés-Parada (2022) does not account for a three-phase contact line or slip velocities at the solid, which are accounted for in the current work.
In this contribution we aim to derive a two-scale model for two-phase flow in porous media, which captures effects of pore-scale fluid distribution and surface tension on the effective behavior at the macro-scale. Our goal is to determine conditions under which the computed effective parameters show significantly different behavior to commonly used saturation-dependent curves and highlight the importance of resolving pore-scale behavior through a two-scale model for two-phase porous-medium flow.
The structure of this paper is as follows. We present our pore-scale model for two-phase flow using an Allen–Cahn formulation coupled to a modified Navier–Stokes system in section 2. In Sect. 3 we perform the upscaling and obtain a two-scale model using periodic homogenization. We investigate the dependence of computed effective parameters on pore-scale conditions using DuMu\(^{\textsf{x}}\) in Sect. 4. Section 5 summarizes the derived model and relates it to the extended Darcy’s law.
2 Pore-Scale Modeling
We begin by presenting the pore-scale model describing two-phase flow. The model is first presented in a sharp-interface formulation, before we introduce the diffuse-interface description for the phase-field model.
The general domain is a stationary void space inside a porous medium. We consider a domain \(\Omega = {\mathcal {P}}\cup {\mathcal {G}}\) decomposed into a domain \({\mathcal {P}}\) capturing the pore space and the solid matrix \({\mathcal {G}}\). Here the distribution of two fluid phases needs to be captured and evolved according to the flow of the fluids, including effects of surface tension at the fluid-fluid interface.
2.1 Sharp-Interface Model
The model is first formulated with a sharp interface separating the fluid phases and corresponding evolving subdomains \(\Omega _\alpha (t) \subset {\mathcal {P}}\), \(\alpha = 1,2\) of the stationary pore space \({\mathcal {P}}\) (Fig. 1). The interfaces between the fluid phases, denoted by \({\Gamma _f}(t) = \overline{\Omega _1(t)} \cap \overline{\Omega _2(t)}\), as well as the fluid-solid interfaces \(\Gamma _\alpha = \overline{\Omega _\alpha } \cap {\mathcal {G}}\) evolve accordingly. Within each subdomain the flow is modeled using incompressible Navier-Stokes equations, with constant viscosity \(\mu ^{(\alpha )}\) and density \(\rho ^{(\alpha )}\).
At the interfaces \(\Gamma _\alpha\) with the solid matrix we prescribe a generalized Navier-slip (Barber et al. 2004) boundary condition with slip length \(\lambda \ge 0\) for the velocity \(\textbf{v}^{(\alpha )}\)
where \(\textbf{n}\) is the unit normal pointing into the solid matrix. This relaxation of a no-slip boundary condition is a simplified view of slip at the wall, ignoring the smaller scale phenomena causing it, see discussion in Ren and E (2007) and references therein. Note that the slip length \(\lambda\) may vary depending on phase and position, or be localized to the contact line of the fluid-fluid interface with the solid. As these dependencies are not the focus of this paper, they will not be made explicit in the following equations.
At the fluid–fluid interface \({\Gamma _f}\) we prescribe continuity of velocities, with interface velocity \(V_{\Gamma _f}\) in the direction of the interface normal \(\textbf{n}_{\Gamma _f}\) pointing from fluid 1 into fluid 2,
The interface itself moves due to the local velocity of the fluids, and with surface tension \(\gamma\) and curvature \(H_{\Gamma _f}\), we have a jump condition
where \([\psi ] = \psi _{2} - \psi _{1}\) denotes the jump over the interface. At the three-phase contact point the fluid–fluid-interface meets the solid with a contact angle \(\theta\) (Fig. 1). In a sharp-interface formulation this could be incorporated using a boundary condition for a level set equation, when a level set is used to track the location of the fluid-fluid-interface.
2.2 Phase-Field Model
To model two-phase flow at the pore scale we use a diffuse-interface approach, capturing the distribution of phases with a phase-field function \(u\) defined on the total void space \(u: T \times {\mathcal {P}}\rightarrow [0, 1]\) with \(u=0\) and \(u=1\) corresponding to the two distinct phases \(\alpha =2\) and \(\alpha =1\) respectively. The phase-field variable evolves according to an advective Allen–Cahn equation, a second-order partial differential equation (PDE) with a nonlinear source term. The multi-phase system is then modeled as one fluid with varying properties, depending on \(u(t, \textbf{x})\) to account for phase distribution.
We use the compressible Navier–Stokes equations for non-constant viscosity, derived from conservation laws neglecting the second viscosity coefficient. A surface tension flux is added to the momentum equation, coupling it to the Allen–Cahn equation as presented for the stationary Stokes equation in Abels and Liu (2018). In Abels et al. (2012) the surface tension term is introduced to a Navier-Stokes equation with a phase field evolved according to the Cahn–Hilliard equation.
The resulting Navier–Stokes equations in conservative form are
with density-averaged velocity
The prefactor \((3/2)\xi\) of the surface tension flux in (6b) serves to cancel the integral arising in the sharp interface limit (92), evaluating to \(2/(3\xi )\) for the phase-field profile defined by (9). We focus on the case of each fluid being incompressible, treating the multi-phase system as a quasi-incompressible fluid with density and viscosity dependent on the present phase in a linear manner. Denoting mass and viscosity ratios \(R = \rho ^{(1)} / \rho ^{(2)}\) and \(M = \mu ^{(1)} / \mu ^{(2)}\), we write
This is combined with the advective Allen–Cahn equation, additionally coupled via the advecting velocity and the surface tension momentum flux. The phase-field equation is given as
with volume fraction \(u\) as the order parameter and the scaled diffusivity \(\sigma \xi\) suggested in Abels (2021) in order to obtain a more favorable sharp-interface limit. The parameter \(\sigma\) and diffuse–interface width \(\xi\) prescribe how strongly a certain profile is enforced for the transition zone between bulk phases and the width of this zone, respectively. The double-well potential, employing the commonly used expression \(P(u)\), encourages a separation of phases through stable minima at \(u= 0\) and \(u= 1\).
The (no-)slip boundary conditions on solid boundaries apply also here, with dependence of \(\lambda\) on the phase-field \(u\) if appropriate. Additionally for the phase-field a Neumann boundary condition encoding the contact angle \(\theta\) measured through fluid 1, corresponding to \(u= 1\) (Fig 2), is prescribed (Frank et al. 2018).
The expression on the right-hand side of (10b) relates to the norm of \(\nabla u\) through the profile of the diffuse interface, see (83). In a numeric context, a flux boundary condition for the momentum equation needs to be specified to incorporate a nonzero slip velocity boundary condition. The normal flux of the surface tension term in (6b) requires derivatives of \(u\) also in the tangential plane. By vector decomposition the magnitude of the tangential component is given accordingly as
but the direction depends on the distribution of phases and is to be determined in a numeric implementation.
While the contact angle generally depends on the local fluid velocity, and wall properties may introduce heterogeneity, we consider for simplicity only constant contact angles. Dynamic contact angles can be incorporated in the homogenization procedure by treating the varying contact angle as a variable, as done in a sharp-interface context in Lunowa et al. (2021). For a phase-field model, a dynamic contact angle is introduced by including a time derivative \(\partial _t u\) into the contact angle boundary condition as done for Cahn–Hilliard systems in (Jacqmin 2000; Xu et al. 2018).
Slip can be limited to the contact line by an interface indicator \(\delta _1(u) = 4 u(1-u)\), and phase-dependent slip lengths can be incorporated by interpolating at the diffuse interface. More complex models for slip velocities have been considered for the Cahn-Hilliard systems in (Jacqmin 2000; Xu et al. 2018), incorporating wall shear stresses and the uncompensated Young stress of generalized Navier boundary condition, respectively.
The effect of such extended boundary conditions on the derived two-scale model is limited, as the upscaling procedure simply selects leading order terms for the respective cell problems. The resulting expressions for effective parameters would accordingly include the leading order of the applied boundary condition, otherwise leaving their structure unchanged. Therefore, we consider for simplicity the special cases defined through (10) only.
Note that for vanishing slip length \(\lambda =0\) and for neutral contact angle \(\theta = \frac{\pi }{2}\), the boundary conditions reduce to homogeneous Dirichlet and Neumann conditions for velocity and phase field, respectively. The appendix 1 includes the sharp-interface limit of the coupled Navier–Stokes Allen–Cahn system presented in this section, yielding again the sharp-interface model presented in Sect. 2.1.
3 Upscaling Using Periodic Homogenization
Starting from the diffuse-interface model from Sect. 2.2, describing the phase distribution and flow at the pore scale, we derive effective equations capturing the behavior at the Darcy scale. At the same time we obtain a set of micro-scale cell problems, defined at each macroscopic point, the solutions of which allow the computation of effective tensors. These are then used as parameters to the macro-scale problem, which in turn supplies global pressure gradients and saturations used by the cell problems, arriving at a coupled two-scale problem. As will be shown, these effective parameters can be interpreted as phase mobilities.
To achieve this we assume a sufficient separation of scales, with characteristic length scales \(\ell\) for the pore scale and L for the Darcy scale at which we are interested in the effective behavior. Assuming a scale separation \(\epsilon = \ell /L \ll 1\), we first non-dimensionalize the model. We then follow the approach of periodic homogenization, modeling the porous medium as a periodic arrangement of scaled reference cells \(\epsilon Y\), \(Y = [0, 1]^\textrm{d}\) with dimension \(\textrm{d}\), where \(\textrm{d}\) is 2 or 3, (see Fig. 3). The domain of the porous medium is thus decomposed into \(\Omega ^\epsilon = \cup _{w \in W_\Omega } \,\epsilon (w + Y)\), with \(W_\Omega \in {\mathbb {Z}}^\textrm{d}\) a set of indices. With local pore space and solid matrix denoted as \(Y = {\mathcal {P}}\cup {\mathcal {G}}\) and the outer boundary of the reference cell given as \(\partial Y\) we denote the interior boundary between solid and fluid as
The global pore space and its boundary with the solid matrix in the non-dimensional case is then given as
While their fluid content can generally vary between the cells, we here assume that the porous matrix is constant both in time and space in order to facilitate the derivation of the two-scale model. As the reference cell is the unit cube, we can define the constant porosity \(\varphi = |{\mathcal {P}}|\). The conditions inside the pore spaces still vary, with fluid saturations and distributions changing in time and between cells.
We use the scale separation to introduce a micro-scale coordinate, rewrite spatial derivatives accordingly, assign scalings in terms of \(\epsilon\) for the dimensionless numbers and assume all unknowns to have an asymptotic expansion in \(\epsilon\). Inserting the expansions into the model equations and gathering terms of equal order in terms of \(\epsilon\) we obtain a new set of equations containing derivatives with respect to coordinates of only one of the spatial scales. This procedure yields macroscopic equations capturing the effective behavior and cell problems defined on the reference cell. Effective parameters are defined through cell problems and integrals of their solutions, linking the two sets of equations and capturing detailed effects of local phase distribution on effective behavior. In addition to pressure driven flow, a separate cell problem captures flow due to surface tension forces, reflected in an added velocity contribution on the effective scale.
3.1 Non-dimensionalization
In preparation of upscaling by periodic homogenization we non-dimensionalize the micro-scale model. The homogenization requires a separation of scales between representative length \(\ell\) at the pore scale and the length scale of interest L at the macro scale, quantified by the small number \(\epsilon = \ell /L \ll 1\). Defining reference values with dimensions
and letting
one can rewrite the phase-field model equations using non-dimensional variables and parameters
Note that to resolve pore-scale interfaces with a diffuse interface, the parameter \(\xi\) must scale with the pore-scale length \(\ell\).
In the following all variables and parameters are non-dimensional and the overline notation is dropped for convenience. Despite their nondimensionality, they are referred to as their associated dimensional quantities, e.g. velocity in the following. Using dimensionless numbers
one obtains (see appendix 2 for details)
with boundary condition
For the phase-field equation the non-dimensionalization yields (see appendix 2 for details)
with boundary condition
3.1.1 Phase-Constant Density and Viscosity
Using the above equations (8) for density and viscosity and the reference values (15), the non-dimensional viscosity and density in (18) are
3.2 Periodic Homogenization
Given the scale separation \(\epsilon\) we introduce the micro-scale coordinate \(\textbf{y}= \epsilon ^{-1} \textbf{x}\) and assume all unknowns can be written as an asymptotic expansion in \(\epsilon\), depending on both \(\textbf{x}\) and \(\textbf{y}\) with periodicity in the unit cell Y. For an unknown \(\psi \in \{p, \textbf{v}, u\}\) we introduce Y-periodic \(\psi _k(t, \textbf{x}, \textbf{y})\) such that
The spatial derivatives are rewritten as
For the upscaling we consider a flow regime that would correspond to Darcy’s law being valid for single-phase flow, with laminar flow driven by the pressure drop and capillary forces, and where advective and diffusive time scales are of the same order. We assume capillary forces to be moderate. For the phase distribution, the phase-field parameter \(\sigma\) should be comparable to the micro-scale advection, captured by \(S \in {\mathcal {O}}(\epsilon ^{0})\). As will be shown in Remark 1, with \(S\in {\mathcal {O}}(\epsilon ^{1})\) the advective term separates in the upscaling process and yields a restrictive pore-scale equation as well as introducing mixed-scale derivatives into the phase-field equation. Choosing non-dimensional numbers \(\textrm{Ca}\,\in {\mathcal {O}}(\epsilon ^{0})\), \(\textrm{Re}\,\in {\mathcal {O}}(\epsilon ^{0})\), \(\textrm{Eu}\in {\mathcal {O}}(\epsilon ^{-2})\) and \(\textrm{Fr}\in {\mathcal {O}}(\epsilon ^{0})\), the leading terms for \(\epsilon \rightarrow 0\) are given as follows (see appendix 3 for details).
For the phase-dependent fluid properties we observe
and for the double-well potential of the phase-field equation, due to its polynomial structure,
Denoting \({\overline{\textrm{Eu}}}:= \epsilon ^2 \textrm{Eu}\), we have for (18a), (18b) and (20) in \({\mathcal {P}}\)
and for boundary conditions (19) and (21) on \(\Gamma\)
3.2.1 Phase Field
From the leading order term of (27c) we therefore obtain a stationary equation involving only local derivatives.
together with boundary condition (27e)
Remark 1
If the phase-field equation is dominated by advection (\(S \in {\mathcal {O}}(\epsilon ^{1})\)) the leading order advective term of (27c) would be isolated at \({\mathcal {O}}(\epsilon ^{-1})\) as
Applied to the leading order term in (27a) this yields a divergence free velocity field and reduces to
resulting in a strong limitation on modeled problems. At the order \({\mathcal {O}}(\epsilon ^{0})\) the equation (27c) would instead contain the leading order of the diffusive and potential derivative terms together with the advective terms of the next order, yielding
with an undesireable mix of scales that leads to neither a pore-scale cell problem nor an effective equation for the Darcy scale. A balance of the two terms is expressed by \(S \in {\mathcal {O}}(1)\), which yields (28) instead of (30) as the leading order equation.
This local phase-field equation (28) is underconstrained, admitting among others the trivial solutions of \(u_0\equiv 0\) and \(u_0\equiv 1\) for divergence free velocity fields. The coupled problem must uniquely define a macro-scale saturation of the fluids. Since the local cell problem does not offer a way to compute the saturation of fluid 1 as the mean integral of \(u_0\), it instead requires it as a constraint as in Sharmin et al. (2022).
From the next order \({\mathcal {O}}(\epsilon ^{0})\) terms of the phase-field equation (27c) we obtain
We would like to use this instationary equation to update the saturation and in turn constrain the stationary phase-field equation obtained from the leading order term of the asymptotic expansion. After integrating over the constant local periodicity cell \({\mathcal {P}}\) and using the periodicity with respect to \(\textbf{y}\), (33) reduces to
While the first two terms yield a macroscopic equation in saturation and phase-specific velocity, the last term includes the additional unknown \(u_{1}\). Assuming a homogeneous porous medium, with \({\mathcal {P}}\) not depending on \(\textbf{x}\), one can use a solvability constraint to show that this term is zero and obtain the desired saturation equation.
Integrating the leading order terms (28) and applying the divergence theorem and periodicity conditions, one is left with only the potential derivative.
One now views the third term in (34) as a Fredholm operator of index zero \({\mathcal {L}}(u_0)\) applied to \(u_1\). Applying it instead to \(\nabla _\textbf{x}u_0\), using the chain rule and the assumption of \({\mathcal {P}}\) not depending on \(\textbf{x}\), we obtain
Together with the previously derived information about \(P'\) from (35), one sees that \(\nabla _\textbf{x}u_0\) is an element of the kernel of \({\mathcal {L}}(u_0)\). Rewriting (34) as \(-{\mathcal {L}}(u_0)u_1 = A(u_0, \textbf{v}_0)\) with
this yields the solvability constraint
To avoid trivial behavior (\(\nabla _\textbf{x}u_0 \equiv 0\), \(\nabla _\textbf{x}u_0\) independent of \(\textbf{x}\)), the integral over the local pore-space \({\mathcal {P}}\) must disappear. Using again the assumption of a stationary and homogeneous pore space \({\mathcal {P}}\) with constant porosity \(\varphi\), this yields the saturation equation
Introducing averaged quantities for the saturation of fluid 1, \(S^{(1)} = \varphi ^{-1} \int _{\mathcal {P}}u_0 \,\textrm{d}\textbf{y}\), as well as velocities
we obtain
The second-order term of the mass conservation equation (27a)
yields, using (26b) and after integration over \({\mathcal {P}}\),
a second conservation equation.
Inserting (41) into (43) yields \(\nabla _\textbf{x}\cdot {\bar{\textbf{v}}} = 0\) and with \(S^{(2)} = 1 - S^{(1)}\) a saturation equation for the second phase, corresponding to \(u_0 = 0\),
These macroscopic equations (41), (44), through the saturation, yield an integral constraint for the local phase-field. Together with the stationary equation (28) and boundary condition (29) we obtain the cell problem
While this ensures mass-conservation it does not fully prescribe a distribution of the phases. The stationary phase-field equation (45) still defines the profile of the diffuse transition zone but the position is not clear. This phase distribution however is central to the equations for fluid flow. To obtain a meaningful solution to this stationary problem one could introduce an artificial time evolution in \(\tau\), evolving the phase-field function toward the target saturation \(S^{(1)}\). To this end we introduce the difference between the target and current saturation,
as an additional source term. The function
attains its maximum at \(u_0 = 0.5\) and acts as an indicator for the diffuse interface. Due to the factor \(\xi ^{-1}\), the width of the diffuse interface is compensated for and \(\int _{\mathcal {P}}\delta _\xi (u_0) \,\textrm{d}\textbf{y}\) approximates the area of the corresponding sharp interface. Scaling the new source term (46) with \(\delta _\xi (u_0)\) allows to model it like a heterogeneous reaction, introducing an additional interface velocity equal to the difference of saturations. The Allen–Cahn equation introduces curvature-driven motion of the interface and is not conservative. This motion prevents a stationary state at the target saturation and shifts the stationary state to an incorrect saturation. To obtain a conservative Allen–Cahn equation we additionally introduce the source term (Bringedal 2020)
That is, instead of (45) one would solve
3.2.2 Fluid Flow
The derivation of the local cell problems for the fluid velocity follows the common approach of separating derivatives of the two scales and using the linear structures of the equations to obtain different problems for the effect of macroscopic pressure gradients, and additionally one to capture the contribution of the surface tension at the interface.
From the leading order term of the momentum equation (27b) we obtain \(\nabla _\textbf{y}p_0 = 0\) and from the next order term we get
or equivalently, using \(\mu (u_0(t, \textbf{x}, \textbf{y})) = 1 + u_0(t, \textbf{x}, \textbf{y}) (M-1)\),
Due to the linear structure in the unknowns \(p_1\) and \(\textbf{v}_0\) as well as the contributions of \(p_0(t, \textbf{x})\) and \(u_{0}(t, \textbf{x}, \textbf{y})\), we can find Y-periodic functions \(\textbf{w}_j(t, \textbf{x}, \textbf{y})\), \(\Pi _j(t, \textbf{x}, \textbf{y})\), \(j=0,\ldots , \textrm{d}\) such that
with a function \({\tilde{p}}_1(t, \textbf{x})\) independent of \(\textbf{y}\) and thus not relevant for (51). The unknowns \(\textbf{w}_j\), \(\textbf{w}_0\) will be referred to as velocity contributions and \(\Pi _j\), \(\Pi _0\) as local pressure contributions. They can be obtained from the following auxiliary cell problems, where we denote the symmetrized gradient \(2\varepsilon _\textbf{y}(\textbf{w}) = \nabla _\textbf{y}\textbf{w}+ (\nabla _\textbf{y}\textbf{w})^T\),
for \(j \in \{ 1, \ldots , \textrm{d}\}\) and
From these solutions we define tensors capturing the effective behavior of the fluid, denoting the phase indicator of phase k as
and the components of \(\textbf{w}_j\) as \(\textbf{w}_{j,i}\).
Multiplying (52) with \(u^{(k)}\) and integrating over \({\mathcal {P}}\), we obtain the macroscopic velocity equations containing the effective parameters.
3.3 Two-Scale Model
Given the a-priori choices for non-dimensional numbers, \(\textrm{Ca}\,= {\mathcal {O}}(1)\), \(\textrm{Re}\,= {\mathcal {O}}(1)\), \(\textrm{Eu}= {\mathcal {O}}(\epsilon ^{-2})\) and \(\textrm{Fr}= {\mathcal {O}}(1)\), we arrive at a micro–macro model, coupling a Darcy-scale flow problem reminiscent of the extended two-phase Darcy’s law to \(d+2\) pore-scale cell-problems on \(Y = [0,1]^d\) at every point of the domain. We solve for five macroscopic unknowns \(p_0(t,\textbf{x})\), \(S^{(1)}(t,\textbf{x})\), \(S^{(2)}(t,\textbf{x})\), \({{\bar{\textbf{v}}}}^{(1)}(t, \textbf{x})\), \({{\bar{\textbf{v}}}}^{(2)}(t, \textbf{x})\) with \(1 = S^{(1)} + S^{(2)}\), and for every set of cell problems the local unknowns \(u_0\) and \(\textbf{w}_{j}\), \(j = 0, \ldots \textrm{d}\).
The macro-scale model reminds of Darcy’s law with one shared pressure unknown as well as additional effective parameters \({\mathcal {M}}^{(k)}\) which, just as \({\mathcal {K}}^{(k)}\), are computed from cell-problem variables. For convenience we drop the subscript \(\textbf{x}\) on the macroscopic gradient.
We see that the effective parameters \({\mathcal {K}}^{(k)}\) represent the phase-specific effective mobilities, containing information about both the absolute permeability of the porous medium and the interactions between the two fluids. Both contributions are in general anisotropic and cannot easily be separated. For isotropic geometries the intrinsic permeability \(\kappa _\textrm{abs}\) is a scalar and the effective mobility can be written as \(\kappa _\textrm{abs} {\mathcal {K}}^{(k)}_\textrm{rel}(u_0) /\mu _k\) with the relative permeability \({\mathcal {K}}^{(k)}_\textrm{rel} \in {\mathbb {R}}^{\textrm{d}\times \textrm{d}}\) depending on the local phase distribution \(u_0\) through the cell problems (61). The second effective parameter \({\mathcal {M}}^{(k)}\) captures effective flow due to surface tension forces between the two fluids. As the pore-scale phase-field model defines a shared pressure, we obtain a mean macroscopic pressure. Coupling effects such as viscous drag captured by additional effective parameters in Whitaker (1986), are thus not explicit on the macro scale. These coupling effects are captured in the pore-scale cell problems and included in the effective parameters. However, in (59b), the contributions to the Darcy-scale flow are instead grouped by whether they are caused by a macroscopic pressure gradient or by surface tension.
In return, the cell problems depend on the local value of the macroscopic saturation through a constraint on the phase-field function.
with \(\textbf{v}_0\) depending on the global pressure gradient and local velocity contributions \(\textbf{w}_j\) as defined in (52). These in turn depend on the phase field and are computed through the cell problems defined in (54) and (55)
for \(j \in \{ 1, \ldots , d \}\) and
4 Numeric Investigation
In the following we present an investigation of the cell problems for velocity contributions \(\textbf{w}_j\) and the behavior of the computed effective parameters. We consider two exemplary geometries, denoted "cross" and "obstacle", and investigate the relative permeability saturation relation for different fluid properties and fluid distributions.
4.1 Implementation
For the numerical investigation all model equations are implemented in DuMu\(^{\textsf{x}}\) (Koch et al. 2021), using Newton’s method as a nonlinear solver and backward Euler for temporal discretization in transient problems. The equations are discretized in space with the finite volume method on a regular rectangular grid, using Dune-SPGrid (Nolte 2011) and an adapted Dune-Subgrid (Gräser and Sander 2009) to model the considered geometries with periodic boundaries. For the phase-field and pressure unknowns a cell-centered approach is used, with control volumes equal to grid cells and degrees of freedom placed at their centers. Fluxes over control-volume faces are approximated using the two adjacent values. For the velocities a staggered discretization is used, with separate degrees of freedom for each velocity component placed at the edges between grid cells and control volumes centered around them (Harlow and Welch 1965).
While the cell problem for the phase field uses only the cell-centered discretization, the cell problems for velocity contributions require a coupled system of cell-centered pressures and staggered velocities. In DuMu\(^{\textsf{x}}\) this is achieved using a multidomain formulation with a coupling manager handling the volume coupling of the different discretizations of a shared domain (Koch et al. 2021).
For the phase-field equation a boundary condition prescribing the flux implements the contact angle condition. In the velocity-contribution problems a no-flux condition for the mass conservation and homogeneous Dirichlet conditions for the normal velocity are used at the fluid-solid interfaces. To implement Navier slip boundary conditions, a solution-dependent flux can be defined. In the case of the cell problem capturing surface tension effects the additional flux can be given based on the prescribed contact angle. On the outer boundary of the reference cell Y periodicity conditions are prescribed.
4.2 Numerical Solution of Cell Problems
We consider the cell problems (61) and (62) for the velocity contributions \(\textbf{w}_j\) and investigate the behavior of the resulting effective parameters. The derived two-scale model is similar to two-phase Darcy’s law, with effective parameters computed from cell problems rather than prescribed relative permeability saturation curves. We investigate how the computed parameters compare to commonly used curves and under which conditions core assumptions such as a monotone relation is violated. Anisotropic permeabilities are not the focus of this investigation and we choose simple geometries such that the intrinsic permeability of the pore geometry can be separated from fluid-fluid interactions. This allows us to isolate the influence of the fluid distribution on the relative permeability in a simple manner.
For two different geometries we vary the local phase field to determine the effects of saturation and phase distribution and the impact of the dimensionless ratios for viscosity and density as well as the surface tension. Both the slip length and the contact angle influence the results, see, e.g. the investigation of dynamic contact angles in Lunowa et al. (2021), but will not be considered here. Instead these effects will be controlled by a no-slip condition for the velocity contributions and a homogeneous Neumann condition for the phase field, encoding a neutral contact angle. Since our goal is to address behavior of the effective parameters, we do not couple the flow to the cell problem for the phase distribution (60). Instead we manually prescribe a phase-field function corresponding to a certain saturation and run a few timesteps of the instationary version of the phase-field equation (60) without advection in order to enforce the neutral contact angle. This fluid distribution is then used to solve (61) and (62).
The two domains under consideration vary in geometry and porosity, see Fig. 4. The first setup, "obstacle", contains a square of side length 0.45 placed in the center of the domain, leaving a void fraction of \(79.75\%\). The second investigated geometry, denoted "cross", is a cross of channels with diameter 0.3, resulting in a porosity of \(51\%\).
We consider four core scenarios of which the first three investigate the effective mobility \({\mathcal {K}}^{(k)}\) for different ratios of viscosity \(M\) and density \(R\). In the last setup the surface tension tensor \({\mathcal {M}}^{(k)}\) is analyzed, with identical fluid properties for both fluids. The dimensionless numbers in the cell problems are chosen as 1.
For all four cases we fix the center of a circle with varying radius r and assign cells inside this circle to phase 1, with the rest of the void space being filled with fluid 2. This initial data already contains a diffuse interface according to the following radial function.
This initial data is evolved under the transient version of the Allen–Cahn equation (60) without advection to enforce a neutral contact angle (see Fig. 5). The resulting phase field is fed into the different cell problems for flow velocity contributions (61), (62), which are then solved.
Preprocessing to enforce a neutral contact angle. Initial condition from (63) (left), and the resulting phase field with desired contact angle (right)
In the "cross" cell geometry we observe recirculation patterns, as will be seen later in Sect. 4.2.3, Fig. 11. Given a horizontal pressure gradient forcing flow from left to right, the recirculation near the top and bottom of the domain leads to flow from right to left at these edges of the periodic cell. Depending on the fluid distribution one of the phases may contain primarily these flows in the opposite direction to the main flow, leading to negative integrated velocity contributions. As the effective mobility should capture net flow through the domain, we aim to exclude these recirculations based on the computed flow field and avoid negative mobilities. Any closed streamlines in the periodically repeated domain do not lead to Darcy-scale transport and are thus removed from the domain of integration. These local flows continue to affect the local phase distribution and thus indirectly the effective parameters. To achieve this, the computed velocity contribution is loaded into ParaView (Ahrens et al. 2005), computing streamlines and marking cells with relevant streamlines. Only these cells contribute to the integrated quantity, excluding closed streamlines within the cell. This process is not performed for the flow problem driven by surface tension (62).
After postprocessing we compute the weighted integrals over marked cells to obtain the effective parameters. The saturation is determined by an integral over the entire domain.
For the effective mobility \({\mathcal {K}}^{(k)}\), the computed entries are divided by the absolute permeability and multiplied with the viscosity, yielding a relative permeability. The results are plotted over the saturation of phase 1.
4.2.1 Equal Fluid Properties
In the first case we consider two fluids with equal viscosity and density (\(M= R= 1\)). The cell problems for velocity contributions driven by the global pressure gradient treat the two-phase system as single-phase flow. The effective mobilities are obtained through integration weighted by the phase-indicator \(u^{(k)}\) and the resulting relative permeabilities always sum to 1, see Fig. 6.
Due to the symmetries in the fluid distribution the relative permeability is approximately a diagonal matrix and we show only the dominant diagonal entries. For the isotropic setup in the "obstacle" geometry the entries are equal and the relative permeability reduces to a scalar value.
Due to the choice of fluid distribution for every radius r the domain corresponding to fluid 1 contains that for lower radii \(r' < r\) and thus lower saturation. Equivalently, for phase-field functions \(u_1 < u_2\) the corresponding saturations fulfill \(S_1 < S_2\). Under this condition the relative permeability is monotone with respect to the saturation. For differing fluid distributions this monotonicity is not guaranteed and a higher saturation concentrated at areas of lower velocity contributions can result in a lower permeability. Figure 7 shows changing relative permeabilities for fixed saturation and varying fluid distributions obtained by changing the center of the initial circular subdomain for fluid 1. This information about local phase distribution and its impact on macroscopic flow can only be captured by solving the cell problems.
4.2.2 Influence of Viscosity Differences
Next we investigate the effect of the viscosity ratio by considering \(M= 2\), the investigated cell problems now correspond to an incompressible fluid with varying viscosity.
In stark contrast to typically used relative permeability curves we observe non-monotone behavior for the case "obstacle" with relative permeabilities of the more viscous fluid reaching values above 1 for saturations above 0.8, up to \({\mathcal {K}}^{(1)}_{xx} = 1.039\) at a saturation of 0.95 (see Fig. 8). Due to the chosen fluid distribution the less viscous fluid 2 is located on the surface of the solid matrix at low saturations (high saturation for phase 1). This reduces the resistance exerted on the first fluid and results in higher velocity contributions, especially for higher viscosity ratios \(M\). Such lubricating effects have been observed experimentally in different settings (Berg et al. 2008).
4.2.3 Influence of Density Differences
In the case of non-trivial density ratio \(R\), the cell problem (61) corresponds to Stokes equation for a quasi-compressible fluid. For ratio \(R= 2\) (Fig. 9) no non-monotone behavior is observed but the curves are notably different to the one obtained for the case of equal fluid properties. For density ratio \(R= 10\) (Fig. 10) non-monotonicity is observed for a horizontal pressure gradient in the "cross" setup, with the velocity contribution in the lighter fluid increasing as the main flow path is filled with the more dense fluid. The fluid distribution and computed flow field for highest permeability at a saturation of 0.45 are shown in Fig. 11. In Fig. 12 the results for the "obstacle" geometry are compared to those for equal fluid properties, which highlights the fact that the sum of the relative permeabilities is less than one.
4.2.4 Surface Tension Tensor
For the isotropic geometry and fluid distribution considered above the velocity contributions driven by surface tension cancel out in the integral and the computed effective parameter is equal to 0 (Fig. 13, left). For asymmetric fluid distributions (Fig. 13, right) a nonzero contribution is obtained, but no visible trends are observed as the saturation changes. The redistribution of fluids driven by surface tension forces leads to a net flow for the two phases, which corresponds to \({\mathcal {M}}^{(k)}\) being nonzero. The size and direction of this net flow and hence the size and sign of the effective parameter \({\mathcal {M}}^{(k)}\) depends highly on the fluid distribution. Such effects can only be accounted for by solving the cell problem (62).
4.3 Discussion
For equal fluid properties and fixed fluid distributions we obtain monotone relative permeability saturation curves comparable to commonly used relations such as Brooks-Corey (Brooks and Corey 1966) or van Genuchten (van Genuchten 1980). However, even in this simple case the relative permeability depends not only on saturation but also on the distribution of the fluids. As observed in Sect. 4.2, even in this simple case no relation can be given without accounting for the local distribution of the fluids.
For differing viscosities the model is able to reproduce non-monotone relative permeabilities with values above 1 as discussed in Berg et al. (2008). When the less viscous fluid coats the solid surface, it can reduce the resistance exerted on the more viscous fluid, resulting in higher velocity contributions. Due to the different fluid distribution such a coating is not observed to the same extent for the "cross" setup, leading to monotone relations for the relative permeability. These effects depend strongly on the local phase distribution and cannot be captured solely by the saturation without additional assumptions.
For moderate density differences the combined permeability is reduced and for higher density ratios non-monotone behavior can be observed. We remark that for very high differences in fluid properties, this should be considered in the derivation of the cell problems and the two-scale problem, which would lead to a different appearance of the effective equations. To obtain equations similar to the often used two-phase Darcy’s law, we use the assumptions presented in Sect. 3.2.
The derived two-scale model contains an additional effective parameter which accounts for the influence of surface tension between the fluid phases. This is not a common part of the extended Darcy’s law and there is no counterpart to compare it to. A similar cell problem and resulting effective parameter has been investigated by Sharmin et al. (2022), incorporating the influence of solute-dependent surface tension. Here only constant surface tension is considered. Lasseux and Valdés-Parada (2022) incorporate the effects of surface tension into macro-scale equations in the context of volume averaging and a sharp-interface description. We find that for symmetric distributions the effective parameter capturing surface tension effects disappears as expected. For anisotropic phase distributions the flow driven by surface tension does not cancel out and the associated cell problem is able to capture significant contributions to effective flow behavior. The size and direction of flow resulting from surface tension and thus the magnitude and sign of the effective parameter depend strongly on the local distribution of fluids.
The numeric investigation of the effective parameters highlights how different fluid distributions with equal saturation can result in very different net flow and effective behavior. Increased relative permeability due to viscosity differences and significant surface tension effects further emphasize the importance of resolving the local fluid morphology.
5 Conclusion
We derived a two-scale model for two-phase flow in porous media using homogenization and investigated the dependence of effective parameters on the fluid distribution in the pore-scale cell problems. This model is conditioned on the assumptions of a homogeneous porous medium and dimensionless numbers \(\textrm{Ca}\,= {\mathcal {O}}(1)\), \(\textrm{Re}\,= {\mathcal {O}}(1)\), \(\textrm{Eu}= {\mathcal {O}}(\epsilon ^{-2})\) and \(\textrm{Fr}= {\mathcal {O}}(1)\). The model was derived for constant contact angle and simplified slip boundary conditions, but extensions to more complex models are possible without changing the structure of the two-scale model.
The model consists of macro-scale equations similar to the extended Darcy’s law with effective parameters computed from solutions to cell problems defined at every macroscopic point. One of the effective parameters can be understood as an effective mobility, while the second effective parameter represents effects of interfacial tension on the effective flow. On the pore-scale the phase distribution is captured by a phase field, using an advective Allen–Cahn formulation. For the velocity field we use a stationary Stokes equation with phase-dependent fluid properties and an additional source term incorporating surface tension forces. Due to the diffuse interface description and weak capillary forces, the model does not contain individual phase pressures. Other coupling effects such as viscous drag are captured implicitly in the effective parameters rather than explicitly in the Darcy-scale equations.
The two-scale structure allows to investigate numerically the effects of pore-scale information on effective behavior. We construct local fluid distributions for the pore scale and solve the cell problems associated with pressure driven velocity contributions.
The similarity to two-phase Darcy’s law motivates a comparison of the dependence of relative permeabilities on saturation. By selecting isotropic pore geometries, relative permeability tensors can be extracted from the effective parameters \({\mathcal {K}}^{(k)}\) in our model and for isotropic fluid distributions these simplify to diagonal matrices or scalar values. As one of the core qualities of relative permeability-saturation curves we investigate the conditions under which a monotone relationship is obtained. If a common fluid morphology is maintained for different saturations, then for equal fluid properties monotone curves, similar to commonly used functions like van Genuchten and Brooks–Corey, are obtained. The calculated curves however depend strongly on the fluid distribution and change with the pore geometry, highlighting the need to account for pore-scale information. For different viscosities the model can produce non-monotone relationships and relative permeabilities greater than 1. This can be related to a lubricating effect of the less viscous fluid coating the surface of the solid matrix, an effect observed experimentally. For moderate density ratios the effective total permeability decreases and no non-monotone behavior was observed.
We also performed numeric simulations for the cell problem corresponding to the effective parameter \({\mathcal {M}}^{(k)}\), capturing effects of surface tension forces. For isotropic geometry and fluid morphologies these forces result in no net flow and a vanishing effective parameter. For asymmetric fluid distributions we obtain significant net flows captured by \({\mathcal {M}}^{(k)}\).
Our two-scale model for two-phase flow captures pore-scale fluid-fluid interactions related to surface tension forces as well as differences in viscosity and density. Through numeric investigation of the effective parameters we highlight the importance of local fluid distribution for accurately capturing effective flow behavior.
A further validation of the derived model using pore-resolved simulations of a larger domain or of the coupled two-scale model is beyond the scope of this current paper. Comparisons of the coupled two-scale model with standard Darcy-scale models and averaged pore-scale simulations are in development.
Data availability
The code used in this paper and generated data will be made available at https://darus.uni-stuttgart.de on publication.
References
Abels, H.: (Non-)convergence of solutions of the convective Allen–Cahn equation. Partial Differ. Equ. Appl. 3(1), 1–11 (2021). https://doi.org/10.1007/s42985-021-00140-5
Abels, H., Liu, Y.: Sharp interface limit for a Stokes/Allen–Cahn System. Arch. Ration. Mech. Anal. 229(1), 417–502 (2018). https://doi.org/10.1007/s00205-018-1220-x
Abels, H., Garcke, H., Grün, G.: Thermodynamically consistent, frame indifferent diffuse interface models for incompressible two-phase flows with different densities. Math. Models Methods Appl. Sci. 22(03), 1150013 (2012). https://doi.org/10.1142/S0218202511500138
Ahrens, J., Geveci, B., Law, C.: ParaView: an end-user tool for large data visualization. In: Hansen, C.D., Johnson, C.R. (eds.) Visualization Handbook, pp. 717–731. Elsevier, Burlington (2005)
Allen, S.M., Cahn, J.W.: A microscopic theory for antiphase boundary motion and its application to antiphase domain coarsening. Acta Metall. 27(6), 1085–1095 (1979). https://doi.org/10.1016/0001-6160(79)90196-2
Auriault, J.L.: Nonsaturated deformable porous media: Quasistatics. Transp. Porous Media 2, 45–64 (1987). https://doi.org/10.1007/BF00208536
Auriault, J.L., Sanchez-Palencia, E.: Remarques sur la loi de darcy pour les écoulements biphasiques en milieu poreux. (remarks on darcy law for two-phase flows in porous media). J. Mécanique Théorique et Appliquée 1986, 141–153 (1986)
Auriault, J.L., Lebaigue, O., Bonnet, G.: Dynamics of two immiscible fluids flowing through deformable porous media. Transp. Porous Media 4, 105–128 (1989). https://doi.org/10.1007/BF00134993
Barber, R., Sun, Y., Gu, X., et al.: Isothermal slip flow over curved surfaces. Vacuum 76(1), 73–81 (2004). https://doi.org/10.1016/j.vacuum.2004.05.012
Berg, S., Cense, A.W., Hofman, J.P., et al.: Two-phase flow in porous media with slip boundary condition. Transp. Porous Media 74(3), 275–292 (2008). https://doi.org/10.1007/s11242-007-9194-4
Bourgeat, A.: Two-Phase Flow, pp. 95–127. Springer-Verlag, Berlin (1997)
Bringedal, C.: A conservative phase-field model for reactive transport. In: Klöfkorn, R., Keilegavlen, E., Radu, F.A., et al. (eds.) Finite Volumes for Complex Applications IX - Methods, Theoretical Aspects, Examples, pp. 537–545. Springer, Cham (2020)
Brooks, R.H., Corey, A.T.: Properties of porous media affecting fluid flow. J. Irrig. Drain. Div. 92(2), 61–88 (1966). https://doi.org/10.1061/JRCEA4.0000425
Caginalp, G., Fife, P.: Dynamics of layered interfaces arising from phase boundaries. SIAM J. Appl. Math. 48(3), 506–518 (1988). https://doi.org/10.1137/0148029
Daly, K.R., Roose, T.: Homogenization of two fluid flow in porous media. Proc. R. Soc. A 471, 20140564 (2015). https://doi.org/10.1098/rspa.2014.0564
Frank, F., Liu, C., Scanziani, A., et al.: An energy-based equilibrium contact angle boundary condition on jagged surfaces for phase-field methods. J. Colloid Interface Sci. 523, 282–291 (2018). https://doi.org/10.1016/j.jcis.2018.02.075
van Genuchten, M.T.: A closed-form equation for predicting the hydraulic conductivity of unsaturated soils. Soil Sci. Soc. Am. J. 44(5), 892–898 (1980). https://doi.org/10.2136/sssaj1980.03615995004400050002x
Gräser, C., Sander, O.: The dune-subgrid module and some applications. Computing 86(4), 269–290 (2009). https://doi.org/10.1007/s00607-009-0067-2
Harlow, F.H., Welch, J.E.: Numerical calculation of time-dependent viscous incompressible flow of fluid with free surface. Phys. Fluids 8(12), 2182–2189 (1965)
Hornung, U. (ed.): Homogenization and Porous Media. Springer-Verlag, New York (1997)
Jacqmin, D.: Contact-line dynamics of a diffuse fluid interface. J. Fluid Mech. 402, 57–88 (2000). https://doi.org/10.1017/S0022112099006874
Kelm, M., Gärttner, S., Bringedal, C., et al.: Comparison study of phase-field and level-set method for three-phase systems including two minerals. Comput. Geosci. 26(3), 545–570 (2022). https://doi.org/10.1007/s10596-022-10142-w
Koch, T., Gläser, D., Weishaupt, K., et al.: DuMux 3—an open-source simulator for solving flow and transport problems in porous media with a focus on model coupling. Computers & Mathematics with Applications 81, 423–443 (2021). https://doi.org/10.1016/j.camwa.2020.02.012
Lasseux, D., Valdés-Parada, F.J.: A macroscopic model for immiscible two-phase flow in porous media. J. Fluid Mech. 944, A43 (2022). https://doi.org/10.1017/jfm.2022.487
Lasseux, D., Quintard, M., Whitaker, S.: Determination of permeability tensors for two-phase flow in homogeneous porous media: theory. Transp. Porous Media 24, 107–137 (1996). https://doi.org/10.1007/BF00139841
Lunowa, S.B., Bringedal, C., Pop, I.S.: On an averaged model for immiscible two-phase flow with surface tension and dynamic contact angle in a thin strip. Studi. Appl. Math. 147(1), 84–126 (2021). https://doi.org/10.1111/sapm.12376
Metzger, S., Knabner, P.: Homogenization of two-phase flow in porous media from pore to Darcy scale: a phase-field approach. Multiscale Model. Simul. 19(1), 320–343 (2021). https://doi.org/10.1137/19M1287705
Nolte, M.: Efficient numerical approximation of the effective Hamiltonian. PhD thesis, Albert-Ludwigs-Universität Freiburg (2011)
van Noorden, T.L.: Crystal precipitation and dissolution in a porous medium: effective equations and numerical experiments. Multiscale Model. Simul. 7(3), 1220–1236 (2009). https://doi.org/10.1137/080722096
Redeker, M., Rohde, C., Sorin Pop, I.: Upscaling of a tri-phase phase-field model for precipitation in porous media. IMA J. Appl. Math. 81(5), 898–939 (2016). https://doi.org/10.1093/imamat/hxw023
Ren, W.: Boundary conditions for the moving contact line problem. Phys. Fluids 19(2), 022101 (2007). https://doi.org/10.1063/1.2646754
Rohde, C., von Wolff, L.: A ternary Cahn-Hilliard-Navier-Stokes model for two-phase flow with precipitation and dissolution. Math. Models Methods Appl. Sci. 31(01), 1–35 (2021). https://doi.org/10.1142/S0218202521500019
Sharmin, S., Bastidas, M., Bringedal, C., et al.: Upscaling a Navier-Stokes-Cahn-Hilliard model for two-phase porous-media flow with solute-dependent surface tension effects. Appl. Anal. 101, 1–23 (2022). https://doi.org/10.1080/00036811.2022.2052858
Whitaker, S.: Flow in porous media II: the governing equations for miscible, two-phase flow. Transp. Porous Media 1(2), 105–125 (1986). https://doi.org/10.1007/BF00714688
Whitaker, S.: The closure problem for two-phase flow in homogeneous porous media. Chem. Eng. Sci. 49, 765–780 (1994). https://doi.org/10.1016/0009-2509(94)85021-6
Xu, X., Di, Y., Yu, H.: Sharp-interface limits of a phase-field model with a generalized Navier slip boundary condition for moving contact lines. J. Fluid Mech. 849, 805–833 (2018). https://doi.org/10.1017/jfm.2018.428
Xu, Z., Huang, H., Li, X., et al.: Phase field and level set methods for modeling solute precipitation and/or dissolution. Comput. Phys. Commun. 183(1), 15–19 (2012). https://doi.org/10.1016/j.cpc.2011.08.005
Zhang, T., Li, C., Sun, S.: Effect of temperature on oil-water separations using membranes in horizontal separators. Membranes (2022). https://doi.org/10.3390/membranes12020232
Acknowledgements
Funded by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy - EXC 2075 - 390740016. We acknowledge the support by the Stuttgart Center for Simulation Science (SimTech). We thank the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) for supporting this work by funding SFB 1313, Project Number 327154368. The authors would like to thank Kundan Kumar (University of Bergen) for useful discussions on monotonicity of relative permeability saturation curves.
Funding
Open Access funding enabled and organized by Projekt DEAL. Open Access funding enabled and organized by Project DEAL.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors have no relevant financial or non-financial interests to disclose.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix 1: Sharp-Interface Limit
In the limit \(\xi \rightarrow 0\) the phase-field model presented in Sect. 2.2 recovers the sharp-interface model from Sect. 2.1. Following the approach of matched asymptotic expansions (Caginalp and Fife 1988) we consider the behavior at the transition zone and in the bulk phases separately, connecting them with matching conditions. Let \(L\) be a reference length and \({{\bar{\xi }}}= \xi /L\) the non-dimensional interface width.
We assume asymptotic expansions in \({{\bar{\xi }}}\) that capture the behavior away from the interface (outer expansions) for unknowns \(\psi \in \{ u, p, \textbf{v}\}\)
For inner expansions at the diffuse interface we consider local curvilinear coordinates. Let \(\Gamma _{{\bar{\xi }}}(t) = \{ \textbf{y}_{{\bar{\xi }}}\in {\mathcal {P}}\mid u(t, \textbf{y}_{{\bar{\xi }}}) = 1/2 \}\) be the reconstructed interface. With a parametrization \(\textbf{s}\) along \(\Gamma _{{\bar{\xi }}}(t)\) and normal \(\textbf{n}_{{\bar{\xi }}}(t, \textbf{s})\) pointing into fluid 2, we define a signed distance r for points near the interface, such that
Note than \(\partial _t r = -v_n\), with \(v_n\) the velocity of the interface in direction of \(\textbf{n}_{{\bar{\xi }}}\) corresponding to the sharp-interface velocity \(V_{\Gamma _f}\). Furthermore it can be shown (see Caginalp and Fife (1988)) that for mean and Gaussian interface curvatures \(\kappa\) and \(\Pi\)
The outer expansions define the interface \(\Gamma ^\textrm{out}_0(t) = \{ \textbf{x}\in {\mathcal {P}}\mid u^\textrm{out}_0(t, \textbf{x}) = 1/2\}\) with normal vector \(\textbf{n}_0\), interfacial velocity \(v_{n,0}\) and mean curvature \(\kappa _0\). The point \(\textbf{y}_{{\bar{\xi }}}\) can be expressed through expansions
with \(\textbf{y}_0 \in \Gamma ^\textrm{out}_0(t)\), and similarly \(\textbf{n}_{{\bar{\xi }}}= \textbf{n}_0 + {{\bar{\xi }}}\textbf{n}_1 + {\mathcal {O}}({{\bar{\xi }}}^{2})\). Defining \(z = r/{{\bar{\xi }}}\), we consider the inner expansions in the variables z and \(\textbf{s}\)
The derivatives are rewritten accordingly, yielding (Caginalp and Fife 1988)
using the expansions \(v_n = v_{n,0} + {\mathcal {O}}({{\bar{\xi }}}^{})\) and \(\kappa = \kappa _0 + {\mathcal {O}}({{\bar{\xi }}}^{})\). For fixed t and \(\textbf{s}\), let \(\textbf{y}_{1/2\pm }\) denote the limit for \(r\searrow 0\) and \(r\nearrow 0\), respectively, of a point \(\textbf{y}\) in curvilinear coordinates (66). The values of outer expansions at \(\textbf{y}_{1/2\pm }\) are paired with the limit values of inner expansions for \(z \rightarrow \pm \infty\) in the following matching conditions.
1.1 Outer Expansions
Due to the polynomial structure of \(P'\) it can be expanded as
Substituting the outer expansions (65) into the phase-field equation (9) yields
The leading order equation \(P'(u^\textrm{out}_0) = 0\) has solutions \(u^\textrm{out}_0 \in \{ 0, 1/2, 1 \}\), of which 0 and 1 are stable minimizers of P. This allows a decomposition of the unified \({\mathcal {P}}\) into bulk domains \(\Omega ^\textrm{out}_1\) and \(\Omega ^\textrm{out}_2\) for fluid 1 and 2, respectively, through
We consider the remaining outer expansions for \(\Omega ^\textrm{out}_i\).
For the mass balance equation (6a) we obtain by using the linear dependence of density on the phase-field variable
Denoting phase velocities \(\textbf{v}^{(i)} = {\textbf{v}^\textrm{out}_0}\vert _{\Omega ^\textrm{out}_i}\) we recover the individual mass conservation equations and, due to constant phase densities \(\rho ^{(i)}\), the divergence-free condition (1). The momentum balance (6b) yields, using additionally the linear relation for viscosity,
With phase pressures \(p^{(i)}\) given by restricting \(p^\textrm{out}_0\) to the bulk domain \(\Omega ^\textrm{out}_i\) we recover the momentum balance (2).
Inserting the outer expansions into the boundary conditions yields the conditions for the fluid-solid interfaces of the sharp-interface model. From (10a) we obtain
corresponding to the slip condition (3).
1.2 Inner Expansions
To obtain the boundary conditions at the fluid-fluid interface we insert the inner expansions (69), rewrite derivatives according to (70), and use the matching conditions (71).
Phase-Field Equation
From the phase-field equation (9) we obtain due to the polynomial form of P
Multiplying the leading order terms with \(\partial _z u^\textrm{in}_0\) and integrating with respect to z yields a condition for the interface velocity
where the terms in the first integral are equal to 0 due to the matching conditions. Taking the limit in z, we obtain
With \(\textbf{v}^\textrm{in}_0 \cdot \textbf{n}_0\) independent of z, the leading order terms reduce to
Multiplying the remaining terms with \(\partial _z u^\textrm{in}_0\) and integrating with respect to z, applying the chain rule and matching conditions with \(u^\textrm{in}_0 (t, \textbf{y}_{1/2-}) = 0\) and \(P(0) = 0\), yields
By definition of the curvilinear coordinates we have \(\partial _z u^\textrm{in}_0 \ge 0\) and
Using \(u^\textrm{out}(t, 0, \textbf{s}) = 1/2\) one can obtain a profile for the phase-field, namely
Mass Balance
Inserting the inner expansions into the mass balance equation (6a) yields
Integrating with respect to z and applying the matching conditions we obtain
which is fulfilled for \(\textbf{v}^{(1)} \cdot \textbf{n}_0 = \textbf{v}^{(2)} \cdot \textbf{n}_0 = v_{n,0}\) at the interface.
Momentum Balance
Inserting the inner expansions into the momentum balance equation (6b) yields
with leading order
and second-order
Using the definition of the outer product, the leading order terms at \({\mathcal {O}}({{\bar{\xi }}}^{-2})\) can be written as
Let \(\textbf{t}_0\) be a tangential vector, with \(\textbf{t}_0 \cdot \textbf{n}_0 = 0\). Taking the dot product of the above (88) with \(\textbf{t}_0\) yields
Integrating with respect to z and using matching conditions, we obtain
Since \(\mu \ne 0\) we have \(\partial _z \textbf{v}^\textrm{in}_0 \cdot \textbf{t}_0 = 0\), corresponding to the sharp-interface boundary condition and together with the assumption \(\partial _z \textbf{v}^\textrm{in}_0 \cdot \textbf{n}_0 = 0\), gives that the velocity \(\textbf{v}^\textrm{in}_0\) is independent of z.
Using also the definition of the outer product as well as \(\nabla _\Gamma \psi \cdot \textbf{n}_0 =0\), \(\nabla _\Gamma \cdot \textbf{n}_0 = \kappa _0\) and \(\nabla _\Gamma u^\textrm{in}_0 = 0\), the second-order terms simplify to
Integrating with respect to z and applying the matching conditions yields
where \([\psi ] = \psi _{2} - \psi _{1}\) denotes the jump of \(\psi\) across the interface and we used the boundedness of \(\nabla _\Gamma \textbf{v}^\textrm{in}_0\) as well as \(\partial _z u^\textrm{in}_1\). As the integral evaluates to \(2/(3 L)\) and the phase velocities are equal to \(v_{n,0}\) at the interface, we recover the boundary condition (5).
Appendix 2: Non-dimensionalization
As described in Sect. 3.1, in addition to the two length scales \(\ell\) and L with \(\epsilon = \ell /L\), we define reference values with dimensions
and let
This defines non-dimensionalized variables
and dimensionless numbers
Inserting into the mass (6a) and momentum (6b) balances yields
After multiplication with \({\hat{t}}/{\hat{\rho }}\) and \({\hat{L}}^2/({\hat{\mu }}{\hat{v}})\), respectively, we obtain
Using the non-dimensional numbers and dropping the overline notation, this is written as
For the slip boundary condition (10a), inserting the non-dimensionalized variables yields
With \({\hat{\lambda }} = {\hat{\ell }}\) and dropping the overline notation this simplifies to
The phase-field equation (9)
can be rewritten with non-dimensionalized variables as
Multiplying with \({\hat{t}}\), using the dimensionless number S and dropping the overline notation, the equation becomes
For the contact-angle boundary condition we obtain
Multiplying with L, using \({\hat{\xi }} = {\hat{\ell }} = \epsilon {\hat{L}}\) and dropping the overline notation this yields
Appendix 3: Homogenization
We introduce the micro-scale coordinate \(\textbf{y}= \epsilon ^{-1}\textbf{x}\), with \(\epsilon = \ell /L\) being the scale separation. We assume asymptotic expansions for \(\psi \in \{p, \textbf{v}, u\}\), that is
with each \(\psi _k\) y-periodic on the reference cell Y. Rewriting spatial derivatives according to
and choosing non-dimensional numbers \(\textrm{Ca}\,\in {\mathcal {O}}(\epsilon ^{0})\), \(\textrm{Re}\,\in {\mathcal {O}}(\epsilon ^{0})\), \(\textrm{Eu}\in {\mathcal {O}}(\epsilon ^{-2})\) and \(\textrm{Fr}\in {\mathcal {O}}(\epsilon ^{0})\) in addition to \(S \in {\mathcal {O}}(\epsilon ^{0})\) and inserting the asymptotic expansions into the non-dimensionalized equations, yields the following leading order terms. For the mass balance (18a) we obtain
We note that due to the dependence of \(\rho\) on \(u\) we have
and the equation can be written as
Analogously for the viscosity \(\mu\) we have \(\mu _0 = \mu (u_0)\) and \(\mu _1 = u_1 (M-1)\). Denoting \({\overline{\textrm{Eu}}}:= \epsilon ^2 \textrm{Eu}\in {\mathcal {O}}(\epsilon ^{0})\), the momentum equation (18b) yields the following terms.
Using the polynomial structure of \(P'\) we obtain the following expansion from the phase-field equation (20).
Inserting the asymptotic expansions into the boundary conditions yields
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Kelm, M., Bringedal, C. & Flemisch, B. Upscaling and Effective Behavior for Two-Phase Porous-Medium Flow Using a Diffuse Interface Model. Transp Porous Med 151, 1849–1886 (2024). https://doi.org/10.1007/s11242-024-02097-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11242-024-02097-6