Foam thickness detection method and device based on microwave transmission method

Through the foam thickness detection method based on microwave transmission method, the accuracy problem of foam thickness detection in the gas-liquid separator is solved, precise measurement and automatic control of foam thickness are achieved, and the production efficiency and safety in the coal bed methane mining process are improved. sex.

CN118408499BInactive Publication Date: 2024-09-03XI'AN PETROLEUM UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410867173.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing liquid level measurement method does not perform well in detecting foam thickness in the gas-liquid separator, especially due to the absorption of radar waves by the foam and the scattering characteristics of the laser, resulting in poor measurement accuracy and reliability, which cannot meet the needs of coalbed methane mining processes. Automation control needs.

Method used

Using the foam thickness detection method based on microwave transmission method, by measuring the propagation coefficient and attenuation coefficient of microwave signals in foam and water, a foam thickness detection model is established, combined with signal processing and instrument calibration algorithms, to obtain accurate foam thickness values ​​and compare them Transmitted to the well site DCS system.

Benefits of technology

It achieves accurate and automatic measurement and display of the foam thickness in the gas-liquid separator, solves the problem of being unable to quantitatively add defoaming agent in the existing technology, and improves production efficiency and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118408499B
    Figure CN118408499B
Patent Text Reader

Abstract

The present invention belongs to the field of detection technology, and discloses a foam thickness detection method based on microwave transmission method, which measures the propagation coefficient and attenuation coefficient of microwave signals in foam and water by microwave transmission method; obtains the original data of foam thickness according to the obtained propagation coefficient and attenuation coefficient and the established foam thickness detection model; eliminates the environmental noise signal by signal processing algorithm; obtains the precise value of foam thickness by instrument calibration algorithm; transmits the precise value of foam thickness to the well site DCS system, and displays it through the display module. By automatically measuring, processing, displaying and transmitting the foam thickness in the gas-liquid separator, the injection amount of the defoaming agent can be intelligently and quantitatively controlled during the coalbed methane mining process. The invention solves the existing problem of being unable to quantitatively add defoaming agent, and can effectively help production personnel to timely understand the output status of gas wells, adjust the mining process, and improve production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of detection technology, and in particular to a foam thickness detection method and device based on a microwave transmission method. Background Art

[0002] In the process of implementing the foam injection drainage gas production process, after adding the foaming agent to the gas well, it is necessary to add the defoaming agent to the gas-liquid separator to eliminate the foam, otherwise it will affect the gas-liquid separation effect. The amount of defoaming agent injected depends on the foam content. At present, it is mainly through long-term staff stationed at the wellhead to regularly take samples from the gas-liquid separator, observe the foam thickness, and regularly add defoaming agent. In order to build a fully automated wellsite DCS (chemical automation control) system, realize the automatic measurement of the foam thickness in the gas-liquid separator, and transmit the results to the wellsite DCS system, it is necessary to build a gas-liquid separator foam thickness detection method and measurement device.

[0003] The measurement of foam thickness is actually the measurement of liquid level. At present, there are impedance detection method, infrared detection method, conductivity method, laser ranging method, ultrasonic ranging method and so on for measuring liquid level. At present, impedance detection method can be found in foam thickness detection method. Since there are obvious differences in the impedance between liquid, foam layer and air, and the capacitance effect in the foam layer is obvious, mainly capacitive reactance, a resistance sensor with multiple electrodes can be placed in the slurry to directly measure the height of the liquid and the thickness of the foam layer. Patent No. CN201911248416.4 discloses an impedance measurement device, method and electronic device, which calculates the impedance of the target part based on the voltage introduced into the target part by a high-frequency current corresponding to at least one of the first current and the second current and a low-frequency current. This method is applied in the measurement of foam thickness in gold ore slurry. Patent CN202210398565.4. This method belongs to active measurement, and the uppermost layer in the gold ore slurry is air, so this active measurement mode will not affect the measurement results; and the gas in the gas-liquid separator is natural gas, which is flammable and explosive, so this method is not feasible. Radar level measurement is a commonly used liquid level measurement method. In patent number CN202320221810.4, the time domain reflection principle is used. When the radar wave is emitted to the liquid surface and reflected at the interface, the liquid level height can be obtained by measuring the flight time of the reflected signal. However, due to the absorption characteristics of foam to radar waves, this method has poor measurement effect. In the patent with patent number CN202120072567.5, at least one transmitter is proposed for the reactor and the stirring tank, the transmitter transmits a signal, and at least one receiver is proposed, at least one path is formed between the receiver and the transmitter, the receiver receives the signal emitted by the transmitter that forms a path with the receiver, and obtains the foam position according to the change of the signal between the transmitter and the receiver that forms the path. Since the structure of this method is complex and the change of the signal is often affected by the characteristics of the medium in the tank, the foam position cannot be accurately judged. Patent No. 201010227289.2 discloses a method for directly measuring the thickness of flotation foam by laser, but due to the scattering of laser by foam, the laser cannot measure the foam by directly irradiating the foam to receive the reflection. Patent No. CN202120282656.2 discloses an oil-containing multiphase medium foaming performance evaluation and ultrasonic standing wave defoaming device, which includes an oil-containing multiphase medium foam reaction system and a foam thickness detection system. When the ultrasonic wave encounters an interface, a part of the ultrasonic wave will be reflected back by the interface, received by the receiver, and the distance between the measuring point and the echo is calculated. By measuring the distance between the measuring point and the echo at different positions for many times, the interface morphology can be obtained, and the height of the foam can be calculated from it. However, the ultrasonic ranging method requires accurate adjustment and positioning of the transmitter and receiver to ensure the accuracy of the measurement, and the foam is a surface that does not fully reflect the sound wave, which will absorb part or all of the sound wave pulse energy and reduce or eliminate the echo signal.Therefore, the use effect will be poor when there is foam on the measured liquid surface.

