1 Introduction

The relative permeability curve is essential to describe the complicated multiphase flow characteristics in porous media (Masihi et al. 2011; Chen et al. 2013). In general, water–oil or oil–gas relative permeability data can be obtained from steady- or unsteady-state displacement experiments with core samples. Such experimental data can be interpreted using analytical methods, e.g., the Johnson–Bossler–Naumann (JBN) method. However, due to the idealized hypothesis, the precision usually cannot be guaranteed when using analytical methods to calculate the water–oil or oil–gas relative permeability curve. To improve the precision of the estimated result, Sigmund and McCaffery applied a nonlinear regression to the problem of history matching laboratory coreflood data for the first time and proposed a numerical inversion method for the water–oil relative permeability curve (Sigmund and McCaffery 1979). In contrast to the existing analytical methods, when the numerical inversion methods are adopted to interpret laboratory coreflood data, production performance prior to and after water breakthrough can be utilized comprehensively. The estimated result is not only complete but also highly precise (Daoud and Velasquez 2006; Barroeta and Thompson 2010). In recent decades, a variety of numerical inversion methods have been developed to implicitly estimate the relative permeability curve for water–oil or oil–gas systems (Chen et al. 2008; Li et al. 2009; Eydinov et al. 2009; Wang et al. 2010; Wang and Li 2011; Li and Yang 2011; Abdollahzadeh et al. 2011; Zhang and Yang 2013; Xu et al. 2013; Miao et al. 2014).

As planar and vertical reservoir heterogeneity escalates, it is a great challenge to recover the remaining oil from mature waterflooded oilfields which suffer from extremely high water cut and unfavorable recovery performance of original oil in place (Li 2009; Han 2010). Due to the highly scattered and relatively enriched distribution of remaining oil, efficient enhanced oil recovery (EOR) techniques have become imperative. Water-alternating-gas (WAG) injection has been identified as a cost-effective EOR process yielding high recovery in some oilfields (Luo et al. 2013; Salehi et al. 2014; Laochamroonvorapongse et al. 2014; Sheng 2015). Nevertheless, considering the complicated phase behavior and various flow characteristics in heterogeneous formations, gas tends to break through early in production wells due to overriding, fingering, and channeling, which may result in unfavorable recovery performance. So far, few attempts have been made to implicitly estimate water–oil–gas relative permeability curves during immiscible WAG injection. Taking a synthetic reservoir as an example, Li et al. proposed a numerical inversion method for estimation of the three-phase relative permeability curve using the ensemble Kalman filter algorithm for assisted history matching. However, due to the inherent limitations confronted by the relative permeability representation model, no significant recognitions were achieved (Li et al. 2012; Chen and Reynolds 2015). Using the Levenberg–Marquardt (LM) algorithm for automatic history matching, Hou et al. addressed the optimization of production performance and relative permeability representation models and finally proposed a numerical inversion method for estimation of the radial water–oil relative permeability curve, which attracts great interest by researchers in petroleum engineering (Hou et al. 2012a, b, 2015).

As a result of the above-mentioned problems, this paper presents a novel numerical inversion method for estimation of the water–oil–gas relative permeability curve during immiscible WAG processes. The structure of this paper is organized as follows. In Sect. 2, the formulation and architecture of the relative permeability representation model are presented. Section 3 provides a brief description of the proposed numerical inversion method using the LM based history matching techniques. In Sect. 4, laboratory tests including phase behavior studies, minimum miscibility pressure (MMP) measurement, and immiscible WAG coreflood experiments are conducted to understand the major recovery mechanisms and thus generate accurate fluid properties under reservoir conditions. Finally, the reliability and robustness of the proposed method are validated by interpreting coreflood data of the immiscible WAG experiment to implicitly estimate the water–oil–gas relative permeability curve.

2 Relative permeability representation model

