estimation of the temperature field in pipelines by …

10
2 nd International Congress of Serbian Society of Mechanics (IConSSM 2009) Palić (Subotica), Serbia, 1-5 June 2009 D-13:1-10 ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY USING THE KALMAN FILTER F. L. V. Vianna 1 , H. R. B. Orlande 2 , G. S. Dulikravich 3 1 Department of Subsea Technology, Petrobras Research and Development Center – CENPES, Av. Horácio Macedo, 950, Cidade Universitária, Ilha do Fundão, 21941-915, Rio de Janeiro, RJ, BRAZIL e-mail: [email protected] 2 Department of Mechanical Engineering, POLI/COPPE, Federal University of Rio de Janeiro, UFRJ, Cidade Universitária, Cx. Postal 68503, Rio de Janeiro, RJ, 21945-970, BRAZIL e-mail: [email protected] 3 Department of Mechanical and Materials Engineering, MAIDROC Lab., Florida International University, FIU, 10555 West Flagler St., EC 3474, Miami, Florida 33174, U.S.A. e-mail: [email protected] Abstract. Heat transfer analysis in oil and gas pipelines is of major importance for the prediction and prevention of paraffinic deposits and hydrate formations, which can interrupt the oil and gas flow and incur large financial losses. This is specially the case in deep sea pipelines used in the offshore production. In this work, we present the estimation of the temperature field in a pipeline from limited temperature data available at its surface. The state estimation problem under consideration is solved with the Kalman filter. Uncertainties in the state evolution and measurement models are taken into account by assuming that the errors involved are additive, normally distributed and with known means and covariance matrices. The accurate estimation of the temperature field allows for the prediction of cold regions in the oil-gas-water mixture inside the pipeline. As a result, preventive actions can be taken beforehand in order to avoid the formation of hydrates. 1. Introduction Flow assurance is one of the biggest concerns to the petroleum industry and it may be one of the greatest challenges for the development of subsea field layouts in deep and ultra- deepwater environment, characterized by the numerous technical problems related to the dynamic nature of the produced fluids. These problems can change gradually throughout the field lifetime, periodically requiring adjustment of the solution. The possible solutions can present a significant impact on the technical and economical aspects of the final architecture of a typical subsea production system. The expression “flow assurance” was created by Petrobras in the mid 1980’s from the problems faced by the developments of the first offshore fields at seawater depths less than 400 meters in the Campos Basin [1], where all known methods were implemented for maintaining the flow of oil and gas from remote wells up to the processing facilities. In these cases, different kinds of problems have

Upload: others

Post on 14-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

2nd International Congress of Serbian Society of Mechanics (IConSSM 2009) Palić (Subotica), Serbia, 1-5 June 2009 D-13:1-10

ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY USING THE KALMAN FILTER

F. L. V. Vianna1, H. R. B. Orlande2, G. S. Dulikravich3

1 Department of Subsea Technology, Petrobras Research and Development Center – CENPES, Av. Horácio Macedo, 950, Cidade Universitária, Ilha do Fundão, 21941-915, Rio de Janeiro, RJ, BRAZIL e-mail: [email protected] 2 Department of Mechanical Engineering, POLI/COPPE, Federal University of Rio de Janeiro, UFRJ, Cidade Universitária, Cx. Postal 68503, Rio de Janeiro, RJ, 21945-970, BRAZIL e-mail: [email protected] 3 Department of Mechanical and Materials Engineering, MAIDROC Lab., Florida International University, FIU, 10555 West Flagler St., EC 3474, Miami, Florida 33174, U.S.A. e-mail: [email protected]

Abstract. Heat transfer analysis in oil and gas pipelines is of major importance for the prediction and prevention of paraffinic deposits and hydrate formations, which can interrupt the oil and gas flow and incur large financial losses. This is specially the case in deep sea pipelines used in the offshore production. In this work, we present the estimation of the temperature field in a pipeline from limited temperature data available at its surface. The state estimation problem under consideration is solved with the Kalman filter. Uncertainties in the state evolution and measurement models are taken into account by assuming that the errors involved are additive, normally distributed and with known means and covariance matrices. The accurate estimation of the temperature field allows for the prediction of cold regions in the oil-gas-water mixture inside the pipeline. As a result, preventive actions can be taken beforehand in order to avoid the formation of hydrates.