[0004] Therefore, in order to accurately measure the foam thickness, a foam thickness detection method and device based on microwave transmission method are proposed. Summary of the invention

[0005] The object of the present invention is to provide a foam thickness detection method and device based on microwave transmission method to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] The foam thickness detection method based on microwave transmission method comprises the following steps:

[0008] The propagation coefficient and attenuation coefficient of microwave signals in foam and water were measured by microwave transmission method;

[0009] According to the obtained propagation coefficient and attenuation coefficient, a foam thickness detection model is established to obtain the original data of foam thickness; when establishing the foam thickness detection model, firstly, the relative dielectric constant is measured, and the reflection coefficient and transmission coefficient of the foam sample are calibrated and measured multiple times using an antenna or a reflectometer to determine the relative dielectric constant of the foam sample; secondly, the propagation coefficient and attenuation coefficient are measured, and the propagation loss and attenuation coefficient of microwaves in foams of different thicknesses are determined through experiments; thirdly, modeling is based on the transmission method, and according to the electromagnetic characteristics and propagation behavior of the foam, based on the change law of microwaves when they are reflected on the foam surface or pass through the foam, combined with the transmission coefficient and the attenuation coefficient, a corresponding mathematical model, namely the foam thickness detection model, is established;

[0010] Eliminate environmental noise signals through signal processing algorithms; first, collect mixed signals containing environmental noise and target signals through sensors or receivers, and determine the cutoff frequency and passband gain of the filter according to the frequency range of the mixed signal, apply the filter to the collected mixed signal, filter it, and reconstruct the filtered signal using a filtered signal reconstruction algorithm to extract the target signal and eliminate the influence of environmental noise;

[0011] The precise value of the foam thickness is obtained through the instrument calibration algorithm; first, the sensor is placed above the foam and the received signal is recorded. Under laboratory conditions, a calibration experiment is first performed, using a foam sample with a known thickness to measure the sensor signal response and establish a relationship model between the foam thickness and the sensor signal response; the relationship model of the calibration experiment is used to obtain the corresponding experimental data and establish a mathematical model, and the precise value of the foam thickness is calculated based on the sensor signal response through the mathematical model;

[0012] The precise value of the foam thickness is transmitted to the well site DCS system and displayed through the display module (5).

[0013] Further preferably, when the microwave transmission method is used to measure the propagation coefficient and attenuation coefficient of microwave signals in foam and water, when the microwave source passes through the foam and water, the microwave electric field acts on the mixture of foam and water, thereby changing the amplitude and phase of the microwave signal; when the microwave passes through the foam, these bubbles will cause microwave scattering and absorption, thereby causing signal attenuation; by monitoring the change in signal value to detect the change in foam thickness, when the foam thickness increases, the signal attenuation will also increase accordingly, and when the foam thickness decreases, the signal attenuation will also decrease accordingly;

[0014] From the electromagnetic field theory, we know that if the input power of the non-directional antenna is (W), then the distance from the transmitting antenna The electric field strength at (m) and magnetic field strength The valid values ​​are:

[0015]