According to whether it is required to assume the shape of the relative permeability curve, there are two main categories in the representation model: the parametric model and the nonparametric model (Kulkarni and Datta-Gupta 2000). The parametric model uses explicit equations to generate the two- or three-phase relative permeability curve, assuming that the relative permeability curve fits into the shape of a certain type of the functional model (e.g., the power law model). Nevertheless, the number of degrees of freedom of the parametric model is not enough for all types of relative permeability curves for actual reservoirs. Due to its simplicity, the power law model is widely used (Lee and Seinfeld 1987; Reynolds et al. 2004). The nonparametric model is far more general and flexible because there is no assumption regarding the shape of the relative permeability curves [e.g., the cubic B-spline model (CBM)], which has the advantage of being able to accurately represent any set of relative permeability curves. Thus far, the nonparametric model most widely used is the CBM (Chen et al. 2008; Eydinov et al. 2009). For this study, the CBM is adopted to describe the water–oil–gas relative permeability curve during the WAG recovery process.

First, the dimensionless fluid saturation is defined as

$$S_{\text{wD}} = \frac{{S_{\text{w}} - S_{\text{iw}} }}{{1 - S_{\text{iw}} - S_{\text{orw}} }}$$
(1)
$$S_{\text{owD}} = 1 - S_{\text{wD}}$$
(2)
$$S_{\text{gD}} = \frac{{S_{\text{g}} - S_{\text{gc}} }}{{1 - S_{\text{iw}} - S_{\text{gc}} - S_{\text{org}} }}$$
(3)
$$S_{\text{ogD}} = 1 - S_{\text{gD}},$$
(4)

where S wD and S owD are the dimensionless water and oil saturation for the water–oil system, respectively; S gD and S ogD are the dimensionless gas and oil saturation for the oil–gas system, respectively; S w is the water saturation; S iw is the initial water saturation; S orw is the residual oil saturation for the water–oil system; S g is the gas saturation; S gc is the critical gas saturation; and S org is the residual oil saturation for the oil–gas system.

The CBM model for the water–oil–gas relative permeability curve is given by

$$k_{{{\text{r}}p}} (S_{{p}{\rm D}} ) = \sum\limits_{j = - 3}^{n - 1} {C_{j + 2}^{p} B_{j + 3} } (S_{{p}{\rm D}} ),\quad p = {\text{w}},\,{\text{ow}},{\kern 1pt} \;{\text{g}},{\text{og}},$$
(5)

where k rp is the p-phase relative permeability at the dimensionless fluid saturation S pD; n is the number of the controlling knots; \(C_{j + 2}^{p}\) is the controlling points for the B-spline approximations of the p-phase relative permeability curve; and \(B_{j,3} (S_{{p{\text{D}}}} )\) is the basis function for the CBM model. For detail, please refer to de Boor (de Boor 1978).

It should be noted that the traditional B-spline curve is “attached” to the controlling knots but does not normally pass through them. Therefore, to ensure two of its controlling knots \(C_{0}^{p}\) and \(C_{n}^{p}\) for the p-phase relative permeability curve being traversed, two phantom knots \(C_{ - 1}^{p}\) and \(C_{n + 1}^{p}\) are introduced for each curve to clamp the endpoints of three-phase relative permeability curves. Equation (6) is proposed to describe the correlation:

$$C_{ - 1}^{p} = 2C_{0}^{p} - C_{1}^{p} \quad {\text{and}}\quad C_{n + 1}^{p} = 2C_{n}^{p} - C_{n - 1}^{p}.$$
(6)

Since the water–oil relative permeability and oil–gas relative permeability are, respectively, normalized by K o(S iw) and K o(S gc), it leads to \(C_{0}^{\text{ow}} = C_{0}^{\text{og}} = 1\). Moreover, the endpoints of the fluid saturation S iw, S orw, S gc, and S org are regarded as known values, i.e., \(C_{n}^{\text{ow}} = C_{n}^{\text{og}} = C_{0}^{\text{w}} = C_{0}^{\text{g}} = 0\). There are \(n - 1\) parameters to be estimated for the oil relative permeability of the water–oil or oil–gas system, and there are n parameters to be estimated for the water or gas relative permeability. Finally, there are total \(4n - 2\) parameters to be estimated for the water–oil–gas system.

To enforce the monotonicity and convexity of the three-phase relative permeability curve, a log transformation from the controlling knots to pseudo-controlling knots is carried out. For the water-phase or gas-phase relative permeability curve,