1. Introduction Flow assurance is one of the biggest concerns to the petroleum industry and it may be one of the greatest challenges for the development of subsea field layouts in deep and ultra-deepwater environment, characterized by the numerous technical problems related to the dynamic nature of the produced fluids. These problems can change gradually throughout the field lifetime, periodically requiring adjustment of the solution. The possible solutions can present a significant impact on the technical and economical aspects of the final architecture of a typical subsea production system. The expression “flow assurance” was created by Petrobras in the mid 1980’s from the problems faced by the developments of the first offshore fields at seawater depths less than 400 meters in the Campos Basin [1], where all known methods were implemented for maintaining the flow of oil and gas from remote wells up to the processing facilities. In these cases, different kinds of problems have

Page 2: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

became critical, such as corrosion, asphaltene and waxes deposits and formations of hydrates of natural gas, which can interrupt the flow and incur large financial losses. So far, these issues have not been dealt with. Figure 1 illustrates a typical blockage caused in a pipeline as a result of hydrate formation.

Figure 1- Hydrate pipeline blockage

The most significant design aspects for the deepwater production systems are based on the low well outlet temperature and the high hydrostatic pressure. In general, the current systems are designed to transport the produced fluids through the pipelines assuming that heat losses to the environment are not significant. However, heat transfer analysis of the equipment and pipeline systems is of great importance for the prediction and prevention of wax deposits and hydrate formations. Accurate knowledge of the temperature field in the equipment combined with the knowledge of the critical temperature values for solid deposit formations must be adequately evaluated in order to insure continued production at desired levels for profitability. It is important to point out that in pipelines, hydrates can be formed even at relatively high temperatures within the oil-gas-water mixture pumped from the production wells, due to the high pressures involved [2]. In this work, we present the estimation of the temperature field in a pipeline from limited temperature data available at its surface. The state estimation problem under consideration is solved with the Kalman filter [3,4,5]. Uncertainties in the state evolution and measurement models are taken into account by assuming that the errors involved are additive, normally distributed and with known means and covariance matrices. The accurate estimation of the temperature field allows for the prediction of cold regions in the oil-gas-water mixture inside the pipeline. As a result, preventive actions can be taken beforehand in order to avoid the formation of hydrates and wax deposits.

2. Subsea Thermal Management Subsea thermal management is a key ingredient to the success of flow assurance operations in deepwater fields. Thermal analysis of a typical subsea production system, which predicts the temperature profile along the flowline, is one of the most important steps in the subsea layout design and its subsequent commissioning. In most cases, field thermal management determines the minimum requirements to choose the best design in order to maintain the

Page 3: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

fluid temperature in the interior of the pipelines and in subsea production equipments above a minimum temperature. Thermal analysis includes both steady-state and transient studies for the different stages of the field’s lifetime and must serve as a design tool for selection of thermal insulation or heating systems in order to avoid wax and hydrates formation. In steady state operation, the production fluid temperature decreases as it flows along the pipeline due to heat transfer through pipe walls. This steady state temperature profile from the produced fluid is used to identify the flow rates and insulation systems that are needed to keep the system above the critical minimum temperature during production. If at some moment the steady state flow conditions are interrupted, such as in shut-in conditions, the transient heat transfer analysis for the subsea system is necessary to ensure that the temperature of the fluid is above the solid deposition temperature range within the required time. The principal solid deposits are wax and hydrates. For a given fluid, these solids precipitate at certain combinations of pressure and temperature. Wax deposits typically appear in temperatures ranging from 30oC to 50oC. Hydrate formation temperatures on the other hand, are typically around 20oC at 100 bar [6]. The techniques for prevention and/or minimizing the formation of these solid deposits have been supported by an intensive research effort and by the help of field experiences. The basic current strategies to avoid these problems are [7,8,9]: • To not allow the system to enter a pressure/temperature region which could precipitate

solid deposits; • Installation of topside and subsea facilities for running pigs (mechanical scrubbers); • Chemical inhibitors injection into flowlines and X-mas trees; • Thermal insulation for flowlines, risers and subsea equipment; • Heating systems for flowlines, risers and subsea equipment; • Real time monitoring of the production and transportation system; • Subsea separation of water combined with the possible reinjection. Recently, some new technologies have emerged for detection, monitoring and control of critical parameters associated with the flow assurance followed by the implementation of combined corrective actions when anomalous conditions are identified [10,11]. There are several parameters that may be monitored and controlled by using the system data. For example, pressure, temperature, flow rate, fluid composition and strain, among other parameters, may be used to predict the onset of operational problems and thus allowing for timely corrective actions.

3. State Estimation Theory and the Kalman Filter State estimation is used to estimate the time varying state of a dynamical system based

on observations obtained during the evolution of the system and a mathematical model

for the system evolution for the state variable . This model, known as evolution model, together with the observation model constitute the state space representation of the system.

Page 4: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

