Академический Документы
Профессиональный Документы
Культура Документы
Summary
This paper presents a new linearized iterative algorithm for building reservoir models conditioned to multiphase production data
and geostatistical data. The significant feature of the proposed
algorithm is that the computation of the sensitivity coefficients of
production data, with respect to model parameters, can be avoided.
This leads to dramatic reduction of computational cost. Instead of
generating the sensitivity matrix as required for the least-squares
algorithms, the proposed approach relies on solving the inversion
equations, which are derived from the necessary conditions for a
functional extremum.
It is proved that the proposed method requires considerably less
computational effort than the traditional algorithms such as the
Gauss-Newton method, the Levenberg-Marquardt method, and the
generalized pulse-spectrum technique (GPST). This is because the
computation of the sensitivity coefficients makes the traditional
algorithms computationally intensive. However, for the proposed
linearized iterative scheme, the computational requirement only
depends on the timesteps used in the reservoir simulator rather than
the number of parameters or the number of observed data.
The linearized iteration scheme converges quickly because the
inversion equations can be solved through the Newton-Raphson
method. At each iteration, the new approach requires solving the
finite difference equations and the linear adjoint equations only
once, respectively. Since the solver for the flow equations can be
used to solve both the adjoint equations and the inversion equations, the proposed algorithm can be easily applied to commercial
reservoir simulators. In this paper, two numerical examples for
incorporating water oil rate data into geostatistical models are
given to prove the efficiency of the proposed algorithm.
Introduction
Integrating production data into reservoir models is an inverse
problem and requires efficient optimization algorithms to minimize the least-squares objective function. In the past two decades,
many optimization methods were proposed for the integration. In
general, these optimization methods can be classified into three
categories: the gradient-based methods, the global optimization
methods, and the sensitivity coefficient-based methods. As early as
the 1970s, the gradient-based methods were used in automatic
history-matching problems. For single-phase flow, Chen et al.1 and
Chavent et al.2 proposed the optimal control method to calculate
the gradient of the objective function with respect to model parameters and used the gradient-based optimization methods to minimize the least-squares objective function. Later, Wasserman et al.3
extended the optimal-control method to automatic history matching of a pseudosingle-phase reservoir. Watson et al.4 estimated
water and oil relative permeabilities based on displacement experiment data. In the groundwater area, Carrera and Neuman5 used the
optimal-control method for solving the parameter identification
problem of groundwater flow. Sun and Yeh6 have also applied similar procedures to estimate aquifer properties. Yeh7 presented a
clear survey on parameter identification in the groundwater area.
Copyright 2001 Society of Petroleum Engineers
This paper (SPE 74143) was revised for publication from paper SPE 62846, first presented
at the 2000 SPE/AAPG Western Regional Meeting, Long Beach, California, 1923 June.
Original manuscript received for review 28 June 2000. Revised manuscript received
26 February 2001. Manuscript peer approved 26 March 2001.
solver used in the reservoir simulator to solve the adjoint equations. Actually, the solver can also be used to solve the inversion
equations. However, it must be pointed out that one of the difficulties in solving the inversion equations is the ill-conditioned
Jacobian matrix. Theoretically, the covariance matrix can be used
to regularize the ill-posed problem, and therefore, many algorithms
can be used to solve the inversion equations. Currently, the preconditioned conjugate gradient approach or a partial singular value
decomposition15,16 is still widely used for solving ill-posed systems. In this paper we modify Moras approach16 to solving inversion equations.
There are three major parts in this paper. First, the partial differential equations for compressible two-phase flow in reservoirs,
as well as the discrete formulation for the equations, are described
briefly, and the inverse problem for integrating production data
into reservoir models is stated. Next, the adjoint equations are
developed by means of the optimal-control theory. Then, the inversion equations are derived according to the necessary conditions
for a functional extremum. Finally, two numerical examples are
included to demonstrate some of the features of the linearized iterative schemein particular, the convergence rate for integrating
oil flow rate into geostatistical models.
Forward Model
The two-phase (water/oil) flow equations in a reservoir with spatially dependent permeability and porosity in the flow domain, W,
can be written as1719
k krw
S
(p + o g z ) = w + qw ,.
t Bw
Bw w
. . . . . . . . . . . (1)
k kro
S
(p + o g z ) = o + qo .
t Bo
o o
. . . . . . . . . . . . (2)
and
S w + So = 1 .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (3)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (4)
( x, y , z )
. . . . . . . . . . . . . . . (5)
S w ( x, y , z,0) = S wi
( x, y , z ) .
. . . . . . . . . . . . . . . (6)
The subscripts o and w=the oil and water phase. S=the saturation,
while m=viscosity. The relative permeabilities krw and kro=functions of water saturation, Bw and Bo=formation volume factors, and
qw and qo=water and oil flow rate, respectively. G =the boundary of
the reservoir. For simplicity, the capillary pressure is ignored.
Eqs. 1 and 2 are a set of nonlinear-coupled partial differential equations, which can be solved by use of finite difference methods. When
using the standard five-point scheme for the 2D reservoir, we may
write the discrete formation of the partial differential equations as
Fl n +1 = X ln +1 X ln ,
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (7)
where
Fl n+1
= f l ,1n +1 L
fl ,nM+11
fl ,nM+1
X ln+1
= xln,1+1 L xln,+M11
xln,+M1
and
If the permeability and porosity are given, the solution of equations can be determined uniquely by applying the implicitpressure, explicit-saturation (IMPES) method. The performance of
the reservoir can be predicted accurately. In this study, the goal is
to obtain more realistic reservoir models by minimizing the production mismatch while the geostatistical data are honored. We
need to minimize the following objective function, which is given as
H H
H H
H
H
J o = (d d obs )T CD1 (d d obs ) + ( m m)T CM1 (m m), . . . . . (8)
to obtain the maximum posteriori (MAP) estimation of reservoir
models. CD=the diagonal covariance matrix for measured
data,
J = J0 +
N 1
n +1 T
l
) [ Fl n +1 X ln +1 + X ln ] ,
. . . . . . . . . . . . (10)
l =o , w n = 0
J J0 +
J
J
0
p n+1 + n0+1 S wn +1
n +1
l = o , w n = 0
Sw
N 1
F n +1
J
J
+ 0 k + 0 + (ln +1 )T ln +1 p n +1
k
p
F n +1
X n +1
+(ln +1 )T ln +1 S wn +1 (ln +1 )T nl +1 p n +1
p
Sw
X n
F n +1
+(ln +1 )T ll S wl + (ln +1 )T l k
k
Sw
X n +1
X n
) l + (ln +1 )T l ,
n +1 T
l
. . . . . . . . (11)
T
J T
J0
n
n
0
p
+
n Sw
n
p
S
l = o , w n = 0
N 1
J
J
+ 0 k + 0
k
F n
+( ) ln p n + (ln )T
p
n T
l
In order to satisfy Eq. 13, the variations dP and dSw must vanish.
This leads to the discretized adjoint equations
T
Fl n n X ln n X ln n +1
J0
n l n l + n l = n ,
p
p
p
p
l =o,w
. . . . . . . . . . . . . . . . . . . . . . . (14)
and
Fl n n X ln n X ln n +1
J
l n l + n l = 0n ,
n
Sw
l =o,w
w
Sw
Sw
. . . . . . . . . . . . . . . . . . . . . . . (15)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (16)
J J0 +
T
J T
J0
0
+
l =o ,w n =0
N 1
F n+1
+(ln+1 )T l k (ln+1 )T
k
X n
+(ln+1 )T l .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (13)
oN 1 = wN 1 = 0,
J =
J = 0.
for n=1,2,,N-1. Eqs. 13 through 15 are called the first-order necessary conditions for the optimal control problem defined in Eq. 10.
It must be pointed out that Eqs. 14 and 15 are a set of ordinary
equations. The initial conditions must be required for solving the
Eqs. 14 and 15. Fortunately, we simply specify the initial condition as
X n +1
X n
) nl +1 S wn +1 + (ln +1 )T nl p n
p
Sw
n +1 T
l
Fl n n
n Sw
Sw
X l
X n
(ln )T ln p n (ln )T nn S wl
p
Sw
X n
X n
+(ln +1 )T ln p n + (ln +1 )T nl S wn
p
Sw
X ln+1
. . . . . . . . . . . . . . . . . . . . . . . . . (17)
T
T
n
L 1
X n +1
J
J
X
= l ln +1 l ln+1 + 0 , . . . . . (19)
l =o ,w n =0
where
T
F n +1
X n +1
) l k (ln +1 )T l
k
n +1 T
l
+ (
X
+ (ln +1 )T
n
l
N
N
( Fl N AlN ) N
N T ( Fl X l )
N
+(lN )T
Sw
p + (l )
N
N
S
w
0
0
( Fl 0 X l0 ) 0
0 T ( Fl Al )
0
+(l0 )T
Sw .
p + (l )
0
0
S
w
. . . . . . . . . . . . . . . . . . . . . . . (12)
J0 J0
1 H
,
= CM ( m m ) .
. . . . . . . . . . . . . . . . . . . . . . (20)
Here, we use the fact dp0=0 and dSw0=0 because the initial values
of pressure and saturation are constant. Eqs. 18 and 19 provide the
gradient of the objective function with respect to the permeability
and porosity, and one can use the gradient-based methods to minimize the function J. However, the gradient-based methods require
estimating optimal step length, which is computationally costly.
Instead of using the gradient-based approaches, we set the gradient
equal to zero. This yields the following nonlinear equations with
respect to permeability and porosity:
F n +1 T
J 0
n +1
l
= 0,
l +
k
l =o,w n=0 k
N 1
. . . . . . . . . . . . . . . . . . (21)
345
T
X n T
X ln+1 n+1 J 0
n +1
l
= 0 . . . . . . (22)
l
l +
l = o , w n = 0
N 1
r
r
r
J J r 0
J (m0 )
2 J
r = r ( m + m) =
r + r r m +L + . . . . . . (23)
m m
m
mm
Neglecting the higher order terms and substituting Eqs. 21 and 22
in Eq. 23, the change of the reservoir parameters can be estimated
by solving the following linearized system
1
2 J J
H
m = H2
H,
m m
. . . . . . . . . . . . . . . . . . . . . . . . . . . . (24)
2 J
where H 2 =the Jacobian matrix, which can be obtained by
m
taking the partial derivatives of Eqs. 21 and 22 with respect to permeability and porosity. It is not difficult to obtain the second order
partial derivative expressions (see Appendix B):
N 1
2J
=
2
k
l = o , w n = 0 k
N 1
2J
=
2 l =o ,w n=0
F n +1 T
2 J
0
l ln +1 +
2 ,
k
k
. . . . . . . . . (25)
X n T
X n+1 T
2 J0
n +1
n +1
l
l
l
l + 2 ,
. . . . . . . . . . . . . . . . . . . . . . . (26)
N 1
J0
J
=
,
k l =o ,w n =0 k
. . . . . . . . . . . . . . . . . . . . . . . . . . (27)
N 1
2 J0
2J
=
.
k l =o , w n=0 k
. . . . . . . . . . . . . . . . . . . . . . . . . (28)
2J
k
,
2
J0
. . . . . . . . . . . . . . . . . . . . . . . . . . . (29)
and
A=
N 1
n +1 T n +1
2 k ( Fl ) l
l = 0, w n = 0
N 1
n T n +1
n +1 T n +1
( X l ) l ( X l ) l
l = 0, w n = 0
. . . . . . . . . . . . . . . . . . . . . . . (30)
The nonlinear inversion equations can be rewritten as
H
J
( A + Cm1 ) m = H .
m
346
. . . . . . . . . . . . . . . . . . . . . . . . . . . (31)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (32)
. . . . . . . . . . . . . . . . . . . . . . . (33)
Note that the same solver used for solving the flow equations can
be applied to solve the inversion equations. Other efficient solvers
can also be used to solve Eq. 33 because the matrix A is sparse and
symmetric. In such a case, the inverse of the covariance term must
be calculated approximately because of the difficulty of computing
the inverse of the covariance matrix. In the next section, we will
show that satisfying inversion results can be obtained without
doing the inversion for the covariance matrix CM .
The main steps for the linearized iterative scheme are summarized as follows.
1. Solve the flow equation to obtain the production data at each
well using the implicit scheme or IMPES scheme, and store the
pressure and saturation data at all gridblocks on hard disk.
2. Take the partial derivatives of the flow equations with respect
to the pressure and saturation of each gridblock to formulate the
coefficient matrix of adjoint equations.
3. Solve the adjoint equations backward in time to obtain the
adjoint variables.
4. Set the gradient of the objective function, with respect to the
model parameters, to zero to obtain the nonlinear equations on
the permeability and porosity.
5. Take the first-order partial derivatives of the nonlinear inversion equations with respect to permeability and porosity to formulate the Jacobian matrix.
6. Solve the linearized inversion equations to obtain the parameter increment, dm, and update the model parameters
k+1=m
k+1+dm
.
.m
k+1 into the flow equations and solve the flow
7. Substitute m
equations. Evaluate the objective function. Check the convergence criterion. Stop if the criterion is satisfied. Otherwise,
return to Step 2.
September 2001 SPE Journal
Numerical Examples
In the following two examples, we assume that the permeability
distribution of a reservoir is log-normal, with log variance of 0.40,
and the log-mean of permeability is equal to 4.0 . The mean of
porosity is 0.20, with a prior variance of porosity equal to 0.0015.
The covariance matrix can be generated from the variogram.19 The
length of each cell is 60 ft. Fluid properties are shown in Table 1.
Fig. 1 shows the gridblocks for the 2D reservoir and the well locations. The reservoir consists of 625 gridblocks, and the number of
parameters to be estimated is 1,250 (permeability and porosity).
The total flow rate for each production well is fixed at 250 B/D,
and the injection rate at each well is fixed at 700.0 B/D. The
observed data (oil rate) are generated from the true permeability
and porosity fields by running the simulator 600 days. The total
measurement time for the observed data is between 135 and 255
days and the maximum time interval of measurement data is
5 days. Thirty-six oil rates are taken as the observed data for each
well, and the total of 334 observed data are integrated. We assume
the standard deviation of the observed data is one percentage of the
oil rate.
Value
4000.00 psi
0.20
0.16
-1
0.000001 psi
-1
0.0000004 psi
1.00 cp
0.82 cp
0.30 ft
20.00 ft
1.00 RB/STB
1.27 RB/STB
9
4
13
13
19
19
25
25
13
19
25
13
19
25
0.13 0.16 0.19 0.23 0.26 0.30 2.70 3.24 3.77 4.31 4.84 5.38
Fig. 2True porosity field.
September 2001 SPE Journal
13
13
19
19
25
25
13
19
25
13
19
25
0.13 0.16 0.20 0.23 0.27 0.30 2.70 3.24 3.77 4.31 4.84 5.38
Fig. 4MAP estimate of porosity conditioned to oil rate.
13
13
19
19
25
25
1
13
19
25
13
19
25
0.13 0.16 0.20 0.23 0.27 0.30 0.13 0.16 0.20 0.23 0.27 0.30
Fig. 6MAP estimate of porosity conditioned to oil flow rate.
348
matrix of adjoint equations is nonsymmetric. The specific preconditioning techniques should be used to improve the convergence
rate if iterative methods are used to solve the adjoint equations. By
now, we use the direct and iterative methods to solve the adjoint
system, and they work very well.
Solving the adjoint equations backward in time means that the
pressure and saturation data of all timesteps at each gridblock must
be stored. This is a drawback of the proposed approach. In general, the history data can be stored on the hard disk, and no extra
computer memory will be taken. Nevertheless, reading the data
from data file may take some time. This is a tradeoff for storing the
data in the computer memory. In the near future, this disadvantage
should be overcome.
A single solver can be used to solve the flow equations, the
adjoint equations, and the inversion equations, and hence the proposed linearized iterative method can be readily extended to any
reservoir simulator. The extra computational work for the proposed
algorithm is to calculate the first-order partial derivatives of the
flow equations with respect to pressure, saturation, permeability,
and porosity, as well as the second partial derivatives of flow equations with respect to permeability and porosity. Actually, the firstorder derivatives of the flow equations with respect to pressure and
saturation will be done if the flow equations are solved by means
of an implicit scheme.
The preconditioning operator is an important factor for the
algorithm. The covariance matrix was chosen as a preconditioning
matrix because of no extra cost to the algorithm. In additional to
the covariance matrix, many techniques can be developed to generate preconditioning matrices to speed up the convergence rate of
the proposed iterative linearized method.
In this paper, two synthetic cases for integrating oil flow rate
into geostatistical models are given. The efficiency of the new
algorithm will be studied by using more cases.
Nomenclature
A = matrix
B = formation volume factor
c = compressibility
C = covariance matrix
d = vector of data
f = flow term
Fm = flux term for phase m
G = sensitivity matrix
h = reservoir thickness
I = identity matrix
J = objective function
k = permeability
= vector of model parameters
m
= mean of reservoir parameters
m
N = index of final timestep
300
100,000
250
Objective Function
Permeability estimation
10,000
Porosity estimation
1,000
200
150
Observed data
100
1st iteration
30th iteration
50
0
100
0
10
15
20
25
Iteration Number
30
35
50
100
150
200
250
300
Time, days
Fig. 9Oil flow-rate match at Well 1 for the first example.
349
p
Q
r
S
x
X
G
l
m
r
f
W
d
=
=
=
=
=
=
=
=
=
=
=
=
=
pressure
source/sink term
radius
saturation
accumulation term
accumulation terms
boundary of the reservoir
vector of adjoint variables
viscosity
density
porosity
flow domain
increment of reservoir parameter
Subscripts
D = data
l = phase, oil or water
M = model
obs = observed
or = residual oil
w = water phase
wc = initial water
o = oil phase
Superscripts
n = the nth timestep
T = transpose
Acknowledgments
I would like to thank Mr. T. Mathisens and Dr. K.N. Kulkarni for
their comments and their review of the manuscript.
References
1. Chen, W.H. et al.: A New Algorithm for Automatic History
Matching, SPEJ (December 1974) 593; Trans., AIME, 257.
2. Chavent, G.M., Dupuy, M., and Lemonnier, P.: History Matching by
Use of Optimal Theory, SPEJ (February 1975) 74; Trans., AIME, 259.
3. Wasserman, M.L., Emanuel, A.S., and Seinfeld, J.H.: Practical
Application of Optimal-Control Theory to History-Matching
Multiphase Simulator Models, SPEJ (August 1975) 347; Trans.,
AIME, 259.
4. Watson, A.T. et al.: History Matching in Two-Phase Petroleum
Reservoirs, SPEJ (December 1980) 521.
5. Carrera, J. and Neuman, S.P.: Estimation of Aquifer Parameters under
Transient and Steady State Conditions: 1 Maximum Likelihood
Method Incorporating Prior Information, Water Resour. Res. (1986)
22, 199.
6. Sun, N.Z. and Yeh, W.G.: Coupled Inverse Problem in Groundwater
Modeling Sensitivity Analysis and Parameter Identification, Water
Resour. Res. (1990) 26, 2507.
7. Yeh, W.G.: Review of Parameter Identification Procedures in
Groundwater Hydrology, Water Resour. Res. (1986) 22, 95.
8. Ewing, R.E. et al.: Estimating Parameters in Scientific Computation,
IEEE Computational Science Engineering (1994) 1, 19.
9. Ito, K. and Kunisch, K.: The augmented lagrangian method for parameter estimation in elliptic systems, SIM J. Control Optim. (1990) 28,
113.
10. Kunisch, K. and Tai, X.-C.: Sequential and parallel splitting methods
for bilinear control problems in Hilbert spaces, SIM J. Numer. Anal.
(1997) 34, 91.
11. Carter, R.D. et al.: Performance Matching with Constraints, SPEJ
(April 1974) 187; Trans., AIME, 257.
12. Tang, Y.N. et al.: Generalized Pulse-Spectrum Technique for 2-D and 2Phase History Matching, Applied Numerical Mathematics (1989) 5, 529.
13. Chu, L., Reynolds, A.C., and Oliver, D.S.: Computation of Sensitivity
Coefficients for Conditioning the Permeability Field to Well-test
Pressure Data, In Situ (1995) 19, 179.
14. Wu, Z., Reynolds, A.C., and Oliver, D.S.: Conditioning Geostatistical
Models to Two-Phase Production Data, SPEJ (June 1999) 142.
15. Jackson, D.D. Interpretation of Inaccurate, Insufficient, and
Inconsistent Data, Geophys. J. R. Astr. Soc. (1972) 28, 97.
350
Appendix A
This appendix presents a brief procedure of the modified preconditioned conjugate-gradient method for the nonlinear inversion
equations. For a more complete account, readers can refer to Ref. 16.
Here, we present the main steps.
For k=1, maximum iteration number,
H H
d = d cal . . . . . . . . . . . . . . . . . . . . . . . . calculated data (A-1)
H H
H
H
d k = d d obs , mk = mk m
H H
1 H H
J 0 = (d d obs )T CD1 (d d obs )
2
~
H
1 H
+ (m m)T CM1 (m m) . . . . . . objective function (A-2)
2
J J
,
gk =
pk = CM g k
vk = pk +
k =
. . . . . . . . . . . . . . . . . . . . . . . gradient (A-3)
. . . . . . . . . . . . . . . . . . . . . . preconditioned (A-4)
pkT ( g k g k 1 )
vk 1
pkT g k
vkT g k
~
H
H
mk +1 = mk k vk
k = k + 1.
In theory, the first term of the right hand side of Eq. (B-2) can be
calculated
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .(A-8)
2 J0
J 0
=
. . . . . . . . . . . . . . . . . . . . . . . . . . (B-3)
2
Here, the optimal step length for the MAP estimates of the porosity
is as follows
~
CM = diag 1/ 12 1/ 22 L 1/ M2 .
. . . . . . . . . . . . . (A-9)
T = 12 22 L M2 , . . . . . . . . . . . . . . . . . . . . . . . (B-1)
the second-order derivatives of objective function with respect to
j can be estimated
2 J 2 J0
=
2 2
T
n
X l n +1
l
l =o , w n = 0
N 1
X n +1 T
n +1
l
l .
. . . . . . . . . . . . . (B-4)
where
b=
T
T
n
n +1
X l n +1 X l n +1
l l .
l = o , w n = 0
N 1
SI Metric
ft
cp
psi
. . . . . . . . (B-5)
Conversion Factors
3.048*
E - 01 = m
1.0*
E - 03 = Pas
6.894 757
E + 00 = kPa
SPEJ
. . . . . . . . . . . . . . . . . . . . . . (B-2)
351