- About this Journal ·
- Abstracting and Indexing ·
- Advance Access ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Table of Contents

Advances in Mechanical Engineering

Volume 2013 (2013), Article ID 573542, 7 pages

http://dx.doi.org/10.1155/2013/573542

## Optimal Model of Operation Parameters of Gathering Pipeline Network with Triple-Line Process

^{1}China University of Petroleum, Beijing 102200, China^{2}Petroleum Engineering Technology Research Institute of East China Branch, SINOPEC, Nanjing, Jiangsu 210031, China

Received 14 January 2013; Accepted 5 March 2013

Academic Editor: Bo Yu

Copyright © 2013 Yongtu Liang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

This is a mathematic model for the optimal operation of the gathering pipeline network and its solution provides this gathering pipeline network having a triple-line heat-tracing process, a method for reducing the operational costs and increasing economic benefit. The model consists of an objective function, minimum total operation cost, and 3 constraints including water temperature constraint at pipe nodes, inlet oil temperature constraints, and outlet water temperature constraint. By using a sequential quadratic programming algorithm, the model can be solved and a set of optimal mass rate and the desired temperature of tracing water are attained. The method is here specifically applied to the optimal operation analysis of a gathering pipeline network in North China Oilfield. The result shows its operation cost can be reduced by 2076RMB/d, which demonstrates that this method contributes to the production cost reduction of old oilfields in their high water-cut stage.

#### 1. Introduction

Triple-line process has been widely used in early oilfield development in China. With oilfields now entering the high water-cut stage, it has become more and more clear that the triple-line process has the disadvantages of high energy consumption and low efficiency. In the last twenty years, research has been mostly based on the optimal design of pipeline network [1–4] and the simulation of pipeline network [5–7], but seldom on optimal operation problems of triple-line process. On the condition that the triple-line process is not changed, research was carried out on optimizing the operation parameters of oilfield gathering and transportation system which had positive effects on cost reduction and economic benefit increases for those areas unsuited to the low-temperature gathering and transportation process.

#### 2. Thermodynamic Calculation of Tracing Oil Pipelines

The cross-section of the tracing oil pipelines is divided into 5 parts [8] (Figure 1). is the heat transfer surface between an oil pipeline and the soil, is the heating surface between the pipes’ interspace and the soil, is the heat transfer surface between a water pipeline and the soil, is the heat transfer surface between an oil pipeline and the pipes’ interspace, and is the heat transfer surface between a water pipeline and the pipes’ interspace. By solving the pipe element thermodynamic differential equation [9], Oil/water temperature at the end of the oil/water pipeline can be obtained as shown in Figure 1, where are the areas of 5 heat transfer surfaces of unit pipe length, m^{2}Consider.
where is the liquid temperature at the end of the oil pipe, °C. is the average soil temperature at the depth of pipes,°C
where is the water temperature at the end of a tracing pipe, °C.

, , ,and are given by where is the liquid temperature at the beginning of an oil pipe, °C. is the water temperature at the beginning of a tracing pipe, °C, where is the specific heat of an oil pipe liquid, J/(°C · kg) Consider where is the specific heat of water, J/(°C · kg). is the mass rate of water, kg/s Consider where are the overall heat transfer coefficients of 5 heat transfer surfaces, ,

#### 3. Thermodynamic Calculation of Pipeline Network

##### 3.1. Pipe Network Numbering Method

The oil wells, the metering stations, the transfer station, and the pipelines connecting them are ranked and numbered with the following rules. The transfer station is level 0 node, with no subscript; the metering station is level 1 node, with subscript as its number; the oil well is level 2 node, with subscript as its number. A transfer station is the highest level, a metering station comes second, and an oil well is the lowest. The number of pipelines connecting two nodes follows the lower one. is the total number of metering stations, and is the total number of oil wells connected with the metering station . As shown in Figure 2, the transfer station has 2 metering stations, one of them has 3 wells and the other has 2.