[0016] The distance from the transmitting antenna (m) The power density of radio waves per unit area It can be expressed as:

[0017]

[0018] If the transmitting antenna gain is If a directional antenna (dB) replaces the non-directional antenna, the above formula can be transformed into:

[0019]

[0020]

[0021] Receive power of receiving antenna (W) is equal to the radio wave power density at that point multiplied by the effective area of ​​the receiving antenna:

[0022]

[0023] In the formula, is the effective area of ​​the receiving antenna, which is related to the receiving antenna gain (dB) satisfies the relationship:

[0024]

[0025] In the formula, Expressed as wavelength, there is a close relationship between the wavelength λ and the frequency f of the electromagnetic wave, namely , where c is the speed of light (approximately m / s), so the receiving power of the receiving antenna (W) can be transformed into:

[0026]

[0027] The input power (W) and received power The ratio of (W) is defined as the basic propagation loss of a free space channel including the transmit and receive antenna gains. , it can be expressed as:

[0028]

[0029] Taking the logarithm of the above formula, we get

[0030]

[0031] It can be seen from the above formula that the microwave propagation loss in free space is related to the operating frequency. and propagation distance Proportional to; Under the condition that the propagation distance and working frequency are the same, the actual electric field strength at the receiving point is , the actual received power is (W), and the electric field strength is , the received power is (W), then the attenuation factor of the channel for:

[0032]

[0033] The propagation loss in space is for:

[0034]

[0035] The foam thickness is , the propagation loss in actual space Can be transformed into:

[0036]

[0037] The transmitting antenna gain of the antenna , receiving antenna gain , Operating frequency and the distance between the transmitting antenna and the receiving antenna are all known; when the foam thickness Channel attenuation factor caused by changes By measuring the attenuation factor of the channel The change value is used to detect the foam thickness changes.

[0038] Further preferably, since the power change when the microwave passes through the foam is not easy to be directly detected, the attenuation characteristics of the foam to the microwave are evaluated by using the change in voltage. In the system transmitting microwaves, the attenuation of the wave is inferred by monitoring the voltage change at the receiving end. When the microwave propagates in the foam, the structure and composition of the foam will cause the intensity of the wave to change, thereby affecting the voltage at the receiving end. If the microwave is attenuated, the intensity of the microwave signal received by the receiving end will be weakened, resulting in a decrease in the voltage at the receiving end. Therefore, by monitoring the change in the voltage at the receiving end, the propagation attenuation of the microwave in the foam can be indirectly inferred. Assuming that the voltage change at the receiving end after the microwave propagates through the foam is , and the received microwave power change is , the relationship between voltage change and power change can be expressed using the following formula:

[0039]

[0040] In the formula, is the proportionality coefficient, which is used to adjust the relationship between voltage change and power change.

[0041] The present invention also provides a technical solution:

[0042] A foam thickness detection device based on the microwave transmission method includes a signal excitation module arranged inside a gas-liquid separator, wherein the signal excitation module is connected to a microwave signal transmitting module by means of signal transmission, wherein the microwave signal transmitting module is connected to a microwave signal receiving module by means of signal transmission, wherein the microwave signal receiving module is connected to a microwave signal acquisition and processing module, and wherein the microwave signal acquisition and processing module is connected to a display module.

[0043] Further preferably, the signal excitation module comprises a radio frequency signal source, the radio frequency signal source is connected to a first isolator, the first isolator is connected to an attenuator, and the attenuator is connected to a first switch.

[0044] Further preferably, the microwave signal transmitting module includes a first transmitting antenna group and a second transmitting antenna group, and the first transmitting antenna group and the second transmitting antenna group are both connected to a first switch.

[0045] Further preferably, the microwave signal receiving module includes a first receiving antenna group and a second receiving antenna group, and the first receiving antenna group and the second receiving antenna group are respectively connected to a first transmitting antenna group and a second transmitting antenna group, the first receiving antenna group and the second receiving antenna group are also connected to a second switch, the second switch is connected to a second isolator and a signal receiver, and the second isolator is connected to a signal processor.

