Optimal Spline Based Gas-Lift Allocation Using Lagrange’s Multiplier

DOI : 10.17577/IJERTV3IS10981

Download Full-Text PDF Cite this Publication

Text Only Version

Optimal Spline Based Gas-Lift Allocation Using Lagrange’s Multiplier

Optimal Spline Based Gas-Lift Allocation Using Lagrange's Multiplier

Peter Amoako-Yirenkyi 1, Godfrey E. Ntherful2, Gabriel O. Fosu3, Gideon K. Gogovi4, Justice K. Appati5

Department of Mathematics, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana1-5

Abstract

An accurate prediction of the production rate of fluids from a reservoir into the wellbore is essential for efficient artificial lift application in an oil field. We find an accurate model to determine the optimal distribution of the available lift gas among a group of five oil wells on continuous gas lift in order to maximize the total oil production. The optimization problems were then solved using LaGrange multiplier method subject to the constraint of limited gas supply. The rational function and a modified cubic spline interpolation was used to fit the gas injection data. The total optimum oil production rate for data fitting with the spline based function is found to be higher than the total optimum oil production rate of the rational function. The optimal value of the spline based function was found to be twice that of the rational function.

Keywords: Cubic Spline, Gas lift, Oil Wells, Rational Function

Most oil producing wells flow naturally without artificial stimulation when they are first drilled. The flow rate depends on the energy level of the reservoir and the energy losses of the fluid as they flow from the reservoir towards the surface facilities. As the wells mature the energy level falls and this affects the production rate to fall to a level that is economically no longer profitable. In order to increase production flow rate, artificial processes applied to either increase the production level or to facilitate the flow of the hydrocarbons.

These artificial lift supplements the natural drive effects on pressure maintenance and displacement by employing water injection/water flooding or natural gas injection and rod pumps.

Gas lift technique drive mechanism is identified by the presence of a gas cap over an oil zone in an oil reservoir. The energy to produce the fluid comes from the expansion of the gas in the gas cap and the expansion of the gas liberated from the liquid as the pressure declines. Gas lift can be controlled for a single well to optimize production, and to reduce slugging effects where the gas droplets collect to form large bubbles that can upset production. Injected gas aerates the fluid to reduce its density; the formation pressure is then able to lift the oil column and forces the fluid out of the well-bore [1].

Gas lift optimization can be traced to a study by Redden et al.[2], they calculated optimum distribution of available lift gas to a group of gas lifted wells based on each wells contribution to the profit of the system. Kanu [3], proposed gas lift production optimization with data gathering, systems analysis, gas allocation, gas lift valve placement and evaluation and implementation. Well performance was reviewed by plotting tubing and casing pressures before implementing allocation calculations.

Systems analysis techniques were applied by Amondin and Jackson[4] for optimizing gas lift allocation in a group of gas lifted wells. An optimization software was used to determine the optimal gas allocation rates from the analysis of well performance curves modeled with a polynomial function. The optimization algorithm also handled the choke settings in surrounding naturally flowing wells. Palke and Home [5]

