Abstract

Using downhole annular electromagnetic flow measurement to obtain annular flow in real-time is a foundation of microflow control drilling technology. The existing annular flow electromagnetic measurement method based on low-frequency rectangular excitation is affected by slurry interference and formation fluid invasion, which results in large noise generated on the electrode output signal. These noise causes the instability of the flow measurement system output and lower accuracy. Double-frequency rectangular wave excitation has the advantages of excellent zero-point stability attributed to low-frequency rectangular wave excitation and fast response speed with great ability to suppress slurry interference. First, the double-frequency rectangular wave excitation for annular flow electromagnetic measurement is researched, and its corresponding electromagnetic induction signal process is investigated. In order to verify the feasibility of downhole annular electromagnetic flow measurement, a flow verification platform for comparison of standard and detected parameters is established for simulation experiment, and the ability to suppress slurry interference and response speed of the technology in downhole slurry flow measurement are analyzed. The test results show that the downhole annular electromagnetic flow measurement based on double-frequency rectangular wave excitation can not only satisfy the requirements of regular electromagnetic flow measurement but also suppress the annular slurry interference effectively.

1. Introduction

With the expansion of oil and gas exploration field, the drilling security problems of deep-sea environment, complex strata, shallow gas layer, and matured oil fields caused by strata high pressure due to water injection are becoming severe. Blowout is caused by uncontrollable spouting of the formation fluid due to its higher pressure than the downhole space. Overflow, the precursor of a blowout, is formation fluid invasion into downhole space when the bottom pressure cannot balance the strata pressure. If it is not found in time, the drilling fluid contamination and tool erosion will be caused, and the blowout, in particular, will lead to serious accident and harm. Downhole microflow control drilling technology can deal with overflow and blowout effectively in narrow secure density window drilling, and using downhole annular flow measurement to obtain the annular flow information in real-time is the core of realizing downhole microflow control drilling [1].

Aiming at the special downhole environment in oil and gas while drilling, the limitation of borehole space to measurement system size, as well as the effect of downhole pressure, temperature, multiphased fluids containing oil and gas bubbles and solid particles plus the variations of downhole fluid domain on measurement, instrument measurement accuracy, and response characteristics, needs comprehensive consideration. In the literature, the researchers proposed different methods and solutions such as acoustics [24], pressure difference [5, 6], and electromagnetics [7, 8] for the downhole annular flow measurement while drilling. These methods have achieved some successes but have some problems. For instance, numerous theoretical and practical problems of non-Newtonian fluid measurement containing many solid particles remain unsolved in the acoustics method; throttling components obstructing the flowing of measured media are used in the pressure difference method, leading to the loss of part of the pressure as well as congestion at the throttling spots, and bringing severe hidden dangers and lower annular flow accuracy; the electromagnetic method is easily affected by slurry interference and formation fluid invasion, with large noise generated on the electrode output signal, which results in the instability of the annular electromagnetic flow measurement system. The problems of the electromagnetic method in the downhole annular process are studied in this paper.

The existing electromagnetic flowmeter mostly measures the flow of ordinary conductive fluids based on low-frequency rectangular wave excitation. Although low-frequency rectangular wave excitation has excellent zero-point stability, this technology is characterized by a lot of limitations, such as large jumps while measuring slurry fluid, which results in the extremely unstable output of the electromagnetic flow sensor and lowers accuracy. Meanwhile, when the flow changes rapidly, low-frequency rectangular wave excitation is not suitable due to its slow response speed. However, improving the excitation frequency of the electromagnetic flowmeter only, though workable to solve the problem of response speed and suppresses the slurry noise, affects the zero-point stability greatly and therefore leads to lower accuracy. With the continuous expansion of the application field of the electromagnetic flowmeter and development of excitation technology, the advanced excitation technology represented by double-frequency rectangular wave excitation appears [9]. Based on the theory of this technology, the downhole annular flow measurement technology with double-frequency wave excitation not only has excellent zero-point stability of low-frequency rectangular wave excitation but also has fast response speed and great ability to suppress slurry interference of the high-frequency one.