The state estimation problem is usually referred to as non-stationary inverse problem [4,5,12,13]. The observation model describes the dependence between the state variable x to be estimated, that is, the variable to be estimated, and the measurements z through the general, possibly non-linear, function h. This can be represented by (1)

where are available at times , k=1, 2, 3, …. The vector represents the measurement noise or uncertainty. The subscript k =1, 2, 3, …, denotes a time instant

in a dynamic problem.

The vector is called the state vector and contains the variables to be dynamically estimated. The vector advances in time in accordance with the state evolution model, defined in the form (2) where f is, in the general case, a non-linear function of the state variables x and of the state noise or uncertainty vector is . Considering the classical discrete-time state estimation problem in the case of linear models, the evolution equation that describes the time dependence of the state variable x is in the form (3)

where is the linear evolution matrix of the state variable x, and the vector is assumed

to be known. The state uncertainty or noise is assumed to be a Gaussian random variable with zero mean and covariance Q. The linear observation equation is represented in the form

(4) where is the measurement vector and is the linear observation matrix. The

observation noise is assumed to be a Gaussian random variable with zero-mean and known covariance R. The state and observation noises are assumed to be mutually independent. Equations (3) and (4) constitute a linear and Gaussian state space representation of the system that can be solved using Kalman filter. The Kalman filter is the most widely known Bayesian filter. Its application is limited to linear models with additive Gaussian noises. This method, published in 1960, is a set of mathematical equations that recursively estimates the state variables of a system. The Kalman filter algorithm is presented below in table 1 and table 2 [3-5,12,13].

Page 5: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

Table 1 – Discrete time evolution update equations

(5.a)

(5.b)

Table 2 – Measurement update equations

(6.a)

(6.b)

(6.c)

Here, K is known as Kalman’s gain matrix and P is the covariance matrix.

4. An Example of a Physical Problem The physical problem under analysis in this paper consists of a pipeline two-dimensional cross-section represented by a circular domain filled with a stagnant liquid and bounded by a constant thickness pipe wall [14]. The fluid medium is considered homogeneous, isotropic and with constant thermal properties. The mathematical formulation of the physical problem is based on a shutdown condition, in which the produced fluid is considered to be without movement. Thus, the idealized pipeline thermal problem will be treated here as an unsteady heat conduction problem. Considering thermal symmetry, the dimensionless formulation of this heat conduction problem in cylindrical coordinates is given by equations (7) with the following boundary condition and initial condition [15]:

(7.a)

(7.b)

(7.c)

Page 6: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

Assuming that outside medium temperature is 4oC and initial fluid temperature is 80oC, the dimensionless groups are defined as

( dimensionless temperature) (8.a)

(dimensionless time) (8.b)

(dimensionless radius) (8.c)

(Biot number) (8.d)

Here, is the surrounding environment temperature, h is the convection heat transfer

coefficient, k is the thermal conductivity coefficient, and is the external radius. The analytical solution for this problem is obtained with separation of variables as [15]:

(9)

where the eigenfunctions and the norm are given by [15]

(10.a)

(10.b)

The eigenvalues are the positive roots of the transcendental equation:

(10.c)

Here, Jo is the Bessel function of order zero of the first kind. This analytical solution is used as a benchmark for the implementation of state estimation concept. The mathematical model can also be solved by using finite-differences resulting in a linear system of algebraic equations [15]:

(11.a)

where

Page 7: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

Here, N is the number of internal nodes in the finite-difference solution, F is an N x N coefficient matrix, is a temperature vector of order N x 1 and S is a known vector of order N x 1. Figure 2 compares the analytical and numerical solutions for the dimensionless temperature distribution at two different points within the medium assuming that there is no measurement noise (there are no errors in the measured data).

(a)

(b)

Figure 2. Analytical and numerical solutions for temperature evolution at (a) R=0.0 and (b) R=1.0

5. Results and Discussions In order to apply the Kalman filter [13], the state variables are considered as the transient temperatures in the interior region at the equidistant finite difference nodes. For the observation model it is assumed that the measured variable is taken at the boundary R =1.0. Figure 3 represents simulated measured temperature at the boundary surface in which the standard deviation for the measurement errors is constant and equal to 5oC. The effects of the standard deviation of the errors in the state model will be analyzed below.

Page 8: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

Figure 3. Simulated measured temperature with noise at the boundary surface

The following figures show the result of the comparison of exact, measured and predicted temperatures by using the Kalman filter at three different points R = 0.0, R = 0.5 and R = 1.0. In figure 4, the standard deviation of the evolution model errors is considered to be 1oC. Note that the predicted temperatures are in very good agreement with the exact ones, even at positions distant from the measurement location, such as R = 0.0.

