SciELO - Scientific Electronic Library Online

vol.37 número3Predictive control with constraints of a multi-pool irrigation canal prototypeA practical strategy for controlling flow oscillations in surge tanks índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Servicios Personalizados



  • No hay articulos citadosCitado por SciELO

Links relacionados

  • No hay articulos similaresSimilares en SciELO


Latin American applied research

versión impresa ISSN 0327-0793

Lat. Am. appl. res. v.37 n.3 Bahía Blanca jul. 2007


The estimation of oil water displacement functions

G. B. Savioli1 and E. M. Fernández-Berdaguer2

1 Lab. Ing. Reservorios, Facultad de Ingeniería, Univ. de Buenos Aires, 1428 Buenos Aires, Argentina-CONICET

2 Instituto de Cálculo, Facultad de Ciencias Exactas y Naturales and Departamento de Matemática, Facultad de Ingeniería, Univ. de Buenos Aires, 1428 Buenos Aires, Argentina-CONICET

Abstract — We introduce an algorithm to solve an inverse problem for a non-linear hyperbolic partial differential equation. It can be used to estimate the oil-fractional flow function from the Buckley-Leverett equation. The direct model is non-linear: the sought for parameter is a function of the solution of the equation. Traditionally, the estimation of functions requires the election of a fitting parametric model. The algorithm that we develop does not require a predetermined parameter model. Therefore, the estimation problem is carried out over a set of parameters which are functions. The parameter is inferred from measurements of saturation at different spatial points as a function of time. The estimation procedure is carried out linearizing the solution of the direct model with respect to the parameter and then computing the least-squares solution in functional spaces. The sensitivity equations are derived. We test the algorithm with several numerical experiments.

Keywords — Parameter Estimation. Non-Linear Equation. Conservation Law. Two-Phase Flow.


The mathematical simulation of fluid flow through porous media is of vital importance to the management of underground resources, such as aquifers and petroleum reservoirs.

The system of equations that represents the incompressible oil-water flow is derived combining the mass conservation equation with Darcy's law for each phase (Aziz and Settari, 1989). The unknowns are oil and water pressures and saturations. In the equations some parameters, e.g. absolute and relative permeabilities, appear as coefficients. The values of those parameters are essential to perform field-scale analysis.

Fluid saturations are the solution of the differential problem. As the oil-water relative permeability curves are functions of the saturations, the direct model is a non-linear partial differential system. Our goal is to estimate the relative permeabilities from data measured during a displacement test of oil by water in a rock sample.

Historically the model of the physical phenomena was frequently linear with the inverse problem being non-linear; recent work also includes nonlinear physical phenomena models. The problem that we treat here belongs to the last category.

The traditional approach to estimate a function (e.g. relative permeability) requires a parametric model depending on constant values. These values are determined minimizing in finite dimensional spaces (Chardaire-Riviere et al., 1992; Savioli and Bidner, 1994, 1995). This approach has the drawback of imposing a subjective parametric model. Some authors have proposed alternatives to deal with the estimation problem without imposing a parametric model, by using discretized direct models (Kruger et al., 2003; Valestrand et al., 2003).

This work proposes a new alternative to the traditional approach, which is novel in the field of non-linear equations. Up to now, it has been successfully applied to problems where the direct model is based on an initial boundary value partial differential model which is linear (Fernández-Berdaguer, 1998; Fernández-Berdaguer et al., 1995, 1996; Tarantola, 1987).

In our problem there are two main challenges: the dependency of the parameter on the solution and the discontinuity of the initial data. The non-linearity of the equation, that is, the dependency of the parameters on the solution, will present particular difficulties when deriving the sensitivity equations. In addition, we will have to deal with discontinuous initial conditions in the direct model, which may cause discontinuous solutions. Each of these problems will be dealt with separately, by means of assuming simplifying hypotheses for each situation. In this work we will discuss the issue of the parameter depending on the solution.

Under the simplifying hypotheses, the system of equations that represents the oil-water flow can be reduced to a hyperbolic equation in terms of oil saturation and an elliptic pressure equation.

We will deal with the saturation equation which is the one that presents greater difficulty. In this equation, the parameter function is the oil fractional flow. The oil fractional flow is considered a function of the oil saturation only, because it is related to the ratio between water and oil relative permeabilities. That results in the equation being non-linear.

In this work we use the simplifying hypotheses and therefore we proceed with the estimation of the parameter in the non-linear saturation hyperbolic equation of first order.

The forward model corresponds to a laboratory experiment carried on a rock sample.

