Sie sind auf Seite 1von 5

Journal of Petroleum Science and Engineering 73 (2010) 156160

Contents lists available at ScienceDirect

Journal of Petroleum Science and Engineering


j o u r n a l h o m e p a g e : w w w. e l s ev i e r. c o m / l o c a t e / p e t r o l

Estimation of sour natural gas water content


Yazdan Shirvany a, Gholamreza Zahedi b,, Mohsen Bashiri a
a
Dept. of Electronic, Faculty of Engineering, Razi University, Kermanshah, Iran
b
Process Systems Engineering Centre (PROSPECT), Faculty of Chemical and Natural Resources Engineering, Universiti Teknologi Malaysia, UTM Skudai, 81310 Johor Bahru, Johor, Malaysia

a r t i c l e i n f o a b s t r a c t

Article history: In this paper a new method based an articial neural network (ANN) for prediction of natural gas mixture
Received 14 January 2008 water content (NGMWC) is presented. H2S mole fraction, temperature, and pressure have been input
Accepted 28 May 2010 variables of the network and NGMWC has been set as network output. Among the 136 data set 80 data have
been implemented to nd best ANN structure. 56 data have been used to check generalization capability of
Keywords: the best trained ANN. Comparisons show average absolute error (AAE) equal to 1.437 between ANN
water content
estimations and unseen experimental data. ANNs also have been compared with two commonly used
natural gas
articial neural networks
correlations in gas industry. Results show ANN superiority to correlations. Especially in higher hydrogen
sulde content in spite of ANN good predictions there was considerable deviation between experimental
data and common correlations. The proposed ANN model is able to estimate NGMWC as a function of
hydrogen sulde composition up to 89.6 mol%, temperatures between 50 and 350 F and pressure from 200
up to 3500 psia.
2010 Elsevier B.V. All rights reserved.

1. Introduction water content of methane in the range of 122 F to 167 F and for
pressures from 200 to 2000 psia. Sharma and Campbell (1969)
Water is mixture with natural gas from the reservoir, through proposed a method for calculating the water content of sour gases,
production and processing, and is concerned in transmission. Natural originally designed for hand calculations, but it was slightly compli-
gas reservoirs always have water associated with them; gas in the cated. Bukacek suggested a relatively simple correlation for the water
reservoir is saturated by water. When the gas is produced water is content of sweet gas, based on using an ideal contribution and a
produced too from the reservoir directly. Other water produced with deviation factor. McKetta et al., published a chart for estimating the
the gas is water of condensation formed because of the changes in water content of sweet natural gas. This chart has been modied
pressure and temperature during production. In the transmission of slightly over the years and has been reproduced in many publications
natural gas further condensation of water is troublesome (Sharma and (GPSA, 1998). Ning et al. (2000) proposed a correlation based on
Campbell, 1969). It can increase pressure drop in the line and McKetta et al.'s chart. This correlation reveals how difcult it can be to
frequently causes corrosion problems. Natural gas freshly obtained correlate something that is as seemingly simple as the water content of
from gas elds cannot be transported before it has been dried. When natural gas. Maddox et al. (1988) developed a method for estimating
natural gas is liqueed, residual amounts of the water would freeze out the water content of sour natural gas. His method assumes that the
and block valves. Moist natural gas also has a lower caloric value. water content of sour gas is the sum of three terms of sweet gas
Highly pure, dry protective gases (e.g. nitrogen, argon) are essential for contribution (methane, CO2 and H2S).
many production processes in the chemical and technical industries. Most of the traditional methods work in the limited range of
For example, the use of dry protective gas increases the corrosion pressure and temperature and they have a good accuracy in this
resistance of a welding. Therefore, water should be removed from the limited range, which is near the ideal equilibrium condition. But in the
natural gas before it is offered to be transmitted in the pipeline. For high pressure and temperature, gases have nonlinear behavior that
these arguments, the water content of sour gas could be important for these methods cannot predict the gas behavior (Carroll, 2002). The
engineering attention. In a study of the water content of natural gases ANN as a good nonlinear function approximator can simulate the
Lukacs (1963) measured the water content of pure methane at 160 F nonlinear functions with high accuracy (Zahedi et al., 2005, 2006). In
and pressures up to 1500 psia. Gillespie et al. (1984) predicted the this paper the water content of the sour natural gas mixtures with
ANN method has been predicted. The results show the ANN's
capability to predict the measured data. We compare our results
Corresponding author. Tel.: +60 7 5535583; fax: +60 7 5581463. with the other numerical and analytical methods, e.g., Wichert and
E-mail address: grzahedi@fkkksa.utm.my (G. Zahedi). Bukacek. These comparisons conrm the superiority of the ANN