##### 3.2. Node Parameters Calculation of Heat Tracing Pipelines

(1) Mass rate and specific heat of an oil pipe liquid at nodes: where is the mass rate of an oil pipe’s liquid , kg/s. is the water density, kg/m³. is the crude density, kg/m³. is the volumetric flow rate of an oil pipe liquid , m³/s. is the volumetric water cut of a well , where is the specific heat of an oil pipe’s liquid , J/(°C · kg).

(2) Temperature of an oil pipe liquid at nodes: is the resulting oil pipes’ liquid temperature when mixed at their node , °C. is the liquid temperature at the end of an oil pipe , °C.

(3) Temperature of a water pipe liquid at nodes where is the water temperature at the end of a tracing pipe , °C. is the resulting tracing pipes’ water temperature when mixed at their node , °C. is the mass rate of water distributed to a node , kg/s.

##### 3.3. Node Parameters Calculation of Water Pipeline Network

*Mass Rate of Water at the Nodes*

The mass rate of water at a node is calculated serially from the lower level to the higher one:

*Water Temperature at Nodes*

Water temperature at a node is calculated by using the Sukhov Formula serially from the lower level to the higher one:
where is the water temperature at the beginning of a water pipe , °C. is the water temperature at the end of a water pipe , °C. is the overall heat transfer coefficient of a water pipe , W/(m^{2} · °C). is the diameter of the water pipe , m. is the length of the water pipe , m.

#### 4. Optimal Mathematic Model

##### 4.1. Objective Function

With a water mass rate and a water temperature as decision variables and the minimum total operation cost, including heating cost and power cost, as the target, assuming that is a known quantity, the objective function is given by where is the fuel price, RMB/kg. is the price of electricity RMB/J. is the water temperature before heated, °C. is the acceleration of gravity, N/kg. is the water head of the pump, m. is the lower heating value, J/kg. is the efficiency of heating furnace. is the pump’s efficiency.

##### 4.2. Constraints Condition

*Water Temperature Constraint at the Nodes *

One node has multiple outlets. The water temperatures of these outlets are the same:
where is the commencing temperature difference between a water pipe and a water pipe ,°C. the commencing temperature difference between a water pipe and a water pipe .

*Inlet Oil Temperature Constraint*

To ensure the safe operation of the pipeline, the minimum inlet temperature [10] is specified to be higher than the freezing point of crude oil:
where is the transfer station’s inlet temperature of an oil pipe , °C. is the freezing point of crude oil, °C. is the temperature allowance, °C.

*Outlet Water Temperature Constraint*

The outlet water temperature of the transfer station is usually °C [11, 12]:
where is the outlet water temperature of a transfer station, °C.

#### 5. Model Solutions

There are metering stations, oil wells in this model, and correspondingly, decision variables, equality constraints and inequality constraints are generated. The model is a highly nonlinear problem, of which the most common method used to solve is the sequential quadratic programming algorithm. The sequential quadratic programming algorithm is a fast and effective method, of which the convergence rate is proved to be superliner under certain conditions [13, 14].

##### 5.1. Sequential Quadratic Programming Algorithm

The main idea of the algorithm is to build a simple series of approximate optimization problems, namely, quadratic programming problems, using the information from the original nonlinear program. By solving these new problems, current iteration can be updated and gradually approximate the solution of the original nonlinear programming problem [15]. At the *k*th step, the approximate programming problem is as follow:
where is the difference between former and later iterations, named iteration direction; is the objective function of new programming; is the objective function/constraints of original programming; is the gradient of ; is Hessian matrix of ; is the set of subscripts of equality/inequality constraints.

As shown in Figure 3, the algorithm mainly includes 3 steps: (a) solve the subproblem with active-set method to get and Lagrange multiplier ; (b) employ quadratic interpolation and linear search to get step length ; (c) update Hessian matrix with BFGS (Broyden-Fletcher-Goldfarb-Shanno) method, where is the number of iterations, is the difference between former and later iterations, and is the control error.