The measurements usually taken during the laboratory experiment are the water flow rate at inlet, the oil and water flow rate at outlet and the pressure drop. Lately, more refined technologies are being introduced to measure saturations; e.g. computerized tomography (Mejía et al., 1995), gamma ray (Chardaire-Riviere et al., 1992) and nuclear magnetic resonance (Bech et al., 2000).

The paper is organized as follows: in Section II we present the forward model and its simplifications. Section III states the estimation problem. In Section IV the numerical implementation of the algorithm is described and in Section V the numerical experiments are shown.


Our forward model is a simplified model for the simulation of the displacement of oil by water in petroleum reservoirs.

The equations that rule the two-phase flow through porous media, assuming a gravity-free environment, isotropic media fully saturated with two immiscible fluids (e.g. oil and water) with constant viscosities and densities, are


where the unknowns are the pressures, pw, po, and the saturations, Sw, So. The absolute permeability, K; the porosity, Φ, and the water and oil viscosities, μw, μo are constant parameters, whereas the relative permeabilities for oil and water, krw, kro, are functions of the oil saturation only.

We denote by Sor the residual oil saturation, by Swc the connate water saturation and by pa the atmospheric pressure. With this notation, the initial conditions are


Boundary conditions are selected to reproduce the laboratory experiment as follows.

The inlet boundary condition is constant injection water rate and residual oil saturation,


where A denotes the cross-sectional area for the flow.

At outlet (x = 1), the boundary condition is imposed by the atmospheric pressure,

po(1,t) = pa. (5)

Furthermore, we have the following three equations which relate the different variables.

Pressures in the oil and water phases are related by capillary pressure Pc as follows,

po - pw = Pc(Sw). (6)

Also, oil and water saturations are connected by the condition,

So + Sw = 1. (7)

Finally, since the total flow rate Qt (Qt = Qo + Qw) is constant because the fluids are incompressible, we have,


A. The simplified model

As we stated in the introduction, the model described above will be simplified by imposing extra hypotheses.

First, to avoid the difficulty of dealing with discontinuous solutions we assume that the initial condition for So in (3) is a continuous approximation to the discontinuous initial function So(x,0).

The hypothesis that will allow us to deal with a simpler equation is that Pc(Sw) is constant. The simplification is carried out as follows: First, we add Eqs. (1) to obtain the system:




Equation (9) is the pressure equation.

To obtain the saturation equation we proceed as follows. From (8) and (9) is Qwi / A, which is constant. Replacing this in (10) we obtain


The equation above is the saturation equation. Notice that a symmetric equation is obtained if we choose Sw instead of So: the functions that are increasing in one case are decreasing in the other.

Equation (12) is the usual conservation law equation,


In our case, . The function is the oil-fractional flow.

As we pointed out in the introduction we will deal with the saturation Eq. (12), thus we drop the subindex o.

Equation (13) is equivalently written as


where P = F'.

Now we consider Eq. (14) with initial condition

S(x,0) = f(x) x ∈ [0,1], (15)

where f is a given function.

It is well known that problem (14)-(15) does not have a solution unless stringent conditions are imposed. Also the solution might exist in a classical sense during an interval of time and then develop shocks or rarefaction.

The following is proposition 2.1.1 in the book by Serre (1999, page 26). It establishes the well posedness of (14)-(15) and guarantees a classical solution in an interval of time.

Proposition 1We assume that the function P ∈ C(R) together with its derivative are bounded, and that f is of class C1. We define T* = +∞ if is increasing, and


otherwise. Then (14)-(15) possesses one and only one solution of class C1in the band R×[0,T*] and does not possess any solutions in any greater band than R×[0,T*].


From now on, to highlight the dependency of S on the parameter P, we will denote S by S(P).

We assume that f is of class C1 and monotonous.

We define the set of admissible parameters as


The map

P → S(P) (18)

maps the C function P into the C1 function S.

Our aim is to estimate the function P(z) given measurements of the solution of the initial value problem (14)-(15).

The measurements, which are denoted by Sobs(t), are the values of the saturation at a recording point xrec, for times in the interval [0,T], where T is a given time. Thus, for parameters in the set P, there is a classical solution on any interval [0,T].

The problem is to find P* such that S(P*)(xrec,t) matches the values of Sobs(t), for t ∈ [0,T]. Specifically: find P* such that

S(P*)(xrec,t) = Sobs(t), t ∈ [0,T]. (19)

Let Q be a subset of C1([0,∞)). The parameter to-output-mapping