[0046] Further preferably, the signal processor is also connected to a display module.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] The propagation coefficient and attenuation coefficient of microwave signals in foam and water are measured by microwave transmission method; the original data of foam thickness is obtained based on the obtained propagation coefficient and attenuation coefficient and the established foam thickness detection model; the environmental noise signal is eliminated by signal processing algorithm; the precise value of foam thickness is obtained by instrument calibration algorithm; the precise value of foam thickness is transmitted to the well site DCS system and displayed through the display module. By automatically measuring, processing, displaying and transmitting the foam thickness in the gas-liquid separator, the injection amount of defoaming agent can be intelligently and quantitatively controlled during coalbed methane mining. This invention solves the existing problem of being unable to quantitatively add defoaming agent, and can effectively help production personnel to timely understand the output status of gas wells, adjust mining processes, and improve production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 The present invention is a measurement flow chart for measuring foam thickness in a gas-liquid separator;

[0050] Figure 2 It is a schematic diagram of the internal structure of the gas-liquid separator and the antenna installation structure applied to the present invention;

[0051] Figure 3 It is a schematic diagram of the connection between the signal excitation module and the microwave signal transmission module of the present invention;

[0052] Figure 4 This is a schematic diagram of the connection between the microwave signal acquisition and processing module and the display module of the present invention;

[0053] In the figure: 1. signal excitation module; 11. RF signal source; 12. first isolator; 13. attenuator; 14. first switch; 2. microwave signal transmitting module; 21. first transmitting antenna group; 22. second transmitting antenna group; 3. microwave signal receiving module; 31. first receiving antenna group; 32. second receiving antenna group; 4. microwave signal acquisition and processing module; 41. second switch; 42. second isolator; 43. signal processor; 44. signal receiver; 5. display module. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] See also Figure 1-Figure 4 , the present invention provides a technical solution:

[0056] The foam thickness detection method based on microwave transmission method comprises the following steps:

[0057] The propagation coefficient and attenuation coefficient of microwave signals in foam and water were measured by microwave transmission method.

[0058] Based on the obtained propagation coefficient and attenuation coefficient, a foam thickness detection model is established to obtain the original data of foam thickness; when establishing the foam thickness detection model, the relative dielectric constant is first measured, and the reflection coefficient and transmission coefficient of the foam sample are calibrated and measured multiple times using an antenna or reflectometer to determine the relative dielectric constant of the foam sample; secondly, the propagation coefficient and attenuation coefficient are measured, and the propagation loss and attenuation coefficient of microwaves in foams of different thicknesses are determined through experiments; again, modeling is performed based on the transmission method, and according to the electromagnetic properties and propagation behavior of foam, based on the change law of microwaves when they are reflected on the foam surface or pass through the foam, combined with the transmission coefficient and attenuation coefficient, a corresponding mathematical model, namely the foam thickness detection model, is established.

[0059] Environmental noise signals are eliminated through signal processing algorithms. First, a mixed signal containing environmental noise and target signals is collected through a sensor or receiver, and the cutoff frequency and passband gain of the filter are determined according to the frequency range of the mixed signal. The filter is applied to the collected mixed signal and filtered. The filtered signal is reconstructed using a filtered signal reconstruction algorithm to extract the target signal and eliminate the influence of environmental noise.

[0060] The precise value of the foam thickness is obtained through the instrument calibration algorithm. First, the sensor is placed above the foam and the received signal is recorded. Under laboratory conditions, a calibration experiment is first performed, using a foam sample with a known thickness to measure the sensor signal response and establish a relationship model between the foam thickness and the sensor signal response. The relationship model of the calibration experiment is used to obtain the corresponding experimental data, and a mathematical model is established. The precise value of the foam thickness is calculated based on the sensor signal response through the mathematical model.

[0061] The precise value of the foam thickness is transmitted to the well site DCS system and displayed through the display module (5).

[0062] In the present invention, when the propagation coefficient and attenuation coefficient of microwave signals in foam and water are measured by microwave transmission method, when the microwave source passes through the foam and water, the microwave electric field acts on the mixture of foam and water, thereby changing the amplitude and phase of the microwave signal; when the microwave passes through the foam, these bubbles will cause microwave scattering and absorption, thereby causing signal attenuation; by monitoring the change of signal value to detect the change of foam thickness, when the foam thickness increases, the signal attenuation will also increase accordingly, and when the foam thickness decreases, the signal attenuation will also decrease accordingly;

[0063] From the electromagnetic field theory, we know that if the input power of the non-directional antenna is (W), then the distance from the transmitting antenna The electric field strength at (m) and magnetic field strength The valid values ​​are:

[0064]

[0065] The distance from the transmitting antenna (m) The power density of radio waves per unit area It can be expressed as:

[0066]

[0067] If the transmitting antenna gain is If a directional antenna (dB) replaces the non-directional antenna, the above formula can be transformed into:

[0068]