0920-4105/$ see front matter 2010 Elsevier B.V. All rights reserved.
doi:10.1016/j.petrol.2010.05.018
Y. Shirvany et al. / Journal of Petroleum Science and Engineering 73 (2010) 156160 157

whereas inputs to the neurons are given as,

ni = input signal to the ANN; 5

Ni
nj = wij oi + j ; 6
i=1

Nj
nk = wjk oj + k : 7
Fig. 1. Basic model of multi-inputs one-output neuron. j=1

Here, Ni and Nj represent the numbers of the units belonging to


method. The outline of this paper is as follows: In Section 2 the ANN input and hidden layers, while wij denotes the synaptic weight
concept is described. Section 3 provides results of the application of parameter which connects the neurons i and j. Threshold parameter
ANN for sour gas water content estimation. (bias) with respect to the neuron j is represented by j. In this research
the sigmoid function only in the hidden layer to realize smooth and
2. Articial neural networks moderate responses of the ANN and the linear function for the output
layer. This architecture of ANN is a good function approximator
ANN is constructed as a massive connection model of a simply (Haykin, 1999). The overall response of the present network is given
designed computing unit, called neuron. Fig. 1 illustrates a simple as,
model of n-inputs single-output neuron. All the input signals are !
Nj Ni
summed up as z and the amplitude of the output signal is determined
by the nonlinear activation function f(z). In this study, the modied ok = wjk f wij ni + j + k : 8
j=1 i=1
sigmoid function f(z) given as follows is implemented for modeling
studies (Haykin, 1999):
where:
kz
1e Ni
f z = : 1
1 + ekz nj = wij oi + j ; 9
i=1

In the limit of k = , as the slope approaches innity, f(z) behaves Nj


like a threshold function. Here the sigmoid function with moderate nk = wjk oj + k ; 10
j=1
slope has been selected so that the network can output a continuous
range of values from 1 to 1, which brings the differentiability of the  
network (Haykin, 1999). Multilayer perceptron (MLP) type network oj = f nj : 11
with three layers, which has been used for various applications
(Zahedi et al., 2006; Haykin, 1999). Fig. 2 depicts the architecture of ANN training is an optimization process in which an error function
the perceptron neural network. For clear notation, the indices i, j and k is minimized by adjusting the ANN parameters (weights and biases).
for the units corresponding to input, hidden and output layers, When an input training pattern is introduced to the ANN, it calculates
respectively have been used (see Fig. 2). Note also that ni and oi are an output. Output is compared with the real output (experimental
used to represent the input and output to the ith neuron, respectively. data) provided by the user. This difference is used by optimization
Inputoutput properties of the neurons in each layer can be simply technique to train the network. The error function to be minimized in
expressed in mathematical term as (Haykin, 1999): our study is mean square error (MSE), Eq, and is given as below
(Haykin, 1999):
oi = f ni ; 2
q 1 n  2
  E = yj oj 9
n j=1
oj = f nj ; 3

where yj is the target data and oj is the output of the neural networks.
ok = f nk ; 4 In our method the target data is the experimental data. In this

Fig. 2. Multilayer perceptron consisting input, hidden, and output layers.


158 Y. Shirvany et al. / Journal of Petroleum Science and Engineering 73 (2010) 156160

Table 2
Comparison of the ANN prediction results of the sour natural gas mixture water content
with the Wichert and BM methods.

H2S mol% T (F) P (psia) Experimental

7.96 200.0 200 2835.0


8.00 130.0 1500 111.0
9.06 200.0 200 2820.0
10.00 100.0 1100 81.0
15.71 120.0 200 414.8
16.00 159.8 1395 226.0
17.00 160.0 1010 292.0
17.46 120.0 200 526.5
18.10 120.0 200 378.8
19.00 160.0 611 442.0
21.00 160.0 358 712.0
27.50 160.0 1392 247.0
27.50 160.0 1367 247.0
29.00 160.0 925 328.0
Fig. 3. Performance of ANN based on number of hidden neurons. 43.80 120 200 568.4
47.30 200 200 3087.0
75.56 120 200 559.1
research the network has been studied via the fast convergence 81.25 200 200 2916.0
gradient-descend back-propagation method with momentum term 89.52 120 200 619.9
for the nonnegative energy function (Zahedi et al., 2009). According to
AAD%
the gradient-descend algorithm with momentum the changes of the
weights and bias, wt, t through the minimization of the energy Wichert BM ANN