is continuous. This fact can be proved using the solution of (14)-(15) given by the method of characteristics.

The algorithm that we will use is also called a quasilinearization algorithm. It is based on the linearization of S as a function of P, about a particular function .

The linearization of S(P) about is:


where D'P is the differential of S with respect to P.

Notice that we are differentiating with respect to the parameter P, which is a function. Therefore D'P is a functional derivative, it is the Fréchet derivative (Ortega and Rheinboldt, 1970). We recall that the Fréchet derivative is a generalization of the differential of a function between Euclidean spaces and it behaves in an similar way.

A. The Fréchet derivative of S with respect to P

In the present subsection we describe how to compute the term D'P(S())δP in Eq. (21) for a given . Specifically, the function D'P(S())δP denotes the application of the operator D'P to the function δP.

The procedure to calculate D'P(S())δP involves the solution of an auxiliary differential equation followed by its multiplication by δP composed with S(). The mathematical details are cumbersome and will be presented in a suitable publication.

The starting point to compute D'P(S())δP, for a given δP is to calculate the solution S of the conservation law (14), with initial condition (15) for P = . With the computed S we state the auxiliary equation on the function w:


Finally, for a given δP, with the calculated S and w we arrive at the desired formula, that is:

D'P (S()) δP(x,t) = w(x,t) δP(S()(x,t)). (23)

Notice that Eq. (22) is linear.

Observation: the solution of (22) shows that the sign of w is equal to that of -Sx. Therefore the function w is always negative because Sx is positive. This observation is important for the implementation of the algorithm.

B. The quasilinearization algorithm

The algorithm is iterative, here we describe how each new iteration is updated from the previous one.

For a given the solution P* of Eq. (19) can be written as P* = + δP. Now, we linearize Eq. (19) using (21), at x = xrec we obtain the following equation in the unknown δP:

D'P (S()) δP = Sobs - S(). (24)

The above equation has a solution because Sobs - S() is in the range of D'P (S()), see theorem 2.6 page 35 of Engl et al. (1996).

A least squares solution of Eq. (24) is a solution of the normal equation. That is, the solution of


where (D'P)* denotes the adjoint operator of D'P considering the extension of the operator to the space L2([0,T]).

Using the observation at the end of the previous subsection it can be proved that Sobs(t) - S()(xrec,t) is in the range of D'P, therefore Eq. (25) has a solution.


In this section we describe the discretization to carry out the numerical implementation of the continuous algorithm.

The algorithm is iterative: given an initial guess P0, which is a value that belongs to the set of admissible parameters, we obtain the iterations Pk, k = 1,...; by correcting it with an appropriate δP as in (21).

We recall the basic steps of the algorithm.

1. Give an approximation of P*,
2. Calculate an increment δP solving (25),
Update P as Pnew = + δP.

Let tj, j = 1,...,M; be the discrete times at which we make the observations. We assume that tj are equally spaced, thus, we denote tj - tj-1 by Δt.

A. The discrete model of the parameter function P

First we approximate the function P to make it amenable to the calculations. Its approximation is given in terms of spline functions.

We seek functions P(z) of the form,


To define ψj(z) we make a partition {zj}, j=1,...,M; of the domain of P, such that z1<z2<... < zM. The elements we choose are the first order ones:


B. Discretization of the normal equation

We give an initial guess of P(z):.

Next we specify the procedure for each iteration k≥0.

First we calculate S(Pk)(xrec,t). Since Pk is a piecewise linear function, the solution of (14)-(15) can be calculated by solving the following (non-linear in most cases) equation on S(Pk)


where j is chosen to satisfy:


Now, with S(Pk)(xrec,t) computed above, we define a partition of the domain of Pk by points as follows


where l(j) = j if f is non-increasing and l(j) = M - j + 1 if f is non-decreasing. We notice that in the algorithm the nodes zj and, as a consequence, the functions ψj of Eq. (27) change at each iteration k, to remark it we denote the coefficients and the functions in (26) by and respectively.

Next, we express Pk and the unknown increment δPk using the discretization of the previous subsection. Explicitly, the increment δPk is


To determine , j=1,...,M; we solve (25) for S() = S(Pk) and δP = δPk.

The computation of the discrete version of (25) requires tedious calculations, which are detailed in the Appendix and lead to the simple formula:


Solving for :


By using (33) in (31) we compute δPk and update Pk,

Pk+1 = Pk + δPk (34)

The stopping criterion is that the residual


must be small.

It can be proved that the sequence Pk converges monotonically to P*.

C. Outline of the algorithm

1. Read , j = 1,..., M and the stopping criterion TOL.
2. Give an initial guess P0, set k = 0.
3. Solve the initial value problem (14)-(15) with P = Pk. Compute S(Pk)(xrec,t).
4. Compute the residual J(Pk), Eq. (35).
5. If J(Pk) < TOL then Pk is the solution, STOP.
6. If not,

For j = 1,...,M

  • Define .
  • Compute .
  • Compute w(x,t) solving the initial value problem (22) with P = Pk.
  • Compute applying (33).
  • Define .

end for.

  • Update .
  • k = k+1, go to 3.


We illustrate the performance of the algorithm with two examples.

In the first one, the parameter P is on the set of admissible parameters ( increasing). The hypotheses of Proposition 1 are satisfied, thus a solution for every time exists. In the second one is not increasing therefore a classical solution of the direct model exists for intervals [0,T], with T < T*.

In both examples we select the well known potential model (Lake, 1989) for relative permeabilities.

In the first one kro(S) = S and krw(S) = 0.2 (1 - S), thus the parameter to estimate is . The initial condition is f(x) = 1 - x which is also decreasing.

Figure 1 shows snapshots of the saturation for t = 0.25, 0.5, 0.75, 1.0. In Fig. 2 we plot the 'true' parameter P, the initial guess P0 and the final estimate P*. Convergence was achieved in 8 iterations. The residual was required to be smaller than 10-7. The sampling times are t = k*0.05, k = 1,..., 20. The recording points are xrec = 0.98 and xrec = 0.3. An almost exact match to the 'true' function is obtained

Figure 1: Saturation profiles

Figure 2: Estimation of the derivative of the fractional flow curve

In the second example the hypothesis of being increasing is not satisfied for every t. Despite, it is possible to estimate P on all its range using different positions of the receiver.

In this case kro(S) = S2 and krw(S) = 0.2(1 - S)2 thus the parameter P(z) is the function


and the initial condition is f(x) = x. Therefore, according to Proposition 1, the solution of (14)-(15) exists in the classical sense and is unique for t ∈ ⌊0, T*), where T* ≈ 0.14 which is , that infimum is attained approximately at z = 0.4.