[0069]

[0070] Receive power of receiving antenna (W) is equal to the radio wave power density at that point multiplied by the effective area of ​​the receiving antenna:

[0071]

[0072] In the formula, is the effective area of ​​the receiving antenna, which is related to the receiving antenna gain (dB) satisfies the relationship:

[0073]

[0074] In the formula, Expressed as wavelength, there is a close relationship between the wavelength λ and the frequency f of the electromagnetic wave, namely , where c is the speed of light (approximately m / s), so the receiving power of the receiving antenna (W) can be transformed into:

[0075]

[0076] The input power (W) and received power The ratio of (W) is defined as the basic propagation loss of a free space channel including the transmit and receive antenna gains. , it can be expressed as:

[0077]

[0078] Taking the logarithm of the above formula, we get

[0079]

[0080] It can be seen from the above formula that the microwave propagation loss in free space is related to the operating frequency. and propagation distance Proportional to; Under the condition that the propagation distance and working frequency are the same, the actual electric field strength at the receiving point is , the actual received power is (W), and the electric field strength is , the received power is (W), then the attenuation factor of the channel for:

[0081]

[0082] The propagation loss in space is for:

[0083]

[0084] The foam thickness is , the propagation loss in actual space Can be transformed into:

[0085]

[0086] The transmitting antenna gain of the antenna , receiving antenna gain , Operating frequency and the distance between the transmitting antenna and the receiving antenna are all known; when the foam thickness Channel attenuation factor caused by changes By measuring the attenuation factor of the channel The change value is used to detect the foam thickness changes.

[0087] In the present invention, when microwaves pass through foam, since the power change is not easy to detect directly, the attenuation characteristics of the foam to the microwaves are evaluated by using the change value of the voltage. In the system for transmitting microwaves, the attenuation of the wave is inferred by monitoring the voltage change at the receiving end. When microwaves propagate in the foam, the structure and composition of the foam will cause the intensity of the wave to change, which will in turn affect the voltage at the receiving end. If the microwaves are attenuated, the intensity of the microwave signal received by the receiving end will be weakened, resulting in a decrease in the voltage at the receiving end. Therefore, by monitoring the change in the voltage at the receiving end, the propagation attenuation of the microwaves in the foam can be indirectly inferred. Assuming that the voltage change at the receiving end after the microwaves propagate through the foam is , and the received microwave power change is , the relationship between voltage change and power change can be expressed using the following formula:

[0088]

[0089] In the formula, is the proportionality coefficient, which is used to adjust the relationship between voltage change and power change.

[0090] The present invention also provides a technical solution:

[0091] The foam thickness detection device based on the microwave transmission method includes a signal excitation module 1 arranged inside a gas-liquid separator, the signal excitation module 1 is connected to a microwave signal transmitting module 2 by signal transmission, the microwave signal transmitting module 2 is connected to a microwave signal receiving module 3 by signal transmission, the microwave signal receiving module 3 is connected to a microwave signal acquisition and processing module 4, and the microwave signal acquisition and processing module 4 is connected to a display module 5.

[0092] In the present invention, the signal excitation module 1 includes a radio frequency signal source 11, the radio frequency signal source 11 is connected to a first isolator 12, the first isolator 12 is connected to an attenuator 13, and the attenuator 13 is connected to a first switch 14. The microwave signal transmitting module 2 includes a first transmitting antenna group 21 and a second transmitting antenna group 22, and the first transmitting antenna group 21 and the second transmitting antenna group 22 are both connected to the first switch 14. The microwave signal receiving module 3 includes a first receiving antenna group 31 and a second receiving antenna group 32, and the first receiving antenna group 31 and the second receiving antenna group 32 are respectively connected to the first transmitting antenna group 21 and the second transmitting antenna group 22, and the first receiving antenna group 31 and the second receiving antenna group 32 are also connected to a second switch 41, and the second switch 41 is connected to a second isolator 42 and a signal receiver 44, and the second isolator 42 is connected to a signal processor 43. The signal processor 43 is also connected to the display module 5. The first transmitting antenna group 21 and the first receiving antenna group 31 are transmitting and receiving antenna groups sensitive to foam interfaces, and the second transmitting antenna group 22 and the second receiving antenna group 32 are transmitting and receiving antenna groups sensitive to water interfaces.

[0093] Example:

