1. Field of the Disclosure
The present invention relates generally to predicting multiphase flow in pipes, and more particularly to predicting the horizontal flow liquid slip holdup.
2. Description of the Related Art
Multiphase flows are important to a large variety of industries including: geothermal power generation, nuclear reactor technology, electrical power generation, food production, chemical processes, aerospace, automotive, and petroleum industries. For example, multiphase flow occurs in almost all producing oil and gas wells and surface pipes transporting produced fluids. Significant differences in density and viscosity for the fluids make multiphase flow much more complicated than single phase flow. Although multi-phase flow is relevant to many industries, multiphase flow in the petroleum industry is unique due to the larger diameters pipes, the longer lengths of the pipes, and the hostile environments. Production of oil and gas has become more complicated due to offshore discoveries, initially in shallow and now in ultra deep water and in harsh arctic climates. Capital costs are very high in these regions, and production systems require design with more accuracy than possible with early empirical correlations. These empirical correlations are developed from measured data. The empirical correlations predict flow patterns, liquid holdup, and friction factor such that pressure drop can be predicted along a pipe. Using empirical correlations, engineers with the help of nodal-analysis software can design production systems.
Beggs and Brill multiphase flow correlation is one of the most widely used multiphase flow correlations in the industry due to its applicability for horizontal, vertical and inclined multiphase flow modeling as discussed in Neaim Sami and Aqqour M, “Evaluation of Horizontal Multiphase Flow Correlations”, Middle East Oil Shadow, Society of Petroleum Engineers, Bahrain, 1992, herein incorporated by reference in its entirety. It also takes into account the different horizontal and vertical flow regimes as discussed in Beggs, H. D. and Brill J. P.: “A Study of Two-Phase Flow in Inclined Pipes,” Journal of Petroleum Technology, p. 607 (May 1973), herein incorporated by reference in its entirety. It uses the general mechanical energy balance and the average in-situ density to calculate the pressure gradient. However, due to the complex flow regimes and its wide transition, the predictions using the Beggs Brill correlation become poor in certain practical conditions especially when flow pattern classification parameters are near to the boundaries of the flow regime limits. These poor predications primarily arise from the inaccurate calculation of slip liquid hold-up as discussed in James P. Brill and Hemanta Mukherjee, “Multiphase flow in wells”, Society of Petroleum Engineers Monograph Series Vol. 17, Richardson, Tex., 1999, herein incorporated by reference in its entirety.
Although some better empirical correlations (e.g. the Beggs Brill correlation) have survived the test of time, they all suffer from significant errors in some ranges of input variables because of their simplistic nature. Some of the errors in the Beggs Brill correlation can be improved using the fuzzy flow pattern map discussed in the detailed description. In general, all of the empirical correlations use flow pattern maps. In a flow pattern map the parameter space (e.g. parameters Froude number and no-slip holdup in the Beggs Brill correlation) is divided into regions associated by flow pattern. For example,
The original Beggs Brill two-phase flow model determined the flow pattern based on the Fronde number, NFR and the no-slip holdup, λL. The correlation rules for this model are:
L
1=exp(−4.62−3.757 X−0.481 X2−0.0207 X3),
L
2=exp(1.061−4.602 X−1.609 X2−0.179 X3−0.000635 X5),
and
H
L(θ)=HL(0){1+C[sin(1.8θ)−sin3(1.8θ)/3}].
where the zero angle liquid slip holdup is given by HL(0)=aλb/NFRc, C=(1−λ)ln(dλsNvlfNFRg) with the values for a, b,c, d, e, f and g are given for each flow pattern in Table 1 and Table 2.
Using the modified Beggs Brill correlation and flow pattern map the correlation rules are:
L1=316 λL0.0302,
L2=0.0009252 λL2.4684,
L3=0.1 λL−1.4516,
L4=0.5 λL6.738.
The expressions given above are used to calculate the liquid slip holdup, except for the case of a transition flow pattern. For transition flow pattern the liquid slip hold up is calculated using the expression
H
L,transition=[(L3−NFR)HL,segregated+(NFR−L2)×HL,intermittent]/(L3−L2).
In addition to predicting flow patterns and calculating the liquid slip holdup, the Beggs Brill correlation can be used to calculate the friction factor, and pressure drop along a pipe. Detailed descriptions of these calculations can be found in Beggs, H. D. and Brill J. P.: “A Study of Two-Phase Flow in Inclined Pipes,” Journal of Petroleum Technology, p. 607 (May 1973), and in Brill J. P. and Beggs H. D., “Two phase flow in pipes 6th Edition”, U. of Tulsa, Tulsa Okla. (1991).
In one aspect, the present disclosure provides an improved method of predicting liquid slip holdup in horizontal multiphase flow in pipes, where the Beggs Brill correlation is modified such that use fuzzy logic is used to calculate the Beggs Brill a, b, and c coefficients used in the Beggs Brill liquid slip holdup equation HL(0)=aλLb/NFRc. The method including the steps of defining fuzzy sets and membership functions for the inputs (i.e. Froude number, NFR, and a no-slip holdup, λL) and outputs (i.e. the Beggs Brill a, b, and c coefficients). Also, fuzzy inference rules are defined relating the input fuzzy sets to output membership functions. Froude number and no-slip holdup membership values are calculated by applying the single-valued Froude number and no-slip holdup to their respective membership values. Antecedents to the inference rules are derived by applying fuzzy logic operations to the Froude number and no-slip holdup membership values. The output membership functions are calculated by applying an implication method to the antecedents and output membership functions. Aggregating the output membership functions and applying the defuzzification method results in a single value for each of the Beggs Brill a, b, and c coefficients. The liquid slip holdup for horizontal flow is calculated by applying the resultant Beggs Brill a, b, and c coefficients and the input Froude number and no-slip holdup in the Beggs Brill liquid slip holdup equation.
In one aspect, the present disclosure provides that the defuzzification method is the centroid method.
In one aspect, the present disclosure provides that the fuzzy logic OR operation outputs the maximum of two input membership values, and the fuzzy logic AND operator outputs the minimum of two input membership values.
In one aspect, the present disclosure provides that the implication method employed by the fuzzy inference rules is the minimum implication method, wherein the output membership functions are truncated such that where the input membership function, exceed the antecedent the output membership function equal the antecedent.
In one aspect, the present disclosure provides that the aggregation rule is to sum over the output sets for all fuzzy inference rules.
In one aspect, the present disclosure provides that the aggregation rule is to take the maximum of all output sets for all fuzzy inference rules.
In one aspect, the present disclosure provides that the improved method of predicting liquid slip holdup in horizontal multiphase flow in pipes is performed by a device having computer storage and processing circuitry configured to perform the steps of the method.
A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:
Referring now to the drawings, wherein like reference numerals designate identical or corresponding parts throughout the several views.
The method of the present invention is an improvement over the Beggs Brill correlation method for predicting liquid slip holdup in multi-phase flow. The original Beggs Brill correlation and the modified Beggs Brill correlation discussed in the “description of related art” section are two of the mostly widely used multiphase flow correlations in the industry due to their applicability for horizontal, vertical and inclined multiphase flow modeling. They use the general mechanical energy balance and the average in-situ density to calculate the pressure gradient. While the Beggs Brill correlation works relatively well for tubing sizes between 1 and 1.5 inches, a broad spectrum of oil gravities, and a water-cut of up to 10%, the Beggs Brill predictions become poor in certain practical conditions, especially when the flow pattern classification parameters are near boundaries between flow regimes. These poor predictions of the Beggs Brill correlation usually arise from the inaccurate prediction of the slip liquid holdup.
The improved method differs from the Beggs Brill correlation and related methods for predicting multiphase pipe flow, by using a fuzzy flow-pattern map wherein fuzzy logic replaces traditional inequalities and fuzzy sets replace classical phase regimes. Like the Beggs Brill correlation, the fuzzy flow-pattern map uses the Froude number and the no-slip holdup (i.e. the inputs) to determine the Beggs Brill a, b, and c coefficients (i.e. the outputs). However, in contrast to the single-valued inputs and outputs in the Beggs Brill correlation, the inputs and outputs in fuzzy flow-pattern map are fuzzy sets, such that a a flow can simultaneously have non-zero membership values in multiple flow patterns, where each flow pattern is one of many fuzzy sets. This property of partial membership in multiple flow patterns enables graded continuous transitions between flow pattern regimes. These continuous transitions are in sharp contrast to the abrupt transitions at flow regime boundaries for the original and modified Beggs Brill flow pattern maps.
In addition to improving the Beggs Brill correlation method by using a fuzzy logic for the flow pattern map, the fuzzy method also incorporates additional flow regimes not considered in the Beggs Brill correlation. Also, using extended data sets published in Minami, K. and Brill, J. P.: “Liquid Holdup in Wet-Gas Pipelines, “Society of Petroleum Engineers Production Engineering, Vol. 2, p. 36 (February 1987), herein incorporated by reference in its entirety and hereafter referred to as the Minami and Brill Data set, and published in Abdul-Majeed, G. H.: “Liquid Holdup Correlations for Horizontal, Vertical and Inclined Two-Phase Flow,” Society of Petroleum Engineers (Unpublished Paper), Document ID 26279-MS, (Received Mar. 18, 1993) (available at URL http://www.onepetro.org/mslib/servlet/onepetropreview?id=00026279), herein incorporated by reference in its entirety and hereafter referred to as the Abdul Majeed data set, the fuzzy flow pattern map has been further refined beyond the Beggs Brill correlation, particularly in the high distributed and low segregated flow regimes, which were not captured by Beggs and Brill data set. The original Beggs Brill correlation has three flow pattern regimes (i.e. segregated, intermittent, and distributed), and the modified Beggs Brill correlation has four flow pattern regimes (i.e. segregated, intermittent, distributed, and transition). The fuzzy method can have many more flow regimes. For example, in one embodiment, the fuzzy method has eight flow pattern regimes for the no-slip holdup, and six flow pattern regimes for the Froude number for a matrix of 48 combinations of flow pattern regimes. These 48 regimes are reflected in the 48 inference rules discussed below.
As described above, the improved method for determining liquid slip holdup, presented here, has several advantages over the original and modified Beggs Brill correlations. First, in contrast to the traditional flow pattern maps used in the Beggs Brill correlations, which assume abrupt transitions between flow patterns, flow pattern maps using fuzzy logic can have continuous graded transition at boundaries between flow patterns due to the use of fuzzy sets. Second, the fuzzy method is refined to improve predictions for highly distributed and low segregated flow regimes using published data sets from the Minami and Brill Data setandAbdul Majeed data set. The highly distributed and low segregated flow regimes were not captured by the original Beggs Brill data set and correlation. The fuzzy method, presented here, outperforms the original and modified Beggs Brill correlations and other published models. Comparisons between the fuzzy method and other published models are shown in Table 3 and Table 4, where various error measures have been used for the comparison. The statistical parameters used to evaluate the performance of the various multiphase flow models are the average absolute percentage error (AAPE), average percentage error (APE), correlation coefficient (R2) and standard deviation.
E
i=100×(HL(estimated)−HL(measured)/HL(measured).
Absolute average percentage error (AAPE) is defined as
Average percentage error (APE) is defined as
Standard deviation (SD) is defined as
in Wet-Gas Pipelines,” SPEPE (February 1987) 36
for Horizontal, Vertical and Inclined Two-Phase Flow,”
In the typical fuzzy logic process for making decisions or predictions, the inputs and the outputs onto fuzzy sets are related to traditional single-valued variable and “crisp sets” using membership functions. The membership functions map input variables to membership values. The outputs are then derived from the input membership values using fuzzy inference rules and fuzzy logic. Specifically, the fuzzy flow pattern map operates based on fuzzy inference rules, where the antecedents to the inference rules are the fuzzy sets corresponding to the Froude number and the no-slip holdup and fuzzy logic operations based on these fuzzy sets. Also, the consequents of the inference rules are the fuzzy sets corresponding to the Beggs Brill a, b, and c coefficients. A general discussion of the fuzzy logic can be found in “Fuzzy logic Toolbox, User's Guide R2013b”, MathWorks, Inc, September 2013, herein incorporated by reference in its entirety, and found in T. J. Ross. Fuzzy Logic with Engineering Applications, 2nd ed., John Wiley & sons, 2004, herein incorporated by reference in its entirety.
The improved method of predicting the horizontal liquid slip holdup, HL (0), is briefly described by the steps of: (1) defining fuzzy sets and membership functions for each variable in the Beggs Brill equation for horizontal liquid slip holdup (i.e. for the Froude number, NFR, no slip holdup, λL, and Beggs Brill coefficients a, b, and c); (2) calculating the single-valued Froude number, NFR, and no slip holdup, λL, for a given set of flow parameters; 3) fuzzifying the inputs (i.e. the Froude number, NFR, and no slip holdup, λL) by applying the single-valued Froude number and no slip holdup to the respective membership functions, and obtaining the membership values for each input fuzzy set; (4) applying fuzzy logic operations on the input membership values to obtain antecedents for inference rules; (5) applying antecedents to the inference rules and using the implication operator on the Beggs Brill coefficient membership functions to obtain the consequent membership functions for each of the Beggs Brill coefficients; (6) for each of the Beggs Brill coefficients aggregate the consequent membership functions foomr all inference rules; (7) applying the defuzzification rule to the aggregated consequents in order to obtain a single-valued number for each Beggs Brill coefficient; (8) calculating the horizontal liquid slip holdup, HL(0), by applying the single-valued Beggs Brill a, b, and c coefficients to the Beggs Brill equation, HL (0)=aλLb/NFRc.
In one non-limiting embodiment of the fuzzy method for predicting liquid slip holdup, flow regime is predicted using the calculated no-slip holdup and Froude Number. For this model, there are two inputs (no-slip holdup and Froude Number), and three outputs (Beggs and Brill Parameters a, b and c) which are associated with a particular flow regime. After the prediction of a, b and c, the slip Hold-up is calculated, which is one of the basic parameters of pressure drop calculation.
In this model, triangular membership and trapezoidal membership functions are used for input/output variables. For defuzzification, centroid method is used. MATLAB R2011b software is used for building the model.
The input variable no-slip holdup is fuzzifying through the region of 0 to 1. There are 8 membership functions are used out of which ‘very low’ and ‘High medium’ are triangular and the rest are trapezoidal as shown in
For the input variable Froude number there are 6 membership functions used out of which very-low, low and high are triangular and the rest are trapezoidal. The membership functions used for fuzzification of Froude number covers the range of 0 to 5000 as shown in
For fuzzification of output variables there are 4 membership functions used for variable a, 11 membership functions used for variable b, and 4 membership functions used for variable c. All membership functions for output variables are triangular as shown in
The first three inference rules can be written as:
Rather than writing out all 48 inference rules long hand, as above, the 48 inference rules are summarized in Table 5 using a short hand that conveying the essential information. For each inference rule in Table 5 the value of the antecedent is the result of the fuzzy logic “AND” function between the membership values for the Froude number fuzzy set and no-slip holdup fuzzy set shown (i.e. for rule 1 the Froude number fuzzy set is “extremely-low” and the no-slip holdup fuzzy set is “very-low”). The antecedent for each inference rule will be a single number.
Each inference rule generates three consequent membership functions corresponding to the three Beggs Brill coefficients a, b, and c. These consequent membership functions are obtained by applying an implication method. For these results shown in
A unique consequent membership function is created for each inference rule and for each output variable. Thus for the 48 inference rules there will be 48 consequent membership functions for the Beggs Brill a coefficient. There will also be 48 additional consequent membership functions for the Beggs Brill b coefficient and 48 more consequent membership functions for the Beggs Brill c coefficient, for a total of 144 total consequent membership functions. For each Beggs Brill coefficient all of the consequent membership functions are aggregated to an aggregate membership function and then the defuzzification rule is applied.
There are choices for the aggregation rule and the defuzzification rule. For the results shown in
After performing the defuzzification for all consequents, the result is three single-valued numbers: the Beggs Brill a coefficient, the Beggs Brill b coefficient, and the Beggs Brill c coefficient. These three values along with the initial two values for the Froude number and the no-slip holdup are then applied to the Beggs Brill horizontal liquid slip holdup equation HL(0)=aλLb/NFRc.
Additional parameters such as the liquid slip holdup for inclined and vertical flows, the friction factor, and pressure gradient can be obtained using the fuzzy logic value for the horizontal liquid slip holdup equation and the original or modified Beggs Brill correlation and flow pattern map for all other parameters such as the Beggs Brill d, e, f and g coefficients.
In one non-limiting embodiment of the fuzzy method for predicting liquid slip holdup, the membership functions corresponding to the fuzzy sets for the Froude number and the no-slip holdup are trapezoid or triangle functions like those in
Each of the Beggs Brill a, b, and c coefficients also has a collection of membership functions and fuzzy sets defined. The membership functions for these outputs are all triangle functions, and the peak and corner values are given in Table 7 and Table 8. General the membership value is one at the peak and zero at the corners. However, for the Beggs Brill c coefficient membership functions, the peak membership value is different for different fuzzy sets (similar to those membership function shown in the bottom plot of
In one embodiment the fuzzy logic method for predicting liquid slip holdup is performed using digital circuits configured for performing mathematical and logical operations. This processing circuitry performs all of the functions described above of including: determining antecedents using predefined membership functions and logic operations to obtain an antecedent value, applying implication rules to obtain consequent membership functions, aggregating consequent membership functions and applying the defuzzification rule to obtain single valued outputs, and applying the single-valued output, i.e. the Beggs Brill a, b, and c coefficients, to obtain the liquid slip holdup using the Beggs Brill equations for liquid slip holdup.
Next, a hardware description of the device according to exemplary embodiments is described with reference to
Further, the claimed advancements may be provided as a utility application, background daemon, or component of an operating system, or combination thereof, executing in conjunction with CPU 1000 and an operating system such as Microsoft Windows 7, UNIX, Solaris, LINUX, Apple MAC-OS and other systems known to those skilled in the art.
CPU 1000 may be a Xenon or Core processor from Intel of America or an Opteron processor from AMD of America, or may be other processor types that would be recognized by one of ordinary skill in the art. Alternatively, the CPU 1000 may be implemented on an FPGA, ASIC, PLD or using discrete logic circuits, as one of ordinary skill in the art would recognize. Further, CPU 1000 may be implemented as multiple processors cooperatively working in parallel to perform the instructions of the inventive processes described above.
The device in
The device further includes a display controller 1008, such as a NVIDIA GeForce GTX or Quadro graphics adaptor from NVIDIA Corporation of America for interfacing with display 1010, such as a Hewlett Packard HPL2445w LCD monitor. A general purpose I/O interface 1012 interfaces with a keyboard and/or mouse 1014 as well as a touch screen panel 1016 on or separate from display 1010 General purpose I/O interface also connects to a variety of peripherals 1018 including printers and scanners, such as an OfficeJet or DeskJet from HewlettPackard.
A sound controller 1020 is also provided in the device, such as Sound Blaster X-Fi Titanium from Creative, to interface with speakers/microphone 1022 thereby providing sounds and/or music.
The general purpose storage controller 1024 connects the storage medium disk 1004 with communication bus 1026, which may be an ISA, EISA, VESA, PCI, or similar, for interconnecting all of the components of the device. A description of the general features and functionality of the display 1010, keyboard and/or mouse 1014, as well as the display controller 1008, storage controller 1024, network controller 1006, sound controller 1020, and general purpose I/O interface 1012 is omitted herein for brevity as these features are known.
In one embodiment, the fuzzy method for predicting no-slip holdup is used in a system to detect changes to pipe flow, such changes include the buildup of hydrates and wax (e.g. paraffins) within the pipe or leaks through the pipe wall. The system applies sensors at multiple points along the pipe in order to measure various characteristics of the multiphase flow such as flow rate, pressure, etc. The improved Beggs Brill method using fuzzy logic predicts the flow characteristics at measurement points upstream and downstream from the sensor positions. By comparing the predicted pressure drop using the improved Beggs Brill method with the measured pressure drop along the pipe as measuresd by the above mentioned sensors, the system alarms when the measured pressure drop differs significantly from the predicted pressure drop calculated using the improved Beggs Brill method. The improved Beggs Brill method improves the accuracy of the predicted pressure drop such that smaller alarm thresholds can be used without increasing the false alarm rate. In order to isolate and repair malfunctioning sections of pipe, a user of the system whould use multiple sensor locations along the pipe and also vary the flow rate through the pipe, in order to pinpoint which section of the pipe is responsible for deviations from expected operations.
In one embodiment, the fuzzy method for predicting no-slip holdup is used in a system with only a single multiphase sensor in the pipe. The multiphase sensor measures flow rate, pressure, and other characteristics of the multiphase flow. The system uses measurements from the sensor and the improved Beggs Brill method for predicting flow regime and pressure drop to predict how the system would function, if the pump rate was increased or decreased. For example, the system uses the improved Beggs Brill method to make predictions of the flow rate and flow pattern throughout the pipe in order to optimize flow rate and flow assurance. The optimization is performed using these feed-forward predictions of the flow rate to choose system parameters, such as the pump pressure or valve aperture, that are predicted to display more favorable operating characteristics such as more a stable flow pattern, faster flow rate, a flow rate with better long term assurance, lower accretion rates of hydrates on the pipe wall, or a combination of these desired characteristics.
Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein.
Thus, the foregoing discussion discloses and describes merely exemplary embodiments of the present invention. As will be understood by those skilled in the art, the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. Accordingly, the disclosure of the present invention is intended to be illustrative, but not limiting of the scope of the invention, as well as other claims. The disclosure, including any readily discernible variants of the teachings herein, define, in part, the scope of the foregoing claim terminology such that no inventive subject matter is dedicated to the public.