Figure 3 depicts some characteristic curves for t ∈ [0,1]. We can observe that the characteristics intersect as we can expect for t > T*. Figure 4 is a zoom of Fig. 3 up to tT*.

Figure 3: Characteristic lines of the second example

Figure 4: Characteristic lines for t ∈ [0,T*]

Figure 5 shows snapshots of the saturation for various times for P(z) given by (36). Classical solutions exist only up to T*, the saturation curves after T* are entropy solutions, they were computed using the method of characteristics.

Figure 5: Saturation profiles for P(z) defined by (36)

Since the classical solution exists up to time T* the range of S(xrec,t), t ∈ [0,T*] for a given xrec is narrow: it does not cover the interval where the solution exists in the weaker sense (Fig. 5).

Despite the local behaviour of the estimation, placing receivers at different locations it is possible to estimate P on almost all the range of the saturation.

Figure 6 illustrates the previous claim, showing the estimation obtained for different positions of the receiver. Again, the residual was required to be smaller than 10-7 and convergence is achieved in 8 to 12 iterations, depending on the location of the receiver.

Figure 6: Estimation of P(z) using five receivers

The reason why it is possible to estimate different ranges of z depending on the position of the receiver xrec lies in the equation for the characteristic lines passing through xrec

xrec = ξ + P(f(ξ))t. (37)

In conclusion, it is possible to estimate P on different ranges of its domain choosing the location of the recording points.


An algorithm to solve an estimation problem in a non-linear differential equation is introduced. This algorithm is based on the least squares criterion in functional spaces and therefore an infinite dimensional estimation problem is solved. The sensitivity equation that is used to compute the Fréchet derivative is presented. The resulting algorithm has shown convergence in numerical tests, and because of its general theoretical formulation has the potential to be extended to solve more complex problems. This algorithm obtains the sought-after parameters without the imposition of a priori parametric models. Though the use of such models is currently the common practice among field engineers, different models yield different results and there is no objective criterion to choose among them. Thus the result yielded by the different parametric models can be compared to those of our algorithm, so as to select the best fitting model.


We show the steps that lead to Eq. (32) starting from its continuous version (25) and using the discrete versions of P and S(P).

