Abstract
We simulate two-phase fluid flow using a stress–strain relation based on Biot’s theory of poroelasticity for partial saturation combined with the mass conservation equations. To uncouple flow and elastic strain, we use a correction to the stiffness of the medium under conditions of uniaxial strain. The pressure and saturation differential equations are then solved with an explicit time stepping scheme and the Fourier pseudospectral method to compute the spatial derivatives. We assume an initial pressure state and at each time step compute the wetting- and non wetting-fluid pressures at a given saturation. Then, we solve Richards’s equation for the non wetting-fluid saturation and proceed to the next time step with the updated saturations values. The pressure and saturation equations are first solved separately and the results compared to known analytical solutions showing the accuracy of the algorithm. Then, the coupled system is solved. In all the cases, the non-wetting fluid is injected at a given point in space as a boundary condition and capillarity effects are taken into account. The examples consider oil injection in a water-saturated porous medium.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
Diffusion equations can be obtained in poroelasticity at low frequencies, when the inertial terms are neglected (e.g. Carcione 2007). Chandler and Johnson (1981) have shown the equivalence between quasi-static fluid flow and Biot’s diffusive wave (see also Carcione 2007). Hence, fluid flow and pressure diffusion are phenomena described by the same differential equation. In hydrology and hydrocarbon exploration, diffusion equations are mainly used to model fluid flow in reservoir rocks (Peaceman 1977). Shapiro et al. (2002) describe the phenomenon of micro-seismicity caused by fluid injection in boreholes, while Müller (2006) provides a detailed physical analysis of the pore pressure induced by a fluid mass point source. His results support the hypothesis that the diffusive slow P-wave is mainly responsible for the triggering of microearthquakes.
Carcione and Gei (2009) simulated fluid-pressure diffusion in inhomogeneous media by considering a single fluid. The purpose of the present work is to generalise that approach to more than one fluid and use a similar method to solve the equations governing the flow. Possible applications involve simulation of fluid depletion and injection of hydrocarbons, geomechanical analysis of reservoirs (Settari and Mourits 1994) and micro-seismicity, as mentioned above. A convenient equation to define the stress–strain relation involving two fluids can be obtained from Biot’s theory of poroelasticity (Santos et al. 1990a, b; Ravazzoli et al. 2003). The diffusion can be fully uncoupled from the elastic deformations by neglecting the strain, but a less stringent condition can be obtained under uniaxial strain conditions, where the effect of the elastic deformations requires the modification of the rock stiffness involved in the diffusion equation. Uniaxial-strain conditions hold for the case of a fluid-injection source in a borehole, where the porous medium deforms uniaxially only in the vertical direction and the horizontal strains are zero. This approximation is valid for geological formations whose lateral dimensions are large compared to their thickness. In this case, the lateral deformations are small compared to the horizontal dimensions, and hence the lateral strain is approximately zero (e.g., Gutierrez and Lewis 2002).
In this work, we combine Biot’s poroelastic equations and the fluid mass conservation equations averaged to obtain a system of differential equations for the pore pressures and saturations of the wetting and non-wetting phases. The theory used here to define the stress–strain relations is a generalization of Biot’s theory and has been developed by Santos et al. (1990a, b) (see also Carcione et al. 2004). It is important to note here that the constitutive equations introduced by Santos et al. (1990a, b) have never been used to simulate fluid-flow phenomena, but only to describe wave propagation. Biot’s wave propagation theory, neglecting the acceleration terms, is equivalent to the consolidation theory if the infinitesimal stresses and pressures are assumed to be their absolute counterparts, since the stress–strain relations can be interpreted as a relation between incremental fields, where stress and strain are increments with respect to a reference stress and strain—the case of wave propagation—or, as relations between the absolute fields (consolidation theory; Biot 1941). Other models accounting for the coupling between the mechanical behaviour of the matrix and the fluid dynamics include the Hassanizadeh model (Hassanizadeh et al. 2002) and the Barenblatt–Biot model (Barenblatt and Gilman 1987).
The poroelastic stress–strain relation for the two fluids can be recasted as a first-order differential equation in time and allows us to obtain the fluid pressures and total flow velocity. On the other hand, the mass conservation equation can be recasted to obtain the advection–diffusion Richards equation which is coupled to the fluid pressures through the flow velocity. The diffusion term is determined by the capillarity effects. We first solve the pressure and saturation equation separately and test the results with known analytical solutions for the advection and diffusion equation in 1D and 2D space. Then, we investigate the effects of partial saturation and capillary forces on the pressure and saturation profiles and finally solve the coupled system, which consists in computing the flow velocity and then Richards’s equation for the fluid saturations. The algorithm is fully explicit and based on the Euler–Picard time stepping and on the Fourier pseudospectral method to compute the spatial derivatives (e.g., Carcione 2007). It has been shown that the Picard iteration method demonstrated perfect mass balance in fluid-flow equations when used with direct-grid methods such as the finite difference and finite element approximations in space (Zarba 1988). It is expected that the same performance can be achieved with the Fourier pseudospectral method. In this case, the model is discretized on a mesh the spatial derivatives are calculated with the fast Fourier transform. The spatial derivatives computed with the Fourier method have spectral accuracy and require coarser grids compared to finite-difference methods. The use of this spectral method overcomes two drawbacks: low accuracy and stringent stability conditions, since the error in time decays exponentially. The method has proved to be efficient when solving diffusion equations. (Carcione 2006, 2010; Carcione and Gei 2009).
Darcy’s equations
We consider a porous medium (a rock for instance) saturated with two immiscible fluids and denote with the subscripts (and superscripts) w and n quantities related to the wetting and non-wetting phases, respectively. Let vs, and denote the interstitial particle-velocity vectors of the solid grains, non-wetting fluid and wetting fluid, respectively. First of all, we assume that the rock deforms slowly compared to multiphase flow. In this case, we have the relative particle-velocity components m = n, w, whereϕ is the porosity. Then, Darcy’s equations relating Biot’s relative velocities and pressures pm are
(Gai 2004, see Eqs. (2.12, 2.16) ; Santos et al. 1990a), where S, ρ, η andκ denote saturation, density, viscosity and permeability, respectively, g is the gravity constant, i indicates the spatial variables x(1), y(2) and z(3),δ ij is Kronecker’s delta and the subindex “i” denotes spatial differentiation. Darcy’s velocities, as given in Gai (2004, Eq. 2.16), are where N α are the so-called (dimensionless) concentrations.
Stress–strain relations
Following Santos et al. (1990a, b), we define
whereξ is the variation of fluid content and a dot above a variable denotes time differentiation. Let denote the strain components of the solid grains let denote the dilatation field. Then, the total stress components and fluid stresses are
where
N is the dry-rock shear modulus and Kc is the undrained (closed) bulk modulus. It is
where Ks is the bulk modulus of the solid grains, Km is the dry-rock bulk modulus,
where Ks is the bulk modulus of the grains, Kn and Kw are the bulk moduli of the non-wetting and wetting fluids, respectively, pc is the capillary pressure (i.e., the difference between the non-wet and wetting-fluid absolute pressures), is an average hydrostatic pressure (assumed to be zero in this work) and the derivative of pc with respect to Sn; moreover,
Uncoupling fluid flow and deformation
The fluid pressure is coupled with the strain of the matrix in Eq. (3). This fact makes the problem much more difficult to solve, but there are situations where these field variables can be uncoupled. They occur when the displacement field is irrotational or when the fluid is very compressible (e.g., Detournay and Cheng 1993). We may avoid such approximation by using a less stringent one. Let us assume the case of a fluid-injection source in a borehole, uniaxial strain conditions and vertical deformations only. In this case, the only non-zero differential strain is Assuming no changes in the vertical stress, we obtain from Eq. (3):
Using this result, the second and third Eq. (3) become
More general approaches involving the coupling of fluid flow and deformation based on Biot’s equations are given in Gutierrez and Lewis (2002).
Mass conservation equations
The system of equations are complemented with the balance of mass
(Gai 2004, Eqs. 2.17–2.19; Peaceman 1977; Santos et al. 1990a), where vm = (v m1 , v m2 , v m3 )T, sm is the source or sink term and we have assumed constant volume factors.
The pressure and Richards equations
Replacing the flow velocities from Eq. (1) into the time derivative of Eq. (18) and into Eq. (19), we obtain
where g is the gravity vector. These equations are subject to the constraints
From Eq. (18) we have
and the first constraint Eq. (21) becomes
In particular, we set
From Eq. (20), we obtain the system to be solved:
where the third (Richards’s) equation is obtained in “Appendix A” ct is the total Darcy velocity. This system is complemented with Eqs. (18) and (22), subject to the initial condition (pw0, Sw0). In the limit (assuming the residual saturations Srw = Srn = 0), where M is given in Eq. (10) of Carcione and Gei (2009) and the first Eq. (25) becomes Eq. (9) of that paper.
The algorithm to solve these equations is explicit in the time variable, t = j dt, where dt is the time step and It uses the forward Euler method to approximate the time derivatives and the Fourier pseudospectral method to compute the spatial derivatives (e.g., Carcione 2006, 2007; Carcione and Gei 2009). We assume an initial state (pw0, Sw0), compute τw at j + 1 (first equation) assuming the saturations obtained at j on the r.h.s. of the equations. Then, we computeτn, the pressures with Eq. (22) and solve the last two equation for Sn at j + 1 proceed to the next time step. To improve the Euler method we solve the saturation Eq. (25) by using the Picard method (Pang 2006) (see “Appendix B”).
Fourier analysis
The characteristics of the pressure diffusion can be analysed with a Fourier analysis. Let us assume a kernel of the form whereω is the angular frequency, k is the complex wavenumber vector and x is the position vector. Assuming homogeneous properties, we have k = k (l1, l2, l3)T, where is the attenuation factor l i are the direction cosines defining the propagation direction, where Re takes the real part.
From Eqs. (18) and (22) we have and at constant saturation. Substituting the above kernel into the first Eq. (25), in the absence of source, gives the dispersion equation
We define the complex velocity as
(the quantity inside the square root is positive). The same kinematic concepts used in wave propagation (acoustics and electromagnetism) are useful in this analysis (see Carcione 2007, Chap. 8). For we obtain the complex velocity of Carcione and Gei (2009).
The phase velocity of the pressure front and respective attenuation factor can be obtained from the complex velocity as
respectively, where Im takes imaginary part. The skin depth is the distance d for which = 1/e, wheree is Euler’s number. It is usually taken as the effective distance of penetration of the signal. Then,
Numerical simulations
Tests are performed in the cases where analytical solutions exist. First, we consider the first Eq. (25) in the homogeneous case, without gravity, Sw = 1 and pw0 = 0. In this case,τw = − pw, a3 = 0 and a2bw = − Mκ /ηw, where M is given in Eq. (10) of Carcione and Gei (2009). We obtain the equation
where is the Laplacian,κ is the absolute permeability and hereδ is the Dirac delta function, representing the source. The analytical solution is the Green’s function given by Eq. (35) in Carcione and Gei (2009). We consider the 1D case, the material properties shown in Table 1, a number of grid points n x = 165 and a grid spacing dx = 4 m/n x . Figure 1 compares numerical and analytical time histories (normalized) at 24 cm from the source computed with a time step dt = 10 μs. The agreement is excellent.
In the absence of sources and gravity effects and (constant), an analytical solution is known for the 1D version of the third Eq. (25), i.e.,
where is a diffusivity, for the initial condition Sn (x,0) = 0 and boundary conditions Sn (x0 , t) = 1 and It is given by
where erfc is the complementary error function (Peaceman 1977, Eq. 4.35). In 1D space ct is a constant since ∂ct/∂x = 0. The velocity at which the saturation front travels is
Equation (30) with pc = 0 ( = 0) is the Buckley–Leverett (1942) equation. To solve Eq. (30), we consider = 0.9 and the velocity field shown in Fig. 2a, where c0 = 1.2 m/s, i.e., c = − c0 for x ≤ x0 and c = +c0 for x ≥ x0, where Sn (x0 = 0 , t) = 1. An important parameter is the Courant number C, giving the distance traveled due to advection in a time step dt with respect to the grid spacing, i.e., Being explicit, the algorithm is stable for C < 1, which means that one cannot advect the saturation more than one grid cell in a single time step. Accuracy requires a time step smaller than that imposed by stability. Figure 2b shows the comparison between the numerical and analytical solutions at 1 s, where n x = 429, dx = 4 m/n x and dt = 0.2 ms. The analytical solution is shown for x > x0.
In 2D space, assuming diffusivity anisotropy a flow velocity (v x , v z ) and a point-source injection, Eq. (30) can be generalized as
where s0 is the rate of injection per unit area and the solution to this equation yields the Green function. It is well known that this equation can be recast as a pure diffusion equation. Let us use an analogy and consider the x-direction. If we are traveling in a train moving at velocity we do not see the advection. If the train starts to move at t = 0 and x = 0, its location is and we may define a moving coordinate so that always. With respect to those moving coordinates, we have the following diffusion equation:
whose solution, at the original coordinates, is
(Carslaw and Jaeger 1984; Carcione 2007). If the injection occurs at (x0, z0), the solution is obtained by simply replacing t by t − t0, x by x − x0 and z by z − z0. In 1D space the solution is We consider n x = n z = 429, dx = dz = 4 m/n x and dt = 0.2 ms. Recall that the discrete spatial delta is represented by 1/dx in 1D space and 1/(dx dz) in 2D space. Figure 3 compares 1D (a) and 2D (b) numerical and analytical solutions at t = 1 s for D x = D z = 0.01 D, with v0 = 1.2 m/s at all the grid points.
Next, we consider the boundary condition Sn (x0 , t) = 1, a radial velocity flow as shown in Fig. 4a and (), with v0 =1.2, = 1.2 and the same diffusivity of the previous examples. Figure 4b shows the snapshot of the saturation, where we have taken n x = n z = 1,287, dx = dz = 4 m/n x and dt = 0.2 ms.
Now we consider the mobilities and the capillary pressure effects. The permeabilities are given by
(van Genuchten 1980; Lo et al. 2007), whereκ is the absolute permeability, 0 < p < 1 Srn and Srw are residual saturations. These relations are based on laboratory experiments performed on various porous rocks during imbibition and drainage processes (neglecting hysteresis effects).
The capillary pressure as a function of saturation is the van Genuchten function
where P0 is a reference pressure (e.g., Goumiri et al. 2011) and Srwv = 0.1 Srw. Here, Relative permeabilities and capillary pressure as a function of the wetting-fluid saturation are shown in Fig. 5, whereκ = 0.8 D, Srw = 0.25, Srn = 0.05, P0 = 10 kPa and p = 0.75. Figure 6 display the advective and diffusive terms and hn appearing in the Richards Eq. (25).
We now solve the first Eq. (25) for partial saturation with an initial condition in the wetting-fluid pressure field, without gravity effects and considering the capillary pressure. The equations are
The initial condition is
where p0 = 1 MPa, p1 = 0.1 MPa k0 = 3/m. We consider the properties of Table 1, Srw = 0.05, Srn = 0.05 and p = 0.5. We first test the case where there is an analytical solution, i.e. only the presence of the wetting phase (Sw = 1) and an initial condition The 1D Green’s function is well known (Carslaw and Jaeger 1984; Carcione and Gei 2009) and is given by where d = κM/ηw and t0 is a given time. The numerical solution fits the analytical solution (not shown here), which is given by where “” denotes spatial convolution. The next simulation considers three saturations with and without the presence of capillary pressure. We take n x = n z = 165, dx = dz = 4 m/n x and dt = 50 μs. The results at 60 ms are shown in Fig. 7, where the reference initial condition is also shown. Increasing wetting-fluid saturation implies attenuation and dispersion with higher levels at higher wetting-fluid saturations. The presence of capillary pressure produces a shift of the curves downwards. Figure 8 shows the non-wetting fluid pressure, which is not affected by capillary effects.
Now, we compute the numerical solution of Richards’s Eq. (25) at different saturations, with and without capillary effects. We ignore sources and gravity. We have
where
We then apply the boundary condition Sn (x0 , t) = 1 − Srw. We consider a 1D medium with c = − c0 for x ≤ x0 and c = +c0 for x ≥ x0, where c0 = 0.4 m/s. The grid size is n x = 315, with dx = 4 m/n x . Figure 9 shows a snapshot of the saturation at 15 s as a function of distance, where we have used P0 = 10 kPa, p = 0.75, a time step dt = 0.05 ms and K = 10 iterations of the Picard algorithm (see “Appendix B”). The capillarity pressure has little effect on the shape of the saturation front.
In order to appreciate the capillarity effects, we consider P0 = 1 GPa, p = 0.5, c0 = 0.4 m/s, Sn (x0 , t) = 1 − Srw − 0.01, the previous mesh and a time step dt = 0.1 ms. Figure 10a shows snapshots of the saturation at different propagation times, where the front propagates at a velocity of approximately 3.25 m/s. The velocity actually depends on the fluid saturations. The front velocity Eq. (32) as a function of the wetting fluid saturation is shown in Fig. 10b.
Finally, we solve the coupled system Eq. (25) in 1D space, where the flow velocity (last equation) is obtained by solving for the pressures (first and second equations). We set the initial condition Eq. (39), with p0 = 1 MPa, p1 = 0.1 MPa, and k0 = 3/m, Srw = 0.25, Srn = 0.05 and 95 % water saturation at t = 0. Then, we apply the boundary condition Sn (x0 , t) = 0.95 − Srw, with P0 = 1 GPa and p = 0.5. We take n x = n z = 165, dx = dz = 4 m/n x , K = 10 and dt = 10 μs. Figure 11 shows the saturations at various propagation times. Diffusion effects due to the capillarity forces dominate in this case.
Conclusions
We have developed a fully explicit algorithm to simulate the injection of a non-wetting fluid into a porous medium saturated with a wetting fluid. The fluid pressures are obtained from the stress–strain relation of the theory of poroelasticity, from which the total (Darcy) flow velocity is computed. This velocity determines the advection term of Richards’s saturation equation. Then, the coupled pressure–saturation system of equations is solved with the Euler–Picard time stepping algorithm and the Fourier pseudospectral method. The example assumes oil injection in a water-saturated porous medium. Analytical solutions allow us to verify the accuracy of the results in various situations, where the two unknown variables (pressure and saturation) are uncoupled, with and without capillarity effects based on the van Genuchten functions. Strong capillary forces have to be assumed to see the effects as shown in the simulations of the saturation front. Here, we have considered two fluids. The extension of the theory to include gases, which requires to include pressure–volume–temperature and chemical effects, will be developed in a future work.
References
Barenblatt GI, Gilman AA (1987) A mathematical model of non-equilibrium counter-current capillary imbibition. J Eng Phys 52:456–461
Biot M (1941) General theory of three-dimensional consolidation. J Appl Phys 12:155–164
Buckley SE, Leverett MC (1942) Mechanism of fluid displacements in sands. Trans AIME 146:107–116
Carcione JM (2006) A spectral numerical method for electromagnetic diffusion. Geophysics 71:I1–I9
Carcione JM (2007) Wave fields in real media. Theory and numerical simulation of wave propagation in anisotropic, anelastic, porous and electromagnetic media, 2nd edn. Elsevier, Amsterdam
Carcione JM (2010) Simulation of electromagnetic diffusion in anisotropic media. Progr Electromagnet Res B (PIER B) 26:425–450
Carcione JM, Cavallini F, Santos JE, Ravazzoli CL, Gauzellino PM (2004) Wave propagation in partially-saturated porous media. Simulation of a second slow wave. Wave Motion 39:227–240
Carcione JM, Gei D (2009) Theory and numerical simulation of fluid-pressure diffusion in anisotropic porous media. Geophysics 74:N31–N39
Carslaw HS, Jaeger JC (1984) Conduction of heat in solids. Clarendon Press, Oxford, UK
Chandler RN, Johnson DL (1981) The equivalence of quasi-static flow in fluid-saturated porous media and Biot’s slow wave in the limit of zero frequency J Appl Phys 52:3391–3395
Detournay E, Cheng AH-D (1993) Fundamentals of poroelasticity. In: Fairhurst C (ed) Comprehensive rock engineering: principles, practice and projects, vol. II, Chap. 5. Pergamon, New York, pp 113-171
Gai X (2004) A coupled geomechanics and reservoir flow model on parallel computers. PhD Thesis, Texas University, Austin
Goumiri IR, Prévost JH, Preisig M (2011) The effect of capillary pressure on the saturation equation of two-phase flow in porous media. Int J Numer Anal Method Geomech 32:352–361
Gutierrez MS, Lewis RW (2002) Coupling of fluid flow and deformation in underground formations. J Engrg Mech 128:779–787
Hassanizadeh SM, Celia MA, Dahle HK (2002) Dynamic effects in the capillary pressure–saturation relationship and their impacts on unsaturated flow. Vadose Zone J 1:38–57
Lo WC, Yeh CL, Tsai CT (2007) Effect of soil texture on the propagation and attenuation of acoustic wave at unsaturated conditions. J Hydrol 338:273–284
Müller TM (2006) Spatio-temporal pore pressure evolution due to fluid-mass point sources in dynamic poroelasticity. Geophys J Int 165:906–912
Pang T (2006) An introduction to computational physics. Cambridge University Press, Cambridge
Peaceman DW (1977) Fundamentals of numerical reservoir simulation. Elsevier, Amsterdam
Ravazzoli CL, Santos JE, Carcione JM (2003) Acoustic and mechanical response of reservoir rocks under variable saturation and effective pressure. J Acoust Soc Am 113:1801–1811
Richards LA (1931) Capillary conduction of liquids through porous mediums. Physics 1:318–333
Santos JE, Douglas Jr J, Corberó JM, Lovera OM (1990) A model for wave propagation in a porous medium saturated by a two-phase fluid. J Acoust Soc Am 87:1439–1448
Santos JE, Douglas Jr J, Corberó JM (1990) Static and dynamic behaviour of a porous solid saturated by a two-phase fluid. J Acoust Soc Am 87:1428–1438
Settari A., Mourits FM (1994) Coupling of geomechanics and reservoir simulation models. In: Siriwardane H, Zaman M (eds) Computer methods and advances in geomechanics. A. A. Balkema, Rotterdam, pp 2151–2158
Shapiro SA, Rothert E, Rath V, Rindschwentner J (2002) Characterization of fluid transport properties of reservoirs using induced microseismicity. Geophysics 67:212–220
Van Genuchten MT (1980) Closed-form equation for predicting the hydraulic conductivity of unsaturated soils. Soil Sci Soc Am J 44:892–898
Zarba RL (1988) A numerical investigation of unsaturated flow. M.S. thesis, Department of Civil Engineering, Massachusetts Institute of Technology, Cambridge
Acknowledgments
This paper has been partially funded by the CO2Monitor project.
Author information
Authors and Affiliations
Corresponding author
Appendices
Appendix A: Richards’s equation
Let us define the Darcy velocity vector as
Then, from Eq. (1),
From this equation we obtain
where
is the total Darcy velocity,
and
Here,
Substituting Eq. (44) into Eq. (19) yields
The second term is
where we have used Eq. (19). Then,
where This is a general form of the so-called Richards’s (1931) equation.
Appendix B: Euler–Picard method
The Picard method is based on a sequence of functions which converge to the desired solution. It is useful for the error analysis of Eulerian methods. Picard’s method starts with a guess solution. The idea is that the process of checking each new solution yields a new guess which, even if it is not the correct solution, is a better approximation of the previous one (Pang 2006).
The saturation Eq. (25) can be re-written as
where S = S n . The forward Euler algorithm is
Since this method has generally low accuracy, we use a numerical quadrature to integrate Eq. (51),
(Pang 2006) and then perform Picard iterations to obtain fj + 1 = f (Sj + 1). We take S 0j + 1 = S j and perform
compute fj + 1 and solve Eq. (53).
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution License which permits any use, distribution, and reproduction in any medium, provided the original author(s) and the source are credited.
About this article
Cite this article
Carcione, J.M., Picotti, S., Santos, J.E. et al. Numerical simulation of two-phase fluid flow. J Petrol Explor Prod Technol 4, 233–243 (2014). https://doi.org/10.1007/s13202-014-0109-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s13202-014-0109-y