applied nonlinear optimization algorithms to a field model that was composed of a reservoir model, a well model with gas lift, a choke model and a separator model. The combination of the production parameters such as tubing diameter, separator pressure, gas injection depth and volume of gas injection was looked for optimizing the net present value of the model. The genetic algorithm optimization techniques were found to be both stable and efficient to address these sorts of optimization problems. Laing [6] described production optimization from gas lift wells by conducting special training for operators, analyzing flowing pressure and temperature surveys, replacing defective gas lift

    1. Curve Fitting of Data using Rational Function Method

      The gas injection and oil production rates are fit by using Rational function for each well. The oil production rate () measured in STB/D is considered as dependent variable where the gas injection rate () measured in MSCF/D is the independent variable. Coefficients of the function a, b and c are determined by the least square method. The rational function is defined as = (a + c)/(1 + b).

      The function to be minimized for the determination the least square coefficients, is defined as follows [10, 11]:

      valves, measuring correctly injection gas flow rate to each well, twinning surface flow line and improving gas lift design techniques.

      SM IN =

      ,i=1

      5

      ,

      5

      i

      (a + ci) 2

      (1 + bi)

      2

      Allah [7] discussed the use of a Multi-phase

      Flow Meter to optimize gas lift field operations. This in particular compares analysis methods individual wells performance using multi flow meter versus Standard Nodal Analysis. Hatton and Potter [8] used SAS/OR optimization techniques

      = (i + bii a ci)

      i

      (1 + b )

      i=1

      ,

      5

      = (i + bii a ci)2

      i=1

      (1)

      to provide quick results using a scalable solution. A description of a non-linear optimization problem with constraints associated with the optimal

      1 + bi is initially set to unity. The necessary

      conditions for minimizing SM IN are given as:

      ,

      5

      distribution of the lift gas was given by [9]. They

      developed a non-linear objective function using a simple dynamic model of the oil field where the decision variables represent the lift gas flow rate

      SM IN

      a

      SM IN

      = 2 (i

      i=1

      5

      = 2 ,(

      + bii

      + b

      a ci)(1) = 0

      a c )( ) = 0

      set points of each oil well of the field.

      Though many mathematical methods have been

      b i i i

      i=1

      5

      i 1 1

      developed by various researchers, there has not

      SM IN

      = 2 ,(

      + b

      a c )( ) = 0

      been any study on the C J C Kruger cubic spline interpolation method. In this study we determine

      c i i i

      i=1

      i 1

      (2)

      an accurate model for exact prediction of oil using the the modified cubic spline method. We compare

      The results for the least square coefficients are:

      this method to the rational function method. We also find a suitable approximation method that will best lead the Lagrange to find the appropriate

      where

      a = Da ; b =

      D

      Db ; c = Dc D D

      optimum value.

      1. i=1 i

        i=1

        5

        1

        i

        5

        5

        5

        i=1

        i=1

        ii

        i

        i=1 i 1

        i=1

        i

        Da =

        5 ii 5

        i=1

        5

        i=1

        i

        2i 5 2 1

        i

        i=1

        i

        i

        i

        i=1

        i

        1 5

        i2

        5

        22 5

        2i 1

        i=1

        Db =

      1 5

      5

      i=1

      5

      5

      1

      i=1

      i=1

      ii

      1

      i=1 i

      5

      i=1

      i

      1

      p>1

      2

      i

      i

      i=1

      i

      i2

      5

      i=1

      2i

      The methodology is based on rational function and

      cubic spline interpolations for curve fitting and

      1

      Lagranges multiplier for the optimization. We

      i=1

      i=1

      i=1

      5

      ii 5

      i

      i=1

      i=1

      i=1

      ii 5 i

      i=1

      i

      i=1

      i

      i

      i=1

      i

      used the LaGranges multipliers to find equal point for gas allocation considering limited gas available.

      Dc =

      5 5

      1

      1 5 ii 5

      2 5

      5

      1

      1

      1

      i

      22 5

      ii i2 1

      The sum of the squares of the errors between the data and the function is calculated for wells is given as:

      5

      carried out. The optimum oil rate in each well is expressed as a rational function of its optimum gas injection rate as [10, 11]

      S = (i

      i=1

      a + ci 2

      i

      1 + b )

      i =

      ai + cii 1 + bii

      The sum of the squares of the errors between the data and the mean oil output rate is calculated for the wells is also given as:

      where i = 1,· · · ,5 is the ith well, i are the optimum oil output rates and i are the optimum gas injection rate for wells 1,· · · , 5. Whiles

      SB =

      5

      i=1

      (i

      5

      i=1

      5

      i )2

      the respective least square coefficients ai, bi

      and ci are determined by Matlab simulation. The optimization is subject to a linear equality constraint regarding the availability of limited gas

    2. Cubic Spline Interpolation

      The cubic spline is considered as an alternative to the least square rational function for fitting well data. Due to its stable and smooth characteristics, it fits the data very well and represents true well behaviour. So the cubic spline is an appropriate choice to model the well gas injection and oil output data. Krugers [12] proposed Constrained Cubic

      for injection. Let the total amount of gas available be N measured in MSCF/D. Hence the constraint equation is i = N where n is the number of wells, with the constraint function defined as = i N = 0. The LaGrange Multiplier relating the

      partial derivative of the oil rate in each well to the partial derivative of the constraint function is:

      i =

      Splines is applied in this study.

      The principle behind the proposed constrained

      i

      i

      cubic spline is to prevent overshooting by sacrificing smoothness. This is achieved by eliminating the requirement for equal second order derivatives at every point and replacing it with specified first

      order derivatives. Thus, Kruger[12] proposed

      where i represents the well number and () is the

      LaGrange Multiplier. The partial derivatives these equations yields

      i

      i

      b22 + 2bii + ci + aibi = 0

      Constrained Cubic Spline is as follows:

      2

      where i is the expression of gas injection rates of the ith, well. This set of non-linear equation is

      f t(i) =

      i+1 i + i i1

      i+1 i i i1

      solved using Newtons method of solving algebraic

      set of equations. The total optimum gas injection

      i=1

      rate is n

      i

      i which is equal to the total available

      2[f t( ) + 2f t( )]

      i

      6( )

      gas for injection. Using the least square coefficients

      i

      f tt(i1) = i

      i i1 + i

      i1

      and the optimum gas injection rate for the wells,

      (i i1) (i i1)2

      Hence, a third degree polynomial constructed between each point is generally defined as:

      fi() = ai + bi + ci2 + di3

      the optimum oil output rate of the wells are calculated from the following equation:

      = ai + cii .

      i 1 + bii

      i=1

      Hence the total optimum oil output rates of the

      Where the actual parameters (ai, bi, ci and di) for each of the cubic spline equations are found directly without solving a system of equations and this permits analytical integration of the data.

    3. Lagrange Multiplier with Rational Function

      To find the optimum point of gas injection rate and oil output rate for each well after fitting the gas in and oil out data, the Lagrange optimization is

      wells is calculated from n i.

    4. Lagrange Multiplier with Cubic Spline Function

      After fitting the gas injection and oil output rates of the wells with Cubic Spline functions, the optimum rates of gas injection and oil output in each of the wells are determined using the LaGrange Multiplier method. The optimum oil rate in each well is expressed as a cubic spline function of its optimum

      gas injection. Cubic Spline function for the five wells is given as:

      j j

      j = ai + bij + ci2 + di3 j = 1, · · · , 5

      The analysis is subject to a constraint regarding the availability of limited gas for injection. The total amount of gas available for injection is N MSCF/D. So the constraint equation is defined as follows: i = N and a constraint function is defined as

      = i N = 0. The LaGrange Multiplier relating the partial derivative of the oil rate in each well to the partial derivative of the constraint function are defined as:

      i =

        1. Curve fitting

          The data points and the oil output rates calculated from the rational functions are shown in Tables 1 and 5. The oil production rates from data and calculated oil output rate from the rational function fits and cubic spline interpolation model are plotted against gas injection rates in figures 1, ?? and 2. These result illustrates that the cubic spline interpolation model is better as compared to the rational function for fitting the well data since they are flexible to handle and do represent the true well behaviour and fits the data very well.

          In order to check the validity of the mathematical model, the continuous gas lift well in table 6 was compared with the results obtained by the

          i

          i

          interpolation methods in tables 1 and 5. It was

          noticed that the cubic spline gives a better results.

          j

          resulting to the non-linear equation 3di2 + 2cij + bi = 0. This leads us to an algebraic set of n nonlinear equations in 5 unknowns are formed which can be written in the general form as fi(1, 2, …, 5) = 0 for i = 1, 2, …5. To calculate Lagranges multiplier and the optimum gas injection rates of the wells, the Broydens iterative method for solving algebraic set of nonlinear equations was employed for the analysis[10, 11].