##### 5.2. Active-Set Method

Subproblem (21) is a standard quadratic programming problem. The active-set method is the key to solving such problems. By swapping in/out the inequality constraints according to some rules, A convex quadratic programming (22) only with equality constraints is obtained: where Problem (22) converts the solution of into the solution of the direction of , named .

Figure 4 gives the steps of the solution of .

#### 6. Example Analyses

As shown in Figure 5, the transfer station of North China Oilfield has 3 metering stations and 18 oil wells. The well effluent of each well has a mass rate of 10.5~53.6 t/d, a water cut of higher than 80%, and a temperature of 30~40.

The model has 36 decision variables, 17 equality constraints, and 4 inequality constraints. It takes 114 iterations, about 4.24 seconds to get the optimal results, as shown in Table 1.

Table 2 sets out the comparison between costs before and after optimization. It shows that the optimized heating cost and power cost decrease by 1925 RMB/d and 151 RMB/d, respectively, which means the total cost can be reduced by 2076 RMB/d in sum.

#### 7. Conclusions

A mathematic model of the gathering pipeline network optimal operation and its solution are given in this paper, which can provide optimal operation parameters for triple-line process. Using a gathering pipeline network of North China Oilfield as an example, a mathematic model has been established. After comparing the optimal results with the actual operation data, it concludes that by using the new model, there is a considerable cost saving in accordance with the optimized parameters over that which exists at present.

#### Nomenclature

*Set and Indices*

Set of meter stations | |

: | Set of wells connected to a meter station |

: | Indices corresponding to a meter station and a well, and . |

*Parameters*

: | The specific heat of an oil pipe liquid, J/(°C · kg) |

: | The specific heat of water, J/(°C · kg) |

: | Areas of 5 heat transfer surfaces of unit pipe length, m^{2} |

: | The overall heat transfer coefficients of 5 heat transfer surfaces, W/(m^{2}·°C) |

: | The average soil temperature at the depth of pipes, °C |

: | The water density, kg/m³ |

: | The crude density, kg/m³ |

: | The volumetric flow rate of an oil pipe liquid , m³/s |

: | The volumetric water cut of a well |

: | The overall heat transfer coefficient of a water pipe , W/(m^{2} · °C) |

: | The diameter of the water pipe , m |

: | The length of the water pipe , m |

: | The fuel price, RMB/kg |

: | The water temperature before being heated, °C |

: | The lower heating value, J/kg |

: | The efficiency of heating furnace |

: | The price of electricity RMB/J |

: | The acceleration of gravity, N/kg |

: | The water head of the pump, m |

: | The pump’s efficiency |

: | The freezing point of crude oil, °C |

: | The temperature allowance, °C. |

*Variables*

: | The mass rate of an oil pipe liquid, kg/s |

: | The liquid temperature at the end of the oil pipe, °C |

: | The mass rate of water, kg/s |

: | The water temperature at the end of a tracing pipe, °C |

: | The liquid temperature at the beginning of an oil pipe, °C |

: | The water temperature at the beginning of a tracing pipe, °C |

: | The mass rate of an oil pipe’s liquid , kg/s |

: | The specific heat of an oil pipe’s liquid , J/(°C · kg) |

: | The liquid temperature at the end of an oil pipe , °C |

: | The resulting oil pipes’ liquid temperature when mixed at their node , °C |

: | The transfer station’s inlet temperature of an oil pipe , °C |

: | The water temperature at the end of a tracing pipe , °C |

: | The resulting tracing pipes’ water temperature when mixed at their node , °C |

: | The transfer station’s inlet temperature of a tracing pipe , °C |

: | The mass rate of water distributed to a node , kg/s |

: | the water temperature at the beginning of a water pipe , °C |

: | The water temperature at the end of awater pipe , °C |