[0094] When the microwave transmission method is used to measure the propagation coefficient and attenuation coefficient of microwave signals in foam and water, when the microwave source passes through the foam and water, the microwave electric field acts on the mixture of foam and water, thereby changing the amplitude and phase of the microwave signal. Foam is a porous medium that contains many tiny bubbles. When microwaves pass through the foam, these bubbles will cause microwave scattering and absorption, thereby causing signal attenuation. The change in foam thickness is detected by monitoring the change in signal value. When the foam thickness increases, the signal attenuation will increase accordingly, and when the foam thickness decreases, the signal attenuation will decrease accordingly.

[0095] From the electromagnetic field theory, we know that if the input power of the non-directional antenna is (W), then the distance from the transmitting antenna The electric field strength at (m) and magnetic field strength The valid values ​​are:

[0096] (1)

[0097] The distance from the transmitting antenna (m) The power density of radio waves per unit area It can be expressed as:

[0098] (2)

[0099] If the transmitting antenna gain is If a directional antenna (dB) replaces the non-directional antenna, the above formula can be transformed into:

[0100] (3)

[0101] (4)

[0102] Receive power of receiving antenna (W) is equal to the radio wave power density at that point multiplied by the effective area of ​​the receiving antenna:

[0103] (5)

[0104] In the formula, is the effective area of ​​the receiving antenna, which is related to the receiving antenna gain (dB) satisfies the relationship:

[0105]

[0106] In the formula, Expressed as wavelength, there is a close relationship between the wavelength λ and the frequency f of the electromagnetic wave, namely , where c is the speed of light (approximately m / s), so the receiving power of the receiving antenna (W) can be transformed into:

[0107] (6)

[0108] The input power (W) and received power The ratio of (W) is defined as the basic propagation loss of a free space channel including the transmit and receive antenna gains. , it can be expressed as:

[0109] (7)

[0110] Taking the logarithm of the above formula, we get

[0111] (8)

[0112] It can be seen from the above formula that the microwave propagation loss in free space is related to the operating frequency. and propagation distance Proportional to; Under the condition that the propagation distance and working frequency are the same, the actual electric field strength at the receiving point is , the actual received power is (W), and the electric field strength is , the received power is (W), then the attenuation factor of the channel for:

[0113] (9)

[0114] The propagation loss in space is for:

[0115] (10)

[0116] The foam thickness is , the propagation loss in actual space Can be transformed into:

[0117] (11)

[0118] The transmitting antenna gain of the antenna , receiving antenna gain , Operating frequency and the distance between the transmitting antenna and the receiving antenna are all known; when the foam thickness Channel attenuation factor caused by changes By measuring the attenuation factor of the channel The change value is used to detect the foam thickness changes.

[0119] When microwaves pass through foam, the power change is not easy to detect directly. The change in voltage is used to express it, thereby evaluating the attenuation characteristics of the foam to microwaves. In the system that transmits microwaves, the attenuation of the wave is inferred by monitoring the voltage change at the receiving end. When microwaves propagate in foam, the structure and composition of the foam will cause the intensity of the wave to change, which in turn affects the voltage at the receiving end. If the microwaves are greatly attenuated, the intensity of the microwave signal received by the receiving end will be weakened, resulting in a drop in the voltage at the receiving end. Therefore, by monitoring the change in the voltage at the receiving end, the propagation attenuation of the microwaves in the foam can be indirectly inferred. Assuming that after the microwaves propagate through the foam, the voltage change at the receiving end is , and the received microwave power change is , the relationship between voltage change and power change can be expressed using the following formula:

[0120] (12)

[0121] In the formula, is the proportionality coefficient, which is used to adjust the relationship between voltage change and power change. Formula (12) describes the nonlinear relationship between voltage change and power change, so it is necessary to adjust the value of the proportionality coefficient according to the specific situation to ensure accurate representation of the attenuation of microwave propagation in foam.

[0122] When eliminating environmental noise signals through signal processing algorithms, first, collect a mixed signal containing environmental noise and target signals through sensors or receivers. Design a filter whose frequency characteristics can effectively filter out environmental noise while retaining the target signal. Common filter types include low-pass filters, high-pass filters, band-pass filters, etc. According to the characteristics of environmental noise and the frequency range of the target signal, determine the filter's cutoff frequency, passband gain and other parameters. Apply the designed filter to the collected mixed signal and filter it. Use the filtered signal reconstruction algorithm to reconstruct the filtered signal to extract the target signal and eliminate the influence of environmental noise.