Kumemori Kenichi first developed the theory for double-frequency rectangular wave excitation in 1988. He offered the basic flow chart of double-frequency rectangular wave excitation and proposed the advantages of zero-point stability, fast response, slurry noise suppression, little polarization interference, high measurement accuracy, etc., but without putting out specific details [912]. Ichiro Wada developed the double-frequency time division excitation electromagnetic flow measurement system in 1992. Low-frequency square wave excitation and the high-frequency one worked in turns and flow signals of high and low frequencies were demodulated, respectively. Then, the weights of low-frequency and high-frequency results were selected according to the signal fluctuation rate, and the weights were added before output [13]. Xu et al. proposed a double-frequency excitation control method based on the exchange of high and low voltage power in 2012. This method solved the problems of low excitation frequency of instability, long slurry measurement delay, and large fluctuation [14]. Liu and Gong investigated a time multiplexing double-frequency rectangular excitation in 2013. Excitation was carried out through the multiplexing of high-frequency double value rectangular wave and a low-frequency one, and the hardware process was used to realize flow signal processing [15]. Zhao designed the measurement system of oil and gas double-phased flow rate based on a double-frequency rectangular wave excitation control [16].

In the drilling process, annular flow measurement is quite crucial. Lots of slurry noises are contained in the measured signals because the fluid is slurry in the annulus, and the zero stability is poor. These shortcomings lead to great difficulties in measurement. In this work, we proposed an annular electromagnetic flow measurement technology for drilling engineering by electromagnetic flowmeter based on double-frequency excitation. This technology can not only satisfy the requirements of regular electromagnetic flow measurement but also suppress the annular slurry interference effectively and meet the needs of rapid overflow detection. It is worth emphasizing that there is no literature reporting the use of the electromagnetic flow system based on double-frequency excitation to measure the flow rate of annular drilling fluid to our knowledge.

The remainder of this paper is organized as follows. Section 2 introduces the double-frequency rectangular wave excitation for annular flow electromagnetic measurement and its corresponding electromagnetic induction signal process. Section 3 describes the realization of the annular electromagnetic flow system based on double-frequency excitation and contains the results of the empirical analysis. Section 4 concludes.

2. Theory of Annular Electromagnetic Flowmeter Based on Double-Frequency Excitation

2.1. Model of Downhole Annular Flow Electromagnetic Measurement Principle

In 1970, according to Shercliff [17], Bevir proposed a three-dimensional weight vector calculation method, which made the electromagnetic flowmeter develop rapidly. The electromagnetic flowmeter also starts with Maxwell’s equations. According to Maxwell’s equations,

The constitutional relationship between the dynamic conductive medium satisfies

To simplify the question, it is proposed that the fluid magnetic permeability is even and equal to that in the vacuum space (nonmagnetic fluid); fluid conductivity is uniform and satisfies the Ohm Law Equation: , where is the fluid conductivity; the electric displacement can be neglected. Ignoring the induced electric field generated by the time-varying magnetic field (), other effects like the Hall effect and the thermoelectric effect are excluded.

The differential form of basic equations can be conducted from Maxwell equations:

Assume that and denote the electric potential generated when the fluids are flowing. and are, respectively, the virtual electric potential and current density vector generated by unit current flowing through the electrodes when the fluids are static. Then, assuming that A and B are electrodes made of good conductors, is the space volume. and are both zero on the pipe shell except for the electrodes. The following equation (4) can be obtained according to Green’s Second Theory through the above conditions [17, 18], and the annular electromagnetic flowmeter is a special case out of the traditional ones, which still satisfies the following formula: where . Here, is the potential between two electrodes, is the weight function vector, is the velocity of the annular flow, and is the magnetic flux vector. Suppose the fluid is static and the current density vector of the unit current flowing from positive to negative, is the integration of the annular volume.