$$\left\{ \begin{aligned} x_{1}^{u} &= \ln \left( {\frac{{C_{1}^{u} }}{{\frac{1}{2}\left( {C_{2}^{u} + 0} \right) - C_{1}^{u} }}} \right); \\ x_{i}^{u} &= \ln \left( {\frac{{C_{i}^{u} - (2C_{i - 1}^{u} - C_{i - 2}^{u} )}}{{\frac{1}{2}\left( {C_{i + 1}^{u} + C_{i - 1}^{u} } \right) - C_{i}^{u} }}} \right), \, 2 \le i \le n - 1;{\kern 1pt} \quad u = {\text{w}},{\text{g}} \\ x_{n}^{u} &= \ln \left( {\frac{{C_{n}^{u} - (2C_{n - 1}^{u} - C_{n - 2}^{u} )}}{{1 - C_{n}^{u} }}} \right). \\ \end{aligned} \right..$$
(7)

For the oil-phase relative permeability curve of the water–oil or oil–gas system,

$$\left\{ \begin{aligned} y_{1}^{v} &= \ln \left( {\frac{{C_{1}^{v} - (2C_{2}^{v} - C_{3}^{v} )}}{{\frac{1}{2}\left( {C_{2}^{v} + 1} \right) - C_{1}^{v} }}} \right); \\ y_{i}^{v} &= \ln \left( {\frac{{C_{i}^{v} - (2C_{i + 1}^{v} - C_{i + 2}^{v} )}}{{\frac{1}{2}\left( {C_{i + 1}^{v} + C_{i - 1}^{v} } \right) - C_{i}^{v} }}} \right), \, 2 \le i \le n - 2; \\ y_{n - 1}^{v} &= \ln \left( {\frac{{C_{n - 1}^{v} - 0}}{{\frac{1}{2}C_{n - 2}^{v} - C_{n - 1}^{v} }}} \right). \\ \end{aligned} \right.{\kern 1pt} \quad v = {\text{ow}},{\text{og}}{\kern 1pt}.$$
(8)

To sum up, the vector m of unknown model parameters of the CBM can be expressed as

$${\mathbf{m}} = \left[ {x_{1}^{\text{w}} ,x_{2}^{\text{w}} ,{\kern 1pt} \ldots ,x_{n}^{\text{w}} ,{\kern 1pt} {\kern 1pt} y_{1}^{\text{ow}} ,y_{2}^{\text{ow}} ,{\kern 1pt} \ldots ,y_{n - 1}^{\text{ow}} ,x_{1}^{\text{g}} ,x_{2}^{\text{g}} , \ldots ,x_{n}^{\text{g}} ,y_{1}^{\text{og}} ,y_{2}^{\text{og}} , \ldots ,y_{n - 1}^{\text{og}} } \right].$$
(9)

With regard to the actual estimation of the three-phase relative permeability curve, the vector m of unknown model parameters, which is composed of the pseudo-controlling knot vectors (x and y) mentioned above, is adjusted subsequently using the optimization algorithm. After each iteration, the controlling knot vectors (C u and C v) are calculated by inverse transforming the pseudo-controlling parameters. Then, the water–oil and oil–gas relative permeabilities satisfying the monotonicity and convexity rule are obtained from the cubic B-spline model. For this study, the number of controlling knots n is equal to 7.

Once the water–oil and oil–gas relative permeabilities are obtained after each iteration, the modified Stone’s Model II (Aziz and Settari 1979) is further adopted to calculate the oil relative permeability curve when all three phases are mobile, which takes the form of

$$K_{\text{ro}} (S_{\text{w}} ,S_{\text{g}} ) = K_{\text{row}}^{ 0} \left[ {\left( {\frac{{K_{\text{row}} (S_{\text{w}} )}}{{K_{\text{row}}^{ 0} }} + K_{\text{rw}} (S_{\text{w}} )} \right)\left( {\frac{{K_{\text{rog}} (S_{\text{g}} )}}{{K_{\text{row}}^{0} }} + K_{\text{rg}} (S_{\text{g}} )} \right) - \left( {K_{\text{rw}} (S_{w} ) + K_{\text{rg}} (S_{\text{g}} )} \right)} \right],$$
(10)

where K rw and K row are the water and oil relative permeability for the water–oil system, respectively; K rg and K rog are the gas and oil relative permeability for the oil–gas system, respectively; and \(K_{\text{row}}^{ 0}\) is the oil relative permeability at the connate water saturation (in oil–water flow), and at the critical saturation (in oil–gas flow).

3 Methodology

3.1 Least-squares objective function

Provided that the predicted production performance is in accordance with the observed values, a least-squares objective function needs to be established for estimation of the water–oil–gas relative permeability curve and can be described as follows:

$$O({\mathbf{m}}) = \frac{1}{2}({\mathbf{g}}({\mathbf{m}}) - {\mathbf{d}}_{{{\text{obs}}}} )^{\text{T}} {\mathbf{C}}_{{\text{D}}}^{ - 1} ({\mathbf{g}}({\mathbf{m}}) - {\mathbf{d}}_{{{\text{obs}}}} ),$$
(11)

where \(O({\mathbf{m}})\) is the least-squares objective function; \({\mathbf{m}}\) is a (\(m \times 1\)) vector of the unknown model parameters; T is a symbol denoting the transpose of a vector or matrix; \({\mathbf{d}}_{{{\text{obs}}}}\) is a (\(n \times 1\)) vector of the observed (or measured) data; \({\mathbf{g}}({\mathbf{m}})\) is a (\(n \times 1\)) vector of the predicted data; and \({\mathbf{C}}_{{\text{D}}}^{{}}\) is the (\(n \times n\)) covariance matrix. With regard to the actual history matching problems, the objective function \(O({\mathbf{m}})\) is usually nonlinear and the vector of model parameters \({\mathbf{m}}\) should be confined to a reasonable range according to reservoir conditions. In this study, the pressure drop, water cut, and the cumulative gas–oil ratio are considered as the observed production performance to establish the least-squares objective function.

3.2 LM algorithm

The LM algorithm (Oliver and Chen 2011), one of the gradient-based algorithms most widely used, has high computational efficiency and a quick convergence speed. When using the LM algorithm to solve the inverse history matching problems, the smooth transition can be addressed successively between the steepest descent algorithm and the Newton algorithm (Barua et al. 1988). The optimization procedure should satisfy the following principle: if the least-squares objective function is far from the minimum point, the convergence direction should be identical to that of the steepest descent algorithm; if the objective function is close to the minimum point, the convergence direction is the same as that of the Newton algorithm. Optimization of production performance in this paper is performed using the LM algorithm. In addition, a finite difference method is adopted to compute the sensitivity matrix of the least-squares objective function at the unknown model parameters. The generalized form of the LM algorithm is depicted as Eq. (12):

$$(\lambda {\mathbf{I}} + {\mathbf{H}}({\mathbf{m}}^{k} )){\mathbf{\delta m}}^{k + 1} = - \nabla O({\mathbf{m}}^{k} ),$$
(12)

where \({\mathbf{H}}({\mathbf{m}}^{k} )\) is the Hessian matrix for the kth iteration; I is an (\(n \times n\)) identity matrix; \(\lambda\) is the damping factor to guarantee the half-positive definitiveness of the Hessian matrix; \(O({\mathbf{m}}^{k} )\) is the least-squares objective function for the kth iteration; \({\mathbf{m}}^{k}\) and \({\mathbf{m}}^{k + 1}\) are, respectively, the vector of unknown model parameters obtained by the kth and (k + 1)th iterations, and \({\mathbf{\delta m}}^{k + 1} = {\mathbf{m}}^{k + 1} - {\mathbf{m}}^{k}\); and \(\nabla\) is the Hamiltonian operator.

The following is the specific calculation procedure of using the LM algorithm for automatic history matching. First, input the initial damping factor \(\lambda_{0}\). After each iteration, it is necessary to adjust the values of the damping factor. The principle for adjustment is summarized as follows: (1) Calculate the vector of unknown model parameters \({\mathbf{m}}^{k + 1}\). If \(O({\mathbf{m}}^{k + 1} ) \ge O({\mathbf{m}}^{k} )\), the iteration is regarded as a failure, and then \(\lambda = \lambda \times 10\). If \(O({\mathbf{m}}^{k + 1} ) < O({\mathbf{m}}^{k} )\), the iteration is regarded as a success, and then \(\lambda = \lambda \times 10\). (2) Submit the damping factor \(\lambda\) adjusted to Eq. (12) and carry out the next iteration. The iteration described previously is repeated until the termination condition is satisfied.

The termination condition of iteration utilized takes the form of Eq. (13):

$$\left| {O({\mathbf{m}}^{k + 1} ) - O({\mathbf{m}}^{k} )} \right| < \varepsilon_{1} \quad {\text{or}}\quad count > count_{\hbox{max} },$$
(13)

where \(\varepsilon_{1}\) is the convergence precision (fraction); \(count\) is the iteration times (integer); and \(count_{\hbox{max} }\) is the maximum iteration times (integer). For this study, \(\varepsilon_{1} = 10^{ - 6}\) and \(count_{\hbox{max} } = 100\).

3.3 Procedure of parameter estimation

The procedure for implicitly estimating the three-phase relative permeability curve using LM based history matching techniques is briefly described as follows: (1) initialize the unknown controlling parameters of the CBM to generate prior knowledge of the three-phase relative permeability curve; (2) implement reservoir simulation using the prior curves to generate the predicted production data; (3) establish a least-squares objective function to reflect the discrepancy between the predicted and observed values of production performance; and (4) advance the minimization of the least-squares objective function using the LM algorithm to subsequently adjust the unknown controlling parameter vector of the CBM until all the observed production data are assimilated. Finally, the water–oil–gas three-phase relative permeability curve is achieved and evaluated.

4 Laboratory tests

Using synthetic core samples, laboratory tests including phase behavior studies, MMP measurements, and immiscible WAG coreflood experiments were conducted to understand the major recovery mechanisms of immiscible WAG injection and thus generate accurate fluid properties under reservoir conditions.

4.1 Phase behavior studies

Well product and dissolved gas were collected from a low-permeability classic sandstone reservoir in the Jidong Oilfield, China. The density and viscosity of the well product were measured to be 0.871 g/cm3 and 8.477 mPa s at 20 °C and at atmospheric pressure, respectively. The injection gas with a molar mass of 20.6 g/mol and a relative density of 0.71 came from a neighboring reservoir. The compositions of the well product, dissolved gas, and the injection gas are listed in Table 1. For this study, a synthetic oil sample was prepared from the well product and the dissolved gas according to the initial dissolved gas–oil ratio of 70.58 m3/sm3.

Table 1 Compositions of the well product, dissolved gas, and the injection gas

Single-phase flash and saturated pressure measurements were performed on the synthetic oil sample at the reservoir temperature of 120.8 °C. The dissolved gas–oil ratio and the saturated pressure were measured to be 69.0 m3/sm3 and 14.1 MPa, respectively, which are so close to those determined under the initial reservoir conditions that the synthetic oil sample satisfies the requirement of phase behavior studies.

4.1.1 Influence of hydrocarbon gas injected on saturated pressure

The integrated experimental apparatus (Guo et al. 2000) provided by the Ruska Instrument Corporation, United States, was used to understand the influence of hydrocarbon gas injected on saturated pressure at a reservoir temperature of 120.8 °C. This apparatus consisted of a fluid property measurement device and a high-pressure falling-ball viscometer. Figure 1 shows the correlation of relative volume with pressure under various mole fractions of hydrocarbon gas injected.

Fig. 1
figure 1

Correlation of relative volume with pressure under various mole fractions of hydrocarbon gas injected

Figure 1 demonstrates that there is a distinct breaking point indicating the saturated pressure, especially when the mole fraction of hydrocarbon gas injected is relatively low. Meanwhile, the fluid phase behavior changed significantly as the experimental pressure dropped. With an increase in the mole fraction of hydrocarbon gas injected, the correlation of relative volume with pressure gradually shifted toward the right accompanied by the disappearance of the breaking point, which indicates that the continuous solution of injected hydrocarbon gas results in an increase in the saturated pressure and a reduction of discrimination between gas–liquid phases to a large extent.

4.1.2 Influence of hydrocarbon gas injected on fluid properties

Using the constant composition expansion test, differential liberation test, and the swelling test under the reservoir temperature of 120.8 °C, the influence of various mole fractions of hydrocarbon gas injected on variation of fluid properties was investigated, as presented in Figs. 2 and 3. The results show that, with the escalation of hydrocarbon gas injected, the saturated pressure increased gradually along with a decrease in oil density and viscosity, which shows a closer similarity between gas and liquid phases, and as such better fluid properties will be achieved.

Fig. 2
figure 2

Variation of oil viscosity with pressure with various mole fractions of hydrocarbon gas injected

Fig. 3
figure 3

Variation of oil density with pressure with various mole fractions of hydrocarbon gas injected

4.2 MMP measurement

A long slim-tube displacement experiment was conducted to determine the minimum miscibility pressure (MMP) between the synthetic oil sample and hydrocarbon gas. Generally, if the recovery factor is greater than 80 % when hydrocarbon gas breakthrough occurs or the ultimate oil recovery reaches 90 %–95 % after 1.2 pore volume (PV) hydrocarbon gas is injected, it is treated as a state of miscibility. The experimental setup was provided by the Ruska Company, United States, and consisted of an injection system with a positive displacement pump, a slim tube, a backpressure regulator, a differential pressure transducer, a temperature-controlling system, a sample collection system, and a gas chromatograph. The long slim-tube model was approximately 18 m in length and 4 mm in diameter, with a pore volume of 125 cm3 at 20 °C and at atmospheric pressure.

Prior to displacement, the long slim-tube model was fully saturated with the synthetic oil sample at the reservoir temperature of 120.8 °C and under the ambient pressure above the bubble point. The experimental pressures were 25.0, 26.6, 30.0, and 33.0  MPa, respectively. The long slim-tube displacement experiments were performed at a constant gas injection rate of 0.167 cm3/min until 1.2 PV of hydrocarbon gas was injected. It should be noted that the pressure regulator must be adjusted sequentially during the displacement process in order to retain the ambient pressure close enough to the experimental pressure with its fluctuation range less than 0.05 MPa. As shown in Fig. 4, miscibility between the synthetic crude oil and hydrocarbon gas would be achieved as the experimental pressure reached 30.0 MPa. The MMP was further obtained using the interpolation method and its value was 29.0 MPa, which is significantly higher than the current reservoir pressure 27.0 MPa. That is to say, miscibility cannot be achieved under the current reservoir conditions.

Fig. 4
figure 4

Observed recovery factor versus different experimental pressures

4.3 Immiscible WAG coreflood experiment

Core samples were prepared to conduct the immiscible WAG coreflood experiments using a total of 12 representative samples taken from the same low-permeability sandstone reservoir. The physical properties of the actual reservoir core samples are listed in Table 2. The synthetic core sample was approximately 66.8 cm in length and 2.5 cm in diameter with a pore volume of 71.6 cm3, while the corresponding average porosity, average permeability, and rock compressibility were determined to be 21.95 %, 39.35 × 10−3 μm2, and 5.2 × 10−6 MPa−1, respectively. The brine was composed of NaHCO3 and distilled water with a salinity of 4664 mg/L. Oil samples and hydrocarbon gas injected were the same as those used in the phase behavior studies. Figure 5 presents the schematic diagram of the WAG coreflood experiment. The core sample holder had one inlet located in the left side and one outlet in the right side. The production was performed at a constant outlet pressure, and the injection was performed at a constant surface injection rate. In this displacement experiment, the initial oil saturation, residual oil saturation of the water–oil system, critical gas saturation, and the residual oil saturation of the oil–gas system were accurately measured to be 0.60, 0.44, 0, and 0.40, respectively.

Table 2 Properties of the actual reservoir core samples
Fig. 5
figure 5

Schematic of the immiscible WAG coreflood experiment system

Based on the measured MMP, an immiscible WAG coreflood experiment was carried out under the reservoir temperature of 120.8 °C and a backpressure of 27 MPa. The production performance, such as pressure drop, displacement efficiency, water cut, and cumulative gas–oil ratio, was simultaneously recorded with the advancing of the displacement. For the water flooding stage, the gas was injected at a constant rate of 0.3 cm3/min. As the water cut reached 85.7 % at the water flooding stage, WAG injection was initiated with a WAG ratio of 3:1 (0.24 PV water vs. 0.08 PV gas) and with four WAG cycles. Soon afterward, the subsequent water flooding was further carried out. Figures 6 and 7 show the production performance of the immiscible WAG displacement experiment. The recovery efficiency was significantly improved during the immiscible WAG processes. With regard to the four slugs of immiscible WAG injection, it was mainly the second WAG cycle that resulted in the greatest improvement of production performance.

Fig. 6
figure 6

Variation of the water cut and displacement efficiency during the immiscible WAG processes

Fig. 7
figure 7

Variation of the displacement pressure drop and the cumulative gas–oil ratio during the immiscible WAG process

5 Estimation of water–oil–gas relative permeability curve

Considering the above-mentioned immiscible WAG coreflood experiment and history matching results of fluid properties as well as MMP, a one-dimensional compositional model was established using the reservoir simulator CMG. A grid system of 50 × 1 × 1 was selected to represent the physical model in the experiment, resulting in a grid block size of 1.34 cm × 2.23 cm × 2.23 cm. The controlling conditions of compositional simulation were the same as those of laboratory WAG coreflood experiments most widely used. Moreover, the influence of capillary pressure was neglected.

On this basis, the proposed numerical inversion method was employed to interpret coreflood data of the immiscible WAG experiment and to implicitly estimate the water–oil–gas relative permeability curve. Figures 8 and 9 display the estimated water–oil and oil–gas relative permeability curves, respectively, and the dashed lines denote the presumed water–oil and oil–gas relative permeability curves when the iteration was initialized using the LM algorithm for automatic history matching. Fitting results of production performance including pressure drop, water cut, and cumulative gas–oil ratio are plotted in Figs. 10 and 11, respectively. To compare the estimation accuracy, Eq. (14) was used to calculate the average absolute error between the predicted result and the observed production data including water cut, pressure drop, and cumulative gas–oil ratio:

Fig. 8
figure 8

Estimated water–oil relative permeability curve for the water–oil two-phase system

Fig. 9
figure 9

Estimated oil–gas relative permeability curve for the oil–gas two-phase system

Fig. 10
figure 10

Fitting results of the observed displacement pressure drop and water cut

Fig. 11
figure 11

Fitting results of the observed cumulative gas–oil ratio

$$R = \frac{1}{{n_{p} }}\sum\limits_{i = 1}^{{n_{p} }} {\left| {\zeta_{i} } \right|} \quad \left( {\zeta_{i} = s_{i} - s_{i}^{\prime } } \right),$$
(14)

where R is the average absolute error; \(s_{i}\) is the real value of the \(i\)th data point (fraction); \(s_{i} '\) denotes the estimated value of the \(i\)th data point (fraction); \(n_{p}\) is the total number of data points; and \(\zeta_{i}\) is the absolute error of the \(i\)th data point (fraction).

From Figs. 8, 9, 10, and 11, it can be found that the predicted production data including pressure drop, water cut, and cumulative gas–oil ratio are in good agreement with the observed values, with an average absolute error of 13.6 %, 2.3 %, and 1.7 %, respectively, which indicates that the estimated three-phase relative permeability curve is reliable. It also demonstrates that the proposed numerical inversion method is reliable and can meet engineering requirements, which provides a basic calculation theory for implicit estimation of water–oil–gas relative permeability curve during immiscible WAG processes.

6 Conclusions

  1. (1)

    The cubic B-spline model (CBM) was used to describe the three-phase permeability curve. The optimization of production performance including pressure drop, water cut, and cumulative gas–oil ratio was performed by adopting the LM algorithm to subsequently adjust the vector of unknown model parameters of the CBM. Finally, a novel numerical inversion method was proposed to implicitly estimate the water–oil–gas relative permeability curves during immiscible WAG flooding processes.

  2. (2)

    Actual core samples were used for phase behavior studies, MMP measurements, and immiscible WAG coreflood experiments to understand the major recovery mechanisms and thus to generate the fluid properties under reservoir conditions. Based on history matching results of fluid phase behavior and MMP, the proposed method was used to interpret coreflood data from the immiscible WAG experiment in order to implicitly estimate the water–oil–gas relative permeability curve. Results indicate that the proposed method is reliable and can meet engineering requirements. It provides a basic calculation theory for implicit estimation of three-phase relative permeability curve during immiscible WAG processes.