The initial guess used is the real well data for gas injection rates in wells one to five. These are shown in Table 6 in the appendix. The numerical simulations were performed using Matlab. The production optimization of continuous flow gas lifted wells is carried out using the LaGrange Multiplier method subject to limited gas supply.

Hence, the productions will take place according to the cubic spline function since it represents real data of the wells.

    1. Optimization Results

      Well data are generated by using a well performance software program as stated by Jamal

      [13] and fit with cubic spline and rational functions by the least square method. The optimum operating conditions are based on the concept that for each well incremental oil production due to a unit increase in gas injection should be equal. So the optimum operating points are nothing but equal slope points.

      The optimum gas injection and oil production rates of all wells for rational function data fit and the value of the LaGrange Multiplier are illustrated in Table 2. The optimum gas injection and oil production rates of all wells for cubic spline function data fit and the value ofthe LaGrange Multiplier are tabulated in Table 3.

      Table 1: Oil output rates from data and the two interpolation methods for well one.

      , Gas Injection

      , Oil output

      , rational

      , cubic spline

      (MSCF/D)

      (STB/D)

      (STB/D)

      (STB/D)

      1.75

      67

      69.62998011

      67

      115

      195

      186.5579756

      195

      385

      257

      263.3390997

      257

      735

      286

      292.660964

      286

      1290

      317

      309.8119404

      317

      Table 2: Optimum gas injection and oil output rates for rational function data fit.

      0.202070231

      Well

      Optimum gas injection rates

      Optimum oil output rates

      (MSCF/D)

      (STB/D)

      One

      1

      295.091

      1

      248.2594091

      Two

      2

      125.9270512

      2

      152.9316134

      Three

      3

      119.9383631

      3

      139.2507759

      Four

      4

      177.7020761

      4

      207.8055049

      Five

      5

      281.34129

      5

      291.5548112

      Total

      1000

      Total

      1039.802114

      Table 3: Optimum gas injection and oil output rates for cubic spline function data fit.

      Lambda

      -5.6569

      Well

      Optimum gas injection rates

      Optimum oil output rates

      (MSCF/D)

      (STB/D)

      One

      1

      296.3784

      1

      502.1615

      Two

      2

      382.2095

      2

      132.1152

      Three

      3

      -192.4427

      3

      386.3273

      Four

      4

      272.3827

      4

      516.4365

      Five

      5

      241.4726

      5

      560.4919

      Total

      1000

      Total

      2097.5324

      Figure 1: Plot of Oil Output against Gas Injection for Well One

      Examining the figures, the overall performance of the cubic spline is most appropriate. As close as all of the curves do follow the data quite well. The rational function is less predictable although it

      seems to have a good fit to some of the production data. Hence, from visual inspection the cubic spline function had the best match.

      Though the rational function gave results closer to real data of the well, these productions do not represent optimum operating conditions for the rational model. Rather, the productions will take place according to the cubic spline since it represents real data of the wells.

      Curve fitting of well data with the cubic spline function gives accurate predictions since it gives the same results as the well data. The other model, the rational function though does not give poor fit, its results have some variations with the real well data. So productions do not represent optimum operating conditions for the rational model. This creates some differences between the cubic spline optimum oil outputs and the actual oil outputs at the rational function optimum gas injection rates. These differences which are defined as lost productions, are presented in Table 4.

      Table 4: Lost productions due to wrong predictions.

      Well

      Rational

      optimum gas rates

      Actual

      outputs

      Cubic Spline optimum

      oil rates (STB/D)

      Lost production

      (STB/D)

      (MSCF/D)

      (STB/D)

      One

      295.091

      248.2594091

      502.1615

      253.9021

      Two

      125.9270512

      152.9316134

      132.1152

      -20.8164

      Three

      119.9383631

      139.2507759

      386.3273

      247.0765

      Four

      177.7020761

      207.8055049

      516.4365

      308.6310

      Five

      281.34129

      291.5548112

      560.4919

      268.9371

      Total

      1000

      1039.802114

      2097.5324

      1057.7303