In the traditional electromagnetic measurement system [19], the coil excitation system is installed outside the circular measurement pipe, with the electrodes on two sides of the pipe. Such installation can satisfy the need for flow measurement inside the traditional circular pipeline, while the excitation and signal extraction are both relatively easier. However, two conditions need realizing as for electromagnetic detection, which is similar to the downhole annular channel flow. One is the magnetic field generated on the annular channel, the other is the electrodes installed annularly to realize the signal extraction.

In order to satisfy the two conditions mentioned above, an annular channel flow electromagnetic detection model is proposed, as shown in Figure 1. In this model, two coil excitation structures M and N are designed to generate the magnetic field in certain directions. A pair of electrodes A and B is installed in the annular channel outwards. The area in blue is the magnetic field. The flow cuts the magnetic line while flowing through the magnetic field, generating electromotive force between the electrodes, from which the electromagnetic induction signal can be extracted.

Generally, there is no electric power and a magnetic source inside the annular flow electromagnetic measurement system, so the electrical potential G and magnetic potential F within the flow area satisfy the Laplace equations: and the virtual current density and magnetic flux vector can be further denoted by

In real applications, the annular flow velocity is measured. Therefore, the main goal of downhole annular flow electromagnetic measurement system research is to obtain the virtual current density and magnetic flux vector .

To figure out and , is determined by the physical structure size and excitation current information of the coil for the downhole annular flow electromagnetic measurement. Discussions on have been studied [8]. Only of the downhole annular flow electromagnetic measurement system, which has basically been formed in structure and size, is analyzed here.

According to Figure 1, assume that the conductivity of the wellbore wall is far greater than that of the drilling fluid. Therefore, the wellbore wall can be seen as the ideal grounding conductor, and the boundary condition can be obtained. Since the point electrode can be expressed as , equation (7) can be obtained: where and are the angular positions of electrodes A and B.

Separation of variables is applied to solve the differential equations (7). So it can be obtained that

According to the boundary condition , we have

Therefore,

Assume the angular position satisfies where is the deviation from axis . The clockwise deviation is defined as negative, while counterclockwise as positive.

According to the boundary condition ,

Similarly, according to the boundary condition ,

Linear superimposition of two equations constitutes a solution which satisfies the boundary condition; therefore,

By simplifying (14), equation (15) is obtained:

Assume that and satisfy

By simplifying (15), we have the virtual current vector

When and , a virtual current potential as in Figure 2(a) is painted according to equation (17). Figure 2(b) includes a virtual current potential contour and virtual current vector streamline graph, painted based on equations (17) and (18).

The virtual current density vector is where

Take , , and , and according to equation (19), the virtual current component contour is painted, as shown in Figure 3(a). Meanwhile, based on equation (20), the virtual current component is portrayed in Figure 3(b). As shown in Figure 3, the virtual current values around the signal detection electrode are relatively large and vary greatly at the boundary, which is distributed symmetrically.

2.2. Double-Frequency Rectangular Excitation

The excitation signal of the downhole annular flow measurement is crucial, which directly determines the stability and reliability of the system output signal. The excitation signal is generally generated before the flow signal of the electromagnetic flow measurement system. Therefore, the performance of the excitation circuit is directly related to zero-point stability and anti-interference ability of the system. The downhole annular flow electromagnetic measurement with low-frequency rectangular wave excitation has great zero-point stability but unstable electromagnetic flow sensor output affected by slurry interference. In particular when the fluid intrudes into the downhole formation rapidly, the response of the measurement system is relatively slow, not satisfying the measurement with rapid flow variation. Therefore, the double-frequency excitation principle is applied to realize the annular flow electromagnetic measurement system.