function with respect to the weights wt, and bias, t, are as: W.C (calc) Div% W.C (calc) Div% W.C (calc) Div%

2506.0 11.60 2866.0 1.09 2890.0 1.94


t Eq t1 116.0 4.50 113.0 1.80 113.0 1.80
w = + w ; 10 2500.0 11.34 2855.0 1.24 2877.9 2.05
wt
75.0 7.41 83.0 2.47 81.3 0.37
380.1 8.36 430.5 3.66 420.3 1.33
t Eq t1 231.0 2.21 260.0 15.04 231.9 2.61
= + : 11
t 294.0 0.68 322.0 10.27 298.6 2.26
379.2 32.59 433.7 17.62 529.4 0.55
378.6 0.05 434.2 14.62 384.9 1.66
where , and t are the learning rate, momentum parameter and
418.0 5.43 467.0 5.66 447.0 1.13
number of iteration, respectively. The values of the learning rate and 707.0 0.07 723.0 1.54 709.3 0.38
momentum parameter are adaptively varied from 0 to 1 (Zahedi et al., 264.0 6.88 297.0 20.24 253.3 2.55
2009; Yam and Chow, 2000). 268.0 8.50 300.0 21.45 257.2 4.13
330.0 0.61 375.0 0.61 334.6 2.01
388.0 31.74 446.0 21.53 570.1 0.30
3. Results and discussions
2462.0 0.55

In this part of our study, the objective is to nd the optimal
performance ANN model for prediction of the water content. The MLP
architecture has been developed. The task was to nd the optimum
number of nodes in the hidden layer, which provides good estimates
of the output. The criterion for selection was MSE between network data are based on sour gas. 136 data sets were obtained. Among 136 data
output and training data. The results are illustrated in Fig. 3. In this sets 80 points were used for training the ANN and the remaining 56 data
work, as illustrated in Fig. 3, the optimum number of hidden nodes sets were used for accuracy checks of the simulation. The input variables
was found to be 302. In selecting data for modeling, and to ensure that of model and their operating ranges are as; hydrogen sulde
they represent normal operating ranges, off data were deleted from composition up to 89.6 mol% and is applicable for temperatures
the data list. The variables of the model and the operating ranges are between 50 and 350 F and pressure from 200 up to 3500 psia and
summarized in Table 1.
Data sets were collected from various components in this
simulation. For an ANN simulation of gas mixture water content,
data sets obtained by Ning et al. (2000), Lukacs (1963), and GPSA
Engineering Data Book (GPSA, 1998). These data sets are in wide range
of operating condition and suitable for achieving studies on the
behavior of natural gases.
Major components used in these references are: methane, propane,
hydrogen sulde, carbon dioxide and water. In this paper the analysis

Table 1
ANN model variables and their ranges.

Variable Range

H2S (mol%) 7.9689.52


T (F) 50350
P (psia) 2003500
Water content (lb/MMSCF) 40.63500
Fig. 4. Articial neural network prediction of gas mixtures water content, (lb/MMSCF).
Y. Shirvany et al. / Journal of Petroleum Science and Engineering 73 (2010) 156160 159

Fig. 5. Wichert prediction of gas mixtures water content, (lb/MMSCF).

nally the water content as output of ANN is in the range of 40.6 up to


3500 lb/MMSCF.
At low temperatures the water content is a function of temper- Fig. 7. Prediction of gas mixture water content,(lb/MMSCF).

ature and pressure and is accurately predicted using the mathematical


