[0001] The present invention relates to a method of detecting a boundary of a fluid flowing through a pipe particularly but not exclusively to a method of detecting a slug in a pipeline.
[0002] The development of slugs in the oil, gas and water liquid mixture flow in multi-phase pipelines is a major and expensive problem for all oil producers. In particular, the development of slugs of liquid in the riser of multi-phase pipelines of an oil platform has a negative impact on the operation of offshore production facilities. Severe slugging can cause pollution, platform trips and plant shut down. In general, large and rapid flow changes cause overload of the fixed size catcher and separator resulting in spillage and pollution, unwanted flaring and reduce the operating capacity of the separation and compression units. This results from the relative small size of the catcher, often only 25 to 500 barrels, the need to allow larger margins for the fixed size separator, to meet the product specification, and the compression unit and to ensure safe operation with minimal flaring. Reducing the output of an oil rig or platform from its optimum for any or all of these in order to accommodate slugging flow reduces its output at the expense of revenue.
[0003] The slug flow starts with oil and water accumulating in the well. Gas collects behind a growing slug causing an increase in pressure such that the slug is forced to move followed by the gas. This flow appears in the horizontal pipeline as an intermittent, accelerating, concentrated mass which leaves the riser and accelerates/travels along the horizontal multi-phase flow pipeline to the limited size catcher and beyond.
[0004] Real time detection of slugs in their various forms has proved to be extremely difficult. The density of the pipeline contents can be measured continuously, resulting in a data stream, using a gamma ray densitometer. However, the detection of the front and rear of passing slugs within the pipeline flow, and therefore the density data streams, has previously proved an intractable problem.
[0005] The present invention seeks to provide a method of detecting slugs and thus help improve slug catching.
[0006] According to the present invention as provided a method of detecting a boundary of fluid flowing through a pipe, a method comprising receiving a time-varying signal corresponding to changes in content flowing through the pipe, analysing the signal in the time domain, the analysing including processing the signal to produce a processed signal, searching the processed signal for a predetermined feature so as to identify a location of the boundary if the predetermined feature is found.
[0007] The method may further comprise receiving another signal corresponding to changes in content flowing through the pipe, analysing the signal in a time domain the analysing including processing the another signal to produce another process signal, searching the another process signal for another predetermined feature so as to identify another location of the boundary if the another predetermined feature is found. The receiving of the signal and the another signal may comprise arranging first and second devices for producing the signals at positions along the pipe separated by a known distance.
[0008] The method may further comprise deriving a velocity of the boundary of the fluid from the first and second locations. Processing the signal may comprise amplifying the signal to produce an amplified signal, smoothing the amplified signal to produce a smooth signal, differentiating the smooth signal to produce a differentiated signal, further amplifying the differentiated signal to produce a processed signal. A further amplifying the differentiated signal may comprise squaring the differentiated signal while preserving a sign of the differentiated signal. Searching for the predetermined feature may include identifying locations where the processed signal has zero amplitude. Searching for the predetermined feature may include dividing the processed signal into periods between the locations where the processed signal has zero amplitude and determining a maximum magnitude value for the processed signal in each respective period. Searching for the predetermined feature may include determining a mean and a standard deviation of the maximum magnitude values and identifying which of the maximum magnitude values exceed the sum of the mean and standard deviation. The method may further comprise identifying a first boundary if the predetermined feature is found. The method may further comprise determining whether the first boundary is found within a predetermined time window and whether the first boundary meets a predefined set of criteria. The method may further comprise searching for a second predetermined feature and may include determining a threshold value and identifying where the magnitude of the signal exceeds the threshold magnitude. The method may comprise identifying a second boundary if the second predetermined feature is found. The method may further comprise determining whether the second boundary receives the first boundary. The signal may comprise converting an analogue signal into a digital signal and buffering samples of the digital signal. The analysing of the signal may comprise using a time-encoded signal processing and recognition (TESPAR) process.
[0009] Processing the signal may comprise filtering the signal to produce a filtered signal, for example by using a Savitzky Golay filter. Processing the signal may comprise subtracting an offset from the filtered signal so as to produce a signal for zero-crossing analysis. Searching the processed signal for a predetermined feature may include identifying locations where the signal has zero amplitude. Searching for a predetermined feature may include identifying locations where the signal has zero amplitude. Searching for the predetermined feature may further include identifying whether the signal is going from negative to positive. Identifying the location may comprise identifying a first boundary if the predetermined feature is found. The method may further comprise in determining whether the first boundary is found within the predetermined time window and whether the first boundary meets a predefined set of criteria. The method may comprise searching for a second predetermined feature that may comprise identifying the locations has zero amplitude and identifying a second boundary if the second predetermined feature is found. The method may further comprise determining whether the second boundary receives the first boundary. Searching for said predetermined feature may further include identifying whether the signal is going from positive to negative.
[0010] Processing the signal may include determining a distribution of magnitudes of the signal. Processing the signal may include filtering the diffuser filter signal such as linear filtering and low pass filtering. Filtering may comprise using a low pass 8
[0011] According to the present invention, there is also provided a computer program for executing the method.
[0012] According to the present invention, there is also provided apparatus for detecting a boundary of fluid flowing through a pipe, the method comprising input for receiving a time-varying signal corresponding to changes in content flowing through the pipe and a processor for analysing said signal in the time domain, the processor being configured to produce a processed signal, to search the processed signal for a predetermined feature and identify a location of the boundary if said predetermined feature is found.
[0013] An embodiment of the present invention will now be described, by way of example, with reference to the following drawings in which:
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038] Referring to
[0039] Referring to
[0040] To measure changes in the contents flowing through the pipe first and second measurement devices
[0041] Referring to
[0042] Referring to
[0043] In this example, the analysing apparatus
[0044] Referring to
[0045] The window
[0046] Values for estimated time of arrival (ETA)
[0047] Referring to
[0048] A user starts the process and the analyser apparatus
[0049] A period of “running-in” occurs. The analyser apparatus
[0050] Referring also to
[0051] Three different processes for detecting slugs may be used. Preferably, all three processes are used, although results of one of the processes may be selected and used.
[0052] Differentiated Waveform Process
[0053] Referring to
[0054] For each signal
[0055] For each buffer
[0056] Each signal
[0057] Referring to
[0058] A description of the TESPAR process is found in GB-A-2145864, which is incorporated herein by reference.
[0059] For each processed signal, a probability distribution function, for example a Gaussian distribution, is used to determine a standard deviation δ (step S
[0060] Each processed signal is examined for predefined features which are indicative of a slug boundary.
[0061] To identify a front of a slug, a search is made for epochs
[0062] Each sample
[0063] A check is made whether the samples
[0064] For each signal
[0065] For each signal
[0066] Using a corresponding value of threshold density, each signal
[0067] Steps S
[0068] For example, if the front of the slug is determined to be at time t
[0069] Similarly, if the end of the slug for the first signal
[0070] The length L of the slug is determined by calculating lengths L
[0071] and then:
[0072] An estimated time T of arrival is calculated using:
[0073] where S is the distance between the measurement apparatus
[0074] The slug characteristics
[0075] A check is made whether the stop button
[0076] The slug volume can be used to control an input control valve (not shown) to the catcher
[0077] Whole Waveform Process
[0078] Referring to
[0079] For each signal
[0080] For each buffer
[0081] Each signal
[0082] Referring to
[0083] A method of calculating the density offset
[0084] A base level threshold zx is calculated by taking the mean of the samples z in a buffer
[0085] A deviation from the mean pv from the value zx is then calculated by taking the mean of the values z-zx, for values of z which are greater than zx, i.e.:
[0086] A deviation from the mean nv from the value zx is then calculated by taking the mean of the values zx−z, for values z which are less than zx, i.e.:
[0087] The offset zz
[0088] The result is a processed signal suitable for searching for features which correspond to and which identify slug boundaries.
[0089] Referring to
[0090] A description of a TESPAR process is found in GB-A-2145864, which is incorporated herein by reference.
[0091] To identify a front of a slug, a search is made for zero crossings
[0092] A check is made whether the zero crossings
[0093] For each signal
[0094] To identify an end of a slug, a search is made for zero crossings
[0095] Steps S
[0096] The slug characteristics
[0097] A check is made whether the stop button
[0098] Process Including Non-Linear Filtering
[0099] Referring to
[0100] For each signal
[0101] For each buffer
[0102] Referring to
[0103] A density offset is calculated in a similar manner to calculation of density offset
[0104] The density offset is removed from the linearly filtered signal
[0105] Referring to
[0106] Referring to
[0107] Zero crossings are identified. The duration between adjacent zero crossings is determined. If the duration is less than a predetermined value, for example 25 samples, then the region between the zero-crossings is considered to be a short feature. The short feature is removed by determining sign and amplitude of the portion of signal
[0108] Referring to
[0109] Each signal
[0110] The front and rear of the slug are detected in a manner substantially similar that described in steps S
[0111] Referring to TABLE I Channel 1 Channel 2 Difference 2 3 −1 182 188 −6 1027 1036 −9 1123 1126 −3 1265 1281 −16 1388 1394 −6 1593 1616 1843 1853 −10 1860 1871 −11 2001 2007 −3 2088 2100 −12 2466 2496 −30 2583 2592 −9 2652 2659 −7 2691 2703 −12
[0112] It will be appreciated that many modifications may be made to the embodiment described above.