The analysis of double-frequency rectangular control process is as follows: as shown in Figure 4, unipolar square wave signals of 6.25 Hz and 75 Hz are generated by the EPWM2A and EPWM3A ports of the enhanced PWM output model. These signals are then sent to the channel controlling port of multicircuited analog switches A and B, in order to control the channel selection. Finally, the input values of the operational amplifier are exchanged among positive, zero, and negative, to realize the control to double-frequency wave excitation of the coil.

2.3. Demodulation of Electrode Output Signal under Double-Frequency Rectangular Wave Excitation
2.3.1. Principle of Amplitude Demodulation

In order to study the technology of the electrode output signal process of downhole annular fluid flow electrode flow, the electrode output signal can be simplified as the superposition of flow signal, differential interference signal, and working frequency interference signal. As shown in Figure 5, through high-frequency sampling time sequence, the second part of the electrode output signal half period is collected under high-frequency excitation as the accordance of flow calculation. Affected by the interference signal, the data in the latter part of the electrode output signal half period is relatively stable and can reflect flow information in the annular space. Assuming that the data segments obtained in the first high-frequency period of positive excitation are and , those in negative excitation are and similarly. Suppose points are collected in each high-frequency half period, as shown in

In the double-frequency rectangular wave excitation studied in this paper, the low-frequency excitation frequency is 6.25 Hz, and the amplitude and phase of the working interference imposed on , , , and are almost consistent, where . By pairwise subtraction of and , , and , with other interferences not considered, the working interference can be eliminated, and low-frequency direct current drift suppressed. The specific principle of the method is shown in where , , , and are data in the latter stable segment in each half period of the electrode output signal under positive and negative high-frequency excitations. is the amplitude demodulation result of the electrode output flow signal under double-frequency rectangular excitation.

2.3.2. Annular Flow Demodulation Algorithm

High-frequency sampling, with a half period of 6.66 ms, is used for 75 Hz square wave signal. Due to the differential interference, the stable part of the electrode output signal is very narrow, with only a limited number of points where sampling is workable. Through the practical test, the time period in the stable part of the electrode output signal is around 1.2 ms. The sampling frequency is set as 27 kHz, namely, with 32 data points collected every half period as effective data, recorded as (1 : 32).

To reduce the effect of other noises in the environment, a 16-point moving average filtering algorithm is performed to 32 data points first, written as , as shown in

Similarly, the second half period processing result is , the 13th period one is , and the 14th period is . According to the principle of amplitude demodulation, the value is shown in

Bubble sort is carried out on the demodulation result by using moving average filtering. The result of the bubble sort is recorded as . 8 data in the middle of the results are taken for averaging as the amplitude in the first period of the electrode output signal under the current high-frequency excitation. The specific result is shown in

A complete low-frequency 6.25 Hz period contains 12 high frequencies of 75 Hz periods. By amplitude demodulation algorithm, 6 groups of amplitude demodulation results can be obtained in a complete double-frequency excitation period, written as .

Similarly, the data in 12 complete double-frequency rectangular excitation periods are collected and processed and 72 amplitude demodulation data obtained. Then, 36-point moving average filtering is carried out on the 72 data, which are later processed by bubble sort. Finally, 18 data are taken as the result of amplitude demodulation while averaging, and this demodulation result is served as the accordance of the annular flow calculation.

3. System Design and Experiment Work

3.1. The Laboratory Annular Flow Electromagnetic Measurement System

Based on previous studies [2027], the block diagram of the annular flow electromagnetic measurement system using double-frequency excitation was designed, as shown in Figure 6. The system hardware included an electromagnetic flow sensor and electromagnetic sensor converter. The electromagnetic flow sensor was composed of a measurement pipe, excitation coil, and signal electrode. In order to realize digital signal processing, the hardware system of the double-frequency rectangular excitation measurement system was designed with the core of the digital processor. The hardware system module mainly included an excitation driving model, signal preprocessing model, signal modulation model, man-machine interface model, communications model, and power management model.

3.2. Experiment Setup