methods. Wichert correlation is valid only for H2S up to 55 mol% in A scatter plot of measured water content against the ANN model
sour gas mixtures. This only covers 68% of data of valid experimental predictions is show in Fig. 4. The prediction, which match measured
data. In this simulation of gas mixture water content we compared the unseen values, should fall on the diagonal line (line with intercept 0
results of ANN by Wichert and BukacekMaddox (B.M). At this and slope equal to 1). Almost all data lay on this line, which can
comparison of B.M and Wichert could not predict sour natural gas conrms the accuracy of the ANN model.
water content in a wide range of data (Wichert and Wichert, 1993; The data points are very close to the diagonal lines and this
Carroll (2002)). Table 2 provides generalization of proposed ANN conrms again the ANN can learn very well the relationships between
model (comparison of trained ANN with 56 unseen data) and also input and output data and generalized successfully. Good perfor-
comparison of ANN results with Wichert and BM correlations. mance of ANN is obvious when it is compared to other models and
For measuring the accuracy of the method two types of simulators. To check the performance of the ANN model, its
measurement errors have been dened: estimation and comparison with an existing simulator are available.
Figs. 5 and 6 provide the same comparison carried out in Fig. 4 with
1. Divergence: The error of each measurement is dened as:
Wichert and BM correlations respectively.
  Fig. 7 compares methods at the range of 1000 to 3500 lb/MMSCF of
ValueApproximate
Div% = 100 12 Water Content. Error of Wichert calculations at this area is more than
Value
BM and ANN calculations.

where value is the experimental value used to construct the


model and Approximate is the output of the neural networks at the 4. Conclusions
same conditions. Regardless of the model, this error can have either a
positive or negative values. However the better result is convergence In this paper ANN model is developed for prediction of natural sour
of Div to zero. gas mixtures water content. The model is trained based on measured
(experimental) data for three various inputs, (H2S, pressure and
temperature). The difference between ANN model prediction and
2. Absolute Average Divergence (AAD) is dened as: validation data was very small which conrmed the ability of ANN to
accurately predict unseen data.
N
1 p j ValueiApproximatei j The ANN model was also compared with two numerical and
AAD% = 100 13
Np i = 1 Valuei analytical models, Wichert and BukacekMaddox. The results showed
that the ANN model accuracy outperform the traditional simulators.
Where Np is the number of data.
References

Carroll, John J., 2002. The water content of acid gas and sour gas from 100 F to 220 F
and pressures to 10, 000 psia 81st Annual GPA Convention March 1113, 2002
Dallas, Texas, USA.
Gillespie, P.C., Owens, J.L., Wilson, G.M., 1984. Sour Water Equilibria Extended to High
Temperature and with Inerts Present AIChE Winter National Meeting, Paper 34-b,
Atlanta, GA, pp. 1114. Mar.
GPSA Engineering Data Book. Gas Processors Suppliers Association, Tulsa, OK.
Haykin, S., 1999. Neural Networks: A Comprehensive Foundation, 2nd. Prentice-Hall,
New York.
Lukacs, J.,1963. Water Content of Hydrocarbon Hydrogen Sulphide Gases, MSc Thesis,
Dept. Chem. Eng., University of Alberta, Edmonton, ABLukacs, J., Robinson, D.B.,
1962. Water Content of Sour Hydrocarbon Systems. Soc. Petrol. Eng. J. 3, 293297.
Maddox, R.N., Lilly, L.L., Moshfeghian, M., Elizondo, E., 1988. Estimating Water Content
of Sour Natural Gas Mixtures, Laurance Reid Gas Conditioning Conference, Norman,
OK. USA. Mar.
Ning, Y., Zhang, H., Zhou, G., 2000. Mathematical simulation and program for water
Fig. 6. BukacekMaddox prediction of gas mixture water content, (lb/MMSCF). content chart of natural gas. Chem. Eng. Oil Gas 29, 7577.
160 Y. Shirvany et al. / Journal of Petroleum Science and Engineering 73 (2010) 156160

Sharma, S., Campbell, J.M., 1969. Predict natural-gas water content with total gas usage. Zahedi, G., Jahnmiri, A., Rahimpor, M.R., 2005. A neural network approach for prediction of
Oil & Gas J. 136137 Aug. 4. the CuOZnOAl2O3 catalyst deactivation. Int. J. Chem. Reactor Eng. 3 Article A8.
Wichert, G.C., Wichert, E., 1993. Chart estimates water content of sour natural gas. Oil & Zahedi, G., Fgaier, H., Jahanmiri, A., Al-Enezi, G., 2006. Identication and evaluation of
Gas J. 6164. hydrotreater plant. Pet. Sci. and Tech. 24, 14471456.
Yam, J., Chow, T., 2000. A weight initialization method for improving training speed in Zahedi, G., Karami, Z., Lohi, A., 2009. A neural network approach for identication and
feed-forward neural network. Neurocomputing 30 (219), 232. modeling of delayed cocking plant. Int. J. Chem. Reactor Eng. 7 article A16.

Das könnte Ihnen auch gefallen