(a)

(b)

(c)

Figure 4. Temperatures at (a) R = 1.0, (b) R = 0.5 and (c) R = 0.0 – Measured temperatures containing noise and evolution model containing errors

Page 9: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

In order to show the potential of the Kalman filter as a prediction tool for the temperature field inside the pipeline from limited temperature data available at its surface, figure 5 presents the temperature field from estimated temperature at a specific dimensionless time of the case above and compares it with the exact temperature field.

Figure 5. Comparison between exact and predicted temperature fields

Figure 6. Temperatures at R=1.0 - Predicted temperatures from the evolution model containing errors

(a)

(b)

Figure 7. Predicted temperatures at (a) R = 0.5 and (b) R = 0.0 without available measurements inside the domain

Page 10: ESTIMATION OF THE TEMPERATURE FIELD IN PIPELINES BY …

In a situation in which the standard deviation of the evolution model errors is large (10oC), the results for the predicted temperatures still tend to follow the measurements quite closely (figure 6). Thus, even in situations where measurements inside the domain are not available and where evolution models contain large errors, Kalman filter still provides predictions that are in good agreement with the exact values. In order to illustrate such a fact, figures 7 (a) and (b) present the behavior of the predicted temperatures at R = 0.5 and R = 0.0, respectively, in case when the evolution model error is large (10oC), tend to closely follow the exact temperature evolution.

6. Conclusions This paper presents the use of state estimation theory applied to flow assurance, through the prediction of the temperature field inside a pipeline from limited temperature data available at its surface. This state estimation problem was solved with the Kalman filter that provided results that are accurate when compared with the exact solution of the problem.

Acknowledgement. The authors would like to thank PETROBRAS for giving the permission to publish this work and hospitality of the Mechanical Eng. Departments at COPPE/UFRJ and FIU.

References

[1] Cardoso C B, Alves I N and Ribeiro G S (2003) Management of Flow Assurance Constraints, OTC 15222,

Offshore Technology Conference, May 5-8, Houston, Texas, USA. [2] Tebboth L (2003) High Temperature Tiebacks, Internat. Offshore Pipeline Workshop, New Orleans, USA [3] Kalman R (1960) A New Approach to Linear Filtering and Prediction Problems, ASME J. Basic Engineering,

vol. 82, pp 35-45. [4] Kaipio J and Somersalo E (2004) Statistical and Computational Inverse Problems, Applied Mathematical

Sciences 160, Springer-Verlag. [5] Maybeck P (1979) Stochastic Models, Estimation and Control, Academic Press, New York. [6] Su J (2003) Flow Assurance of Deepwater Oil and Gas Production – A Review, Proceeding of OMAE03, 22nd

International Conference on Offshore Mechanics and Arctic Engineering, June 8-13, Cancun, Mexico. [7] Lorimer S E and Ellison B T (2000) Design Guidelines for Subsea Oil Systems, Facilities Engineering into

the Next Millennium. [8] Denniel S, Perrin J and Felix-Henry A (2004) Review of Flow Assurance Solutions for Deepwater Fields,

OTC 16686, Offshore Technology Conference, May 3-6, Houston, Texas, USA. [9] Camargo R M T, Gonçalves M A L, Montesanti J R T, Cardoso C A B R and Minami K (2004) A Perspective

View of Flow Assurance in Deepwater Fields in Brazil, OTC 16687, Offshore Technology Conference, May 3-6, Houston, Texas, USA.

[10] Brower D V, Prescott C N, Zhang J, Howerter C and Rafferty D (2005) Real-Time Flow Assurance Monitoring with Non-Intrusive Fiber Optic Technology, OTC 17376, Offshore Technology Conference, May 2-5, Houston, Texas, USA.

[11] Brower D V and Prescott N (2004) Real Time Subsea Monitoring and Control Smart Field Solutions, Subsea Rio 2004 Conference, June 3, Rio de Janeiro, Brazil

[12] Scott D M and McCann H (2005) Process Imaging for Automatic Control, CRC Press, Taylor and Francis. [13] Orlande H R B, Dulikravich G S and Colaço M J (2008) Application of Bayesian Filters to Heat Conduction

Problem, EngOpt 2008 – International Conference on Eng. Optimization, June 1-5, Rio de Janeiro, Brazil. [14] Su J and Cerqueira D R (2001) Simulation of Transient Heat Transfer in Multilayered Composite Pipeline,

Proceeding of OMAE01, 20nd International Conference on Offshore Mechanics and Arctic Engineering, June 3-8, Rio de Janeiro, Brazil.

[15] Ozisik M (1993) Heat Conduction, Wiley, New York.