In order to verify the feasibility of the downhole annular electromagnetic flow measurement principle prototype based on the double-frequency rectangular wave excitation, a flow verification platform for comparison between standard EMF and electromagnetic annular flowmeter measurement system with double-frequency excitation prototype parameters, as shown in Figure 7, was established for simulation experiment. In the experiment, the workflow of the experiment platform is as follows. The principle prototype of ground annular flow electromagnetic measurement system was connected to measurement annular pipelines and a Yokogawa ADMAG AXW electromagnetic flowmeter with an accuracy level of 0.5 was taken as a standard meter. Then, with the valve opened, the transducer started, and the working frequency of the transducer set up, the machine was started at a certain speed under the control of the transducer. The centrifugal pump was driven to work, which pulled out the fluids in the storage tank. The relatively stable fluids driven by the pressure flowed through the standard electromagnetic flowmeter and ground annular electromagnetic measurement system principle prototype in turns. Finally, the fluid flow returned to the storage tank, which formed a whole circulation. In the test, the parameters were obtained by several instruments (thermometer, barometer, conductivity meter, standard flowmeter, and level meter) and the ground annular flow electromagnetic measurement system output annular flow signals, which were later sent to the computers.

3.3. Experiment Design

In order to analyze and determine the performance of the downhole annular electromagnetic flow measurement principle prototype based on the double-frequency rectangular excitation, the standard EMF and principle prototype were connected in series. The fluids flowed through the two devices, and the instrument index, measurement accuracy, repeatability, and other parameters were obtained by reading out the obtained data. In this experiment, the total flow rates of the drilling fluid ranged from 7.2 m3/h to 90.1 m3/h. Data at 6 different flow rates were taken by comparing the standard electromagnetic flowmeter reading to the annular flow electromagnetic measurement prototype.

The principle prototype response of the speed test was designed in order to analyze the sudden change of flow variation caused by the formation of fluid invasion. Then, the sudden change of annular flow channel was realized by controlling the opening level electronically. Finally, the response speeds of the standard meter and principle prototype were analyzed by recording the time relationship of the output data.

In order to verify the priority of the principle prototype in measuring the downhole annular slurry, the effect of the slurry on the principle prototype was analyzed and the slurry test designed. By adding bentonite into clean water, the slurry was obtained, which was tested in this experiment. The flows of the slurry within 1 minute through the standard meter and principle prototype were recorded with a 20 Hz working frequency of the transducer. At last, the effect of flow media on the standard meter and principle prototype was analyzed.

4. Result and Analysis

4.1. Calibration Results

A clean water flow verification experiment is designed after performing the amplitude demodulation algorithm of the principle prototype, in order to obtain the relationship between the induction electromotive force and the flow. By changing the working frequency of the transducer, the flow of the annular space is realized. After recording the induction electromotive force of two systems, the relationship between the output voltage of the principle prototype and the standard meter is obtained, as shown in Figure 8.

Through curve simulation, the curve equations of a primary curve can be obtained, as shown in where and , as the instrument coefficient of the principle prototype. According to the experimental analysis, an excellent linear relationship is built between them, which satisfies the measurement principle of the electromagnetic flowmeter.

4.2. System Test Results

In order to obtain the transient flow measurement accuracy of the principle prototype, verification is needed. After correct installation and lining of the electromagnetic flowmeter sensor, the principle prototype is verified according to the rules of verification. The data obtained in the verification is shown in Table 1.

According to the verification rules of the principle prototype, the distribution of the single verification relative value error at each flow point of the principle prototype is shown in Figure 9, and the relative value of each verification point of the principle prototype is shown in Figure 10.