We denote by Ψ the subspace of generated by the set of functions . From Eq. (26) Pk ∈ Ψ. From Eq. (28) S(Pk)(xrec,·) ∈ L2([0,T]), therefore, D'P(S(P))δP(xrec,·) ∈ L2([0,T]), specifically,

D'P:Ψ→L2([0,T]), (38)

as a consequence,

(D'P)*:L2([0,T])→Ψ. (39)

To compute the coefficients of δP we proceed as usual. We calculate the scalar product of (25) with an element of the basis of Ψ.

The computation of the left hand side, for j = 1,...,M; results in the following equation


Using Eq. (23) to replace D'P(S(Pk)) in the above equation and writing explicitly the scalar product in L2([0,T]), Eq. (40) equals to


Discretizing Eq. (41) in t, using the definition of and that of in Eq. (30), we obtain the chain of equalities:


Similarly, the right hand side of (25) is,


1. Aziz, K. and A. Setttari, Petroleum Reservoir Simulation, Elsevier Applied Science Publishers, Great Britain (1985).         [ Links ]
2. Bech, N., D. Olsen and C.M. Nielsen, "Determination of Oil/Water Saturation Functions of Chalk Core Plugs From Two-Phase Flow Experiments", Society of Petroleum Engineers Reservoir Evaluation and Engineering, 3, 50-59 (2000).         [ Links ]
3. Chardaire-Riviere, C., G. Chavent, J. Jaffre, J. Liu and B.J. Bourbiaux, "Simultaneous Estimation of Relative Permeabilities and Capillary Pressure", Society of Petroleum Engineers Formation Evaluation, 7, 283-289 (1992).         [ Links ]
4. Engl, H., M. Hanke and A. Neubauer. Regularization of Inverse Problems Kluwer Academic Publishers, Dordretcht (1996).         [ Links ]
5. Fernández-Berdaguer, E.M., "Parameter estimation in acoustic media using the adjoint method", SIAM Journal on Control and Optimization, 4, 1315-1330 (1998).         [ Links ]
6. Fernández-Berdaguer, E.M., P. Gauzellino and J.E. Santos, "An Algorithm for Parameter Estimation in Acoustic Media Practical Issues", Latin American Applied Research, 25, 161-168 (1995).         [ Links ]
7. Fernández-Berdaguer, E.M., J.E. Santos and D. Sheen, "An Iterative Procedure for Estimation of Variable Coefficients in a Hyperbolic System", Applied Mathematics and Computation, 76, 213-250 (1996).         [ Links ]
8. Kruger, H., A. Grimstad and T. Mannseth, "Adaptive multiscale estimation of a spatially dependent diffusion function within porous media flow", Inverse Problems in Engineering, 11, 341-358 (2003).         [ Links ]
9. Lake, L.W., Fundamentals of Enhanced Oil Recovery, Prentice Hall, New Jersey (1989).         [ Links ]
10. Mejía, G.M., K.K. Mohanty and A.T. Watson, "Use of In Situ Saturation Data in Estimation of Two-Phase Functions in Porous Media", Journal of Petroleum Science and Engineering, 12, 233-245 (1995).         [ Links ]
11. Ortega, J.M. and W. Rheinboldt, Iterative solution of nonlinear equations in several variables, Academic Press, New York (1970).         [ Links ]
12. Savioli, G.B. and M.S. Bidner, "Comparison of Optimization Techniques for Automatic History Matching", Journal of Petroleum Science and Engineering, 12, 25-35 (1994).         [ Links ]
13. Savioli, G.B. and M.S. Bidner, "Interpretación Automática de Ensayos de Flujo Bifásico en Medios Porosos", Revista Internacional de Métodos Numéricos para Cálculo y Diseño en Ingeniería, 11, 131-150 (1995).         [ Links ]
14. Serre, D., Systems of Conservation Laws, Cambridge University Press (1999).         [ Links ]
15. Tarantola, A., Inverse Problem Theory - Methods of data fitting and model parameter estimation, Elsevier (1987).         [ Links ]
16. Valestrand, R., A. Grimstad, K. Kolltveit, J. Nordtvedt, J. Phany and T. Watson, "Extension of Methodology for the Determination of Two-Phase Porous Media Property Functions", Inverse Problems in Engng., 11, 289-307 (2003).
        [ Links ]

Received: May 22, 2006.
Accepted: December 18, 2006.
Recommended by Subject Editor Orlando Alfano.

Creative Commons License All the contents of this journal, except where otherwise noted, is licensed under a Creative Commons Attribution License