[0123] When obtaining the precise value of foam thickness through the instrument calibration algorithm, a measuring instrument with a suitable sensor is used, the sensor is placed above the foam, and the signal received by the sensor is recorded. This signal can be a sound wave, microwave, or other signal related to foam thickness. Under laboratory conditions, a calibration experiment is first performed. In the calibration experiment, a foam sample with a known thickness is used to measure the corresponding sensor signal response. In this way, a relationship model between foam thickness and sensor signal response can be established. Using the data obtained from the calibration experiment, a mathematical model is established to relate the sensor signal response to foam thickness. This model can be linear or nonlinear, depending on the characteristics of the calibration data. In actual applications, the sensor is placed above the foam to be tested and the sensor signal response is collected. Using the established mathematical model, the thickness value of the foam is calculated based on the sensor signal response;

[0124] The precise value of the foam thickness is transmitted to the well site DCS system and displayed through the display module 5 .

[0125] like Figure 2 As shown in the figure, H1 is the height of the foam interface from the top of the gas-liquid separator; H2 is the height of the liquid interface from the top of the gas-liquid separator; H3 is the thickness of the foam; in formula (1), =H1+H2+H3. First, turn on the first switch 14 and the second switch 41, and after the fixed frequency microwave signal is output by the RF signal source 11 of the signal excitation module 1, it is transmitted to the attenuator 13 after passing through the first isolator 12, and the microwave signal is attenuated. Then, the attenuated microwave signal passes through the first transmitting antenna group 21 and the second transmitting antenna group 22 of the microwave signal transmitting module 2, and the first transmitting antenna group 21 and the second transmitting antenna group 22 cooperate with the first receiving antenna group 31 and the second receiving antenna group 32 to transmit the microwave signal to the second isolator 42 and the signal receiver 44 respectively. After the received microwave signal is processed by the signal processor 43, it is transmitted to the display module 5 for display, and the final data is transmitted to the well site DCS system at the same time. The display module 5 is a PC display machine.

[0126] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-limiting from any point of view, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any reference numerals in the claims should not be regarded as limiting the claims involved.

[0127] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A foam thickness detection method based on microwave transmission method, characterized in that: The following steps are involved: The propagation coefficient and attenuation coefficient of microwave signals in foam and water were measured by microwave transmission method; According to the obtained propagation coefficient and attenuation coefficient, a foam thickness detection model is established to obtain the original data of foam thickness; when establishing the foam thickness detection model, firstly, the relative dielectric constant is measured, and the reflection coefficient and transmission coefficient of the foam sample are calibrated and measured multiple times using an antenna or a reflectometer to determine the relative dielectric constant of the foam sample; secondly, the propagation coefficient and attenuation coefficient are measured, and the propagation loss and attenuation coefficient of microwaves in foams of different thicknesses are determined through experiments; thirdly, modeling is based on the transmission method, and according to the electromagnetic characteristics and propagation behavior of the foam, based on the change law of microwaves when they are reflected on the foam surface or pass through the foam, combined with the transmission coefficient and the attenuation coefficient, a corresponding mathematical model, namely the foam thickness detection model, is established; Eliminate environmental noise signals through signal processing algorithms; first, collect mixed signals containing environmental noise and target signals through sensors or receivers, and determine the cutoff frequency and passband gain of the filter according to the frequency range of the mixed signal, apply the filter to the collected mixed signal, filter it, and reconstruct the filtered signal using a filtered signal reconstruction algorithm to extract the target signal and eliminate the influence of environmental noise; The precise value of the foam thickness is obtained through the instrument calibration algorithm; first, the sensor is placed above the foam and the received signal is recorded. Under laboratory conditions, a calibration experiment is first performed, using a foam sample with a known thickness to measure the sensor signal response and establish a relationship model between the foam thickness and the sensor signal response; the relationship model of the calibration experiment is used to obtain the corresponding experimental data and establish a mathematical model, and the precise value of the foam thickness is calculated based on the sensor signal response through the mathematical model; The precise value of the foam thickness is transmitted to the well site DCS system and displayed through the display module (5).

2. The foam thickness detection method based on microwave transmission method according to claim 1 is characterized in that: When the microwave transmission method is used to measure the propagation coefficient and attenuation coefficient of microwave signals in foam and water, when the microwave source passes through the foam and water, the microwave electric field acts on the mixture of foam and water, thereby changing the amplitude and phase of the microwave signal; when the microwave passes through the foam, these bubbles will cause the microwave to be scattered and absorbed, thereby causing signal attenuation; by monitoring the change in signal value to detect the change in foam thickness, when the foam thickness increases, the signal attenuation will also increase accordingly, and when the foam thickness decreases, the signal attenuation will also decrease accordingly; From the electromagnetic field theory, we know that if the input power of the non-directional antenna is When The electric field strength at and magnetic field strength The valid values ​​are: The distance from the transmitting antenna The power density of radio waves per unit area It can be expressed as: If the transmitting antenna gain is If the directional antenna replaces the non-directional antenna, the above formula can be transformed into: Receive power of receiving antenna It is equal to the radio wave power density at that point multiplied by the effective area of ​​the receiving antenna: In the formula, is the effective area of ​​the receiving antenna, which is related to the receiving antenna gain Satisfies the relationship: In the formula, Expressed as wavelength, there is a close relationship between the wavelength λ and the frequency f of the electromagnetic wave, namely , where c represents the speed of light, so the receiving power of the receiving antenna is Can be transformed into: The input power With received power The ratio of the transmission and reception antenna gains is defined as the basic propagation loss of the free space channel , it can be expressed as: Taking the logarithm of the above formula, we get It can be seen from the above formula that the microwave propagation loss in free space is related to the operating frequency. and propagation distance Proportional to; Under the condition that the propagation distance and working frequency are the same, the actual electric field strength at the receiving point is , the actual received power is , and the electric field strength is , the received power is , then the attenuation factor of the channel is for: The propagation loss in space is for: The foam thickness is , the propagation loss in actual space Can be transformed into: The transmitting antenna gain of the antenna , receiving antenna gain , Operating frequency and the distance between the transmitting antenna and the receiving antenna are all known; when the foam thickness Channel attenuation factor caused by changes By measuring the attenuation factor of the channel The change value is used to detect the foam thickness changes.

3. The foam thickness detection method based on microwave transmission method according to claim 2 is characterized in that: When microwaves pass through foam, the power change is not easy to detect directly. The change in voltage is used to represent the attenuation characteristics of the foam to the microwaves. In the system transmitting microwaves, the attenuation of the wave is inferred by monitoring the voltage change at the receiving end. When microwaves propagate in foam, the structure and composition of the foam will cause the intensity of the wave to change, which in turn affects the voltage at the receiving end. If the microwaves are attenuated, the intensity of the microwave signal received by the receiving end will be weakened, resulting in a drop in the voltage at the receiving end. Therefore, by monitoring the change in the voltage at the receiving end, the propagation attenuation of the microwaves in the foam can be indirectly inferred. Assuming that after the microwaves propagate through the foam, the voltage change at the receiving end is , and the received microwave power change is , the relationship between voltage change and power change can be expressed using the following formula: In the formula, is the proportionality coefficient, which is used to adjust the relationship between voltage change and power change.

4. A foam thickness detection device using the foam thickness detection method based on microwave transmission method according to any one of claims 1 to 3, characterized in that: The invention comprises a signal excitation module (1) arranged inside a gas-liquid separator, wherein the signal excitation module (1) is connected to a microwave signal transmitting module (2) by means of signal transmission, the microwave signal transmitting module (2) is connected to a microwave signal receiving module (3) by means of signal transmission, the microwave signal receiving module (3) is connected to a microwave signal acquisition and processing module (4), and the microwave signal acquisition and processing module (4) is connected to a display module (5).

5. The foam thickness detection device according to claim 4, characterized in that: The signal excitation module (1) comprises a radio frequency signal source (11), the radio frequency signal source (11) is connected to a first isolator (12), the first isolator (12) is connected to an attenuator (13), and the attenuator (13) is connected to a first switch (14).

6. The foam thickness detection device according to claim 5, characterized in that: The microwave signal transmitting module (2) comprises a first transmitting antenna group (21) and a second transmitting antenna group (22), and the first transmitting antenna group (21) and the second transmitting antenna group (22) are both connected to a first switch (14).

7. The foam thickness detection device according to claim 6, characterized in that: The microwave signal receiving module (3) comprises a first receiving antenna group (31) and a second receiving antenna group (32), wherein the first receiving antenna group (31) and the second receiving antenna group (32) are respectively connected to a first transmitting antenna group (21) and a second transmitting antenna group (22), the first receiving antenna group (31) and the second receiving antenna group (32) are also connected to a second switch (41), the second switch (41) is connected to a second isolator (42) and a signal receiver (44), and the second isolator (42) is connected to a signal processor (43).

8. The foam thickness detection device according to claim 7, characterized in that: The signal processor (43) is also connected to the display module (5).