According to the curve, when the flow is lower than 7 m3/h, that is, flow speed in the pipe is lower than 0.25 m/s, the relative indicative error is relatively larger, almost more than 1.796%. This problem is similar to the inability of the electromagnetic flowmeter measuring fluid at low speed. The maximum value of another single point indicative error is -0.898%, while the minimum is -0.029%. The error of each flow point fluctuates around 0%. The repeatability of each flow point is shown in Figure 11. When the flow speed inside the pipeline is lower than 0.22 m/s, the repeatability is poor. The repeatability of other points varies around 0.8%. With the increase of the annular flow, the repeatability gets better gradually. According to the data in Table 1, when the flow measurement of the prototype with this signal detection technology ranges within 9-90.1 m3/h, the relative error of the principle prototype has the maximum of 0.9%, which shows that the transient flow measurement accuracy of the principle prototype is on the 1.0 level.

4.3. Response Speed Test and Analysis

With the butterfly valve adjusted to the half open state, the output data of the standard meter and principle prototype were recorded until the output is stable. Similarly, the butterfly valve was adjusted to be fully open, while recording the output data of the standard meter and principle prototype. The response speed of the standard meter and principle prototype can be obtained by the comparison between the two devices.

The flow variation in Figures 12 and 13 and the data in Table 2 illustrate that the response time of the standard flowmeter is 7.9 s and 7.2 s, respectively, when the valve is adjusted from fully open to half open and half open to fully open. According to Figure 13, the response time of the principle prototype was 4.7 s and 4.3 s, respectively, when the valve is adjusted from half open to fully open and the other way round. Obviously, the response speed of the principle prototype is better than the standard meter, which can satisfy the demand of rapid overflow detection.

4.4. Influence and Analysis under Slurry Effect

The comparative analysis shows that for the standard meter, as shown in Figure 14, when the measured flow is clean water, the working frequency of the transducer is 20 Hz. The output flow data collected by the standard meter is mainly concentrated within 59-61 m3/h, without a large fluctuation. When the measured flow is slurry, the fluctuation of standard meter output increases, ranging within 59-64 m3/h, and is mainly concentrated in 61-62 m3/h.

The comparative analysis demonstrates that when clean water is under test, the output of the detected meter is mainly concentrated within 59-61 m3/h without large fluctuations. When the tested fluid is slurry, the output fluctuation of the detected meter is intensified obviously, in the range of 58-62 m3/h and concentrated mainly around 60 m3/h. According to the comparison between the data collected by the standard meter and detected flow measurement system studied in this paper, when the measured media is water, both flow fluctuations are not large, defined within 59-61 m3/h. When the slurry is tested, Figures 14 and 15 show that the fluctuation intensity of the standard meter is greater than the electromagnetic flow measurement system with double-frequency rectangular excitation. The conclusion can be drawn that the ability to suppress the slurry interference by double-frequency rectangular excitation is greater than the low-frequency rectangular excitation.

5. Conclusions

This paper described the downhole annular flow electromagnetic measurement technology based on double-frequency rectangular wave excitation. The conclusions can be drawn as follows: (1)Aiming at the need of the downhole annular drilling fluid flow measurement, the downhole annular flow electromagnetic measurement principle is analyzed. The double-frequency excitation technology satisfying the need of annular flow electromagnetic measurement is researched and its corresponding electromagnetic induction signal processing investigated(2)On the basis of previous research, a downhole annular flow electromagnetic measurement system is designed and realized(3)The flow verification platform of comparison between parameters obtained from standard and detected meters was built for the feasibility test of the electromagnetic flow measurement system with double-frequency excitation. The test results show that the downhole annular electromagnetic flow measurement based on the double-frequency rectangular wave excitation can not only satisfy the requirements of regular electromagnetic flow measurement but also suppress the annular slurry interference effectively and meet the needs of rapid overflow detection

Data Availability

The data sets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

Conflicts of Interest

The authors declare that there is no conflict of interests regarding the publication of this article.

Acknowledgments

This work is supported by the International Science and Technology Cooperation and Exchange Research Project of Sichuan Province (18GJHZ0195), the Downhole Intelligent Measurement and Control Science and Technology Innovation Team of Southwest Petroleum University (2018CXTD04), and the National Natural Science Foundation (51974273).