: | The outlet water temperature of a transfer station, °C |

: | The commencing temperature difference between a water pipe and a water pipe ,°C |

: | The commencing temperature difference between a water pipe and a water pipe ,°C. |

#### References

- R. J. Barnes, A. Kokossis, and Z. Shang, “An integrated mathematical programming approach for the design and optimisation of offshore fields,”
*Computers and Chemical Engineering*, vol. 31, no. 5-6, pp. 612–629, 2007. View at Publisher · View at Google Scholar · View at Scopus - D. A. Antonenko, V. A. Pavlov, V. N. Surtaew, and K. K. Sevastyanova, “Selecting an optimal field development strategy for the vankor oilfield using an integrated-asset-modeling approach,” in
*Proceedings of the SPE Europec/EAGE Conference and Exhibition*, Rome, Italy, June 2008. View at Publisher · View at Google Scholar - Y. Liu and G. Chen, “Optimal parameters design of oilfield surface pipeline systems using fuzzy models,”
*Information Sciences*, vol. 120, no. 1, pp. 13–21, 1999. View at Publisher · View at Google Scholar · View at Scopus - S. A. Van Den Heever and I. E. Grossmann, “An iterative aggregation/disaggregation approach for the solution of a mixed-integer nonlinear oilfield infrastructure planning model,”
*Industrial and Engineering Chemistry Research*, vol. 39, no. 6, pp. 1955–1971, 2000. View at Scopus - J. M. Duan, W. Wang, Y. Zhang, et al., “Calculation on inner wall temperature in oil-gas pipe flow,”
*Journal of Central South University of Technology*, vol. 19, pp. 1932–1937, 2012. - P. Floquet, X. Joulia, A. Vacher, M. Gainville, and M. Pons, “Numerical and computational strategy for pressure-driven steady-state simulation of oilfield production,”
*Computers and Chemical Engineering*, vol. 33, no. 3, pp. 660–669, 2009. View at Publisher · View at Google Scholar · View at Scopus - C. J. Alvarez, M. H. Al-awwami, and S. Aranco, “Wet crude transport through a complex hilly terrain pipeline network,” in
*Proceedings of the SPE Annual Technical Conference and Exhibition*, Houston, Tex, USA, October 1999. View at Publisher · View at Google Scholar - W. X. Wang,
*Operation optimization and project setting for heavy oil three pipe tracing gathering and transferring system [M.S. thesis]*, Daqing Petroleum Institute, Daqing, China, 2006. - Department of Mathematics at Tongji university,
*Advanced Mathematics[M]*, Higher Education Press, Beijing, China, 2007. - X. L. Gao and M. Kuang, “The determination on the minimum allowable inlet temperature of waxy crude oil pipeline,”
*Oil & Gas Storage and Transportation*, vol. 21, no. 11, pp. 17–21, 2002. - The Writing Committee of Technical Manual of Oilfield Oil-gas Gathering and Transportation Design,
*Technical Manual of Oilfield Oil-Gas Gathering and Transportation Design*, Petroleum Industry Press, Beijing, China, 1994. - GB 50350-2005,
*Code for Design of Oil-Gas Gathering and Transportation System*, GB, Beijing, China, 2005. - G. P. He, Z. Y. Gao, and Y. G. Zheng, “An effective sequential quadratic programming algorithm for nonlinear optimization problems,”
*Numerical Mathematics a Journal of Chinese Universities (English Series)*, no. 1, pp. 34–51, 2002. - Q. Ni, “A new inexact sequential quadratic programming algorithm,”
*Numerical Mathematics a Journal of Chinese Universities (English Series)*, no. 1, pp. 1–12, 2002. - G. P. He, Z. Y. Gao, and Y. L. Lai, “New sequential quadratic programming algorithm with consistent subproblems,”
*Science in China Series A*, vol. 40, no. 2, pp. 137–150, 1997.