In this study we determined an accurate model for finding an optimum amount of gas to maximize oil production and carry out an optimization to cater for the oil loses in order to enhance production. Well data were fitted with cubic spline interpolation method and rational function for least squares method and optimum gas injection and oil output rates were determined for both functions. Total optimum oil production rate for data fitting with cubic spline function is found to be 101.72% higher than the total optimum oil production rate for data fitting with rational function. The cubic spline algorithm was the most suitable for adaptation with good potential and has therefore proven to be a fast algorithm suitable for the purpose of this study.

  1. J. Oloro and E. Ogbolu. Gas lift optimization; using least square method and solver. Advances in Physical Sciences, 1 (1),:001008, 2012.

  2. J. D. Redden, T. A. G. Sherman, and J R Blann. Optimizing gas-lift systems. In Annual Fall Meeting, Houston, 1974.

  3. E.P. Kanu. Systems analysis hikes well performance. Pet. Eng. Intl., pages 96120, 1981.

  4. M.C. Amondin and M.A. Jackson. A systems approach to production management: Beryl field case study. European Production Operations Conference,, pages 1617, 1996.

  5. M.R. Palke and R.N. Home. Nonlinear optimization of well production considering gas lift and phase behavior,. In Production Operations Symposium, Oklahoma City, 1997.

  6. C. M. Laing. Gas lift design and production optimisation offshore trinidad. Annual Technical Conference and Exhibition, pages 36, 1986.

  7. Atef Allah. Field experience to optimize gas lift well operations. Academic EOG Newspaper, pages 1213, 2007.

  8. Robert N. Hatton and Ken Potter. Optimization of gas-injected oil wells. Science Applications International Corporation (SAIC), pages 14, 2011.

  9. Roshan Sharma, Kjetil Fjalestad, and Bjrn Glemmestad. Optimization of lift gas allocation in a gas lifted oil field as non-linear optimization problem. Modeling, Identification and Control, 33:1325, 2012.

  10. S. R. Singiresu. Appied numerical methods for engineers and scientists. Tom Robbins Prentice Hall, Inc. Upper Saddle River, New Jersey 07458., 2002.

  11. Y. Wonand C. Wenyu, C. Tae-Sang, and J Morris. Applied numerical methods using matlab. John Wiley & Sons, Inc., 2005.

  12. C. J. C. Kruger. Constrained cubic spline interpolation for chemical engineering appliations.

  13. Syed Aftad Jamal. Production optimization via lagrange multipliers. Masters thesis, Texas Tech University, 2001.

Table 5: Oil output r

ates from data and t

he two interpolation methods.

Well two

, Gas Injection rate

, Oil output rate

, rational

, cubic spline

(MSCF/D)

(STB/D)

(STB/D)

(STB/D)

2

25

25.00278081

25

155

158

157.8739039

158

380

172

172.3137542

172

650

177

176.993773

177

1100

180

179.8157803

180

Well three

1.75

27

26.99631064

27

95

133

133.2076266

133

290

156

155.3633103

156

575

162

162.0617496

162

1050

165

165.3710036

165

Well Four

1.8

49

48.99256641

49

20

192

192.1627265

192

350

228

227.5843113

228

780

241

241.0795404

241

1350

246

246.1808397

246

Well Five

1

82

26.99631064

82

95

216

133.2076266

216

320

303

155.3633103

303

750

335

162.0617496

335

1380

346

165.3710036

346

Table 6: Gas injection and Oil output rate [13]

Well one Well two Well three Well four Well five

,

,

,

,

,

,

,

,

,

,

1.75

67

2

25

1.75

27

1.8

49

1

82

115

195

155

158

95

133

120

192

95

216

385

257

380

172

290

156

350

228

320

303

735

286

650

177

575

162

780

241

750

335

1290

317

1100

180

1050

165

1350

246

1380

346

, is Gas injection rate (MSCF/D) and , is the Oil output rate (STB/D)

Well two Well three

Well four Well five

Figure 2: Plot of Oil Output versus Gas Injection

.

Leave a Reply