CN108252708B - Method for identifying working fluid level of oil well - Google Patents

Method for identifying working fluid level of oil well Download PDF

Info

Publication number
CN108252708B
CN108252708B CN201810168944.8A CN201810168944A CN108252708B CN 108252708 B CN108252708 B CN 108252708B CN 201810168944 A CN201810168944 A CN 201810168944A CN 108252708 B CN108252708 B CN 108252708B
Authority
CN
China
Prior art keywords
frequency
echo signal
working fluid
fluid level
frequency domain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810168944.8A
Other languages
Chinese (zh)
Other versions
CN108252708A (en
Inventor
仵杰
张乃禄
颜瑾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Shiyou University
Original Assignee
Xian Shiyou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Shiyou University filed Critical Xian Shiyou University
Priority to CN201810168944.8A priority Critical patent/CN108252708B/en
Publication of CN108252708A publication Critical patent/CN108252708A/en
Application granted granted Critical
Publication of CN108252708B publication Critical patent/CN108252708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E21EARTH DRILLING; MINING
    • E21BEARTH DRILLING, e.g. DEEP DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS
    • E21B47/00Survey of boreholes or wells
    • E21B47/04Measuring depth or liquid level
    • E21B47/047Liquid level

Abstract

The invention discloses a method for identifying the working fluid level of an oil well, which comprises the following steps: firstly, obtaining a working fluid level depth estimated value and collecting an echo signal; filtering the echo sampling signal; thirdly, frequency domain transformation of the band-pass filtering echo signal; fourthly, extracting the sound velocity of the echo signal; fifthly, data return-to-zero processing of the echo sampling signal; sixthly, filtering the return-to-zero echo sampling signal; seventhly, searching a sudden change peak value of the position of the working fluid level and a sampling point of the position of the working fluid level; eighthly, acquiring sampling time of the position of the working fluid level; and ninthly, identifying the actual depth of the working fluid level. According to different oil well depths, the method determines the window length of the band-pass filtering echo signal and the step length of the window, identifies the echo periodic signal based on the oil pipe coupling, extracts the sound velocity of the echo signal, calculates the sound velocity accurately, finds the sudden change peak value of the working fluid level position and the sampling point of the working fluid level position to obtain the sampling time of the working fluid level position, and solves the problem that the working fluid level signal cannot be directly identified when being submerged by noise.

Description

Method for identifying working fluid level of oil well
Technical Field
The invention belongs to the technical field of underground working fluid level identification, and particularly relates to a method for identifying the working fluid level of an oil well.
Background
In the oil production of oil wells in oil fields, the working fluid level depth is an important parameter for monitoring the exploitation condition of oil reservoirs. The working fluid level reflects the liquid supply capacity of the oil well, is used for detecting the oil extraction condition, analyzing the water injection effect and reflecting the oil well production conditions such as sand blockage, wax deposition and the like of the oil well. Two types of moving liquid level identification methods, namely a time domain method and a frequency domain method, exist, wherein the time domain method comprises manual identification, amplitude-zero crossing rate function method identification of moving liquid level, fuzzy clustering method and the like; the frequency domain method comprises spectral subtraction, wherein the spectrum of the sound wave reflection signal is subtracted from the spectrum of the background noise, and the signal spectrum is extracted, so that the working fluid level is identified. Under the normal condition, the well condition is good, and when no environmental noise, the working fluid level reflection signal is stronger, and the characteristic is obvious, can clearly see the reflection signal of corresponding working fluid level position on the measured signal, can obtain working fluid level position signal through manual discernment, and then confirms the working fluid level degree of depth. When the noise statistics are known, spectral subtraction can extract the meniscus information. However, the practical situation is very complex, the well condition is severe, various environmental noises exist, particularly, the noise is far greater than the reflected signal when the working fluid level of the oil well is measured during working, the simple statistical characteristic is not provided, and the working fluid level signal cannot be visually identified by naked eyes, so that the existing working fluid level identification method cannot be suitable for various oil well environments, and the universality is poor.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an oil well working fluid level identification method aiming at the defects in the prior art, the window length and the window step length of a band-pass filtering echo signal are determined according to different oil well depths, the echo periodic signal based on an oil pipe coupling is identified, the sound velocity of the echo signal is extracted, the sound velocity is accurately calculated, the abrupt change peak value of the working fluid level position and the sampling point of the working fluid level position are searched, the sampling time of the working fluid level position is obtained, the problem that the working fluid level signal cannot be directly identified due to noise submergence is solved, and the method is convenient to popularize and use.
In order to solve the technical problems, the invention adopts the technical scheme that: a method for identifying the working fluid level of an oil well is characterized by comprising the following steps:
the method comprises the following steps of firstly, obtaining a working fluid level depth estimated value and acquiring an echo signal: obtaining working fluid level depth estimated value Y by using installation position of oil pump in oil wellhControlling a sound generator to send an infrasonic signal by using a computer, reflecting the infrasonic signal in an annular space formed between an oil pipe and a sleeve pipe through a working fluid level, the oil pipe and an oil pipe coupling to form an echo signal, receiving the echo signal by using an echo receiver, and using a sampling frequency f for a working fluid level measuring instrumentsAcquiring the echo signal to obtain an echo sampling signal s (i), and sending the echo sampling signal s (i) to a computer, wherein i is the number of sampling points;
the device comprises a sound wave generator, an echo receiver, a computer, a dynamic liquid level measuring instrument and a control system, wherein the sound wave generator and the echo receiver are both arranged at a wellhead of an oil well, the input end of the sound wave generator is connected with the output end of the computer, the output end of the echo receiver is connected with the input end of the dynamic liquid level measuring instrument, and the dynamic liquid level measuring instrument is communicated with the computer in a wired or; the oil pipe is arranged in the sleeve and is formed by sequentially connecting a plurality of pipe joints, and two adjacent pipe joints are connected by adopting an oil pipe coupling;
step two, filtering the echo sampling signal, wherein the process is as follows:
step 201, pre-estimating fundamental frequency f of infrasonic waves on single pipe jointBThe range of (A): according to the formula fBmin≤fB≤fBmaxEstimating fundamental frequency f of infrasonic wave on single pipe jointBWherein f isBminIs the fundamental minimum frequency of infrasonic waves on a single pipe joint, an
Figure GDA0002791557700000021
fBmaxFor the fundamental maximum frequency of infrasonic waves on a single pipe section and
Figure GDA0002791557700000022
l is the length of a single pipe section, vminIs the minimum sound velocity, v, of the propagation of infrasonic waves in the annular space formed between the tubing and the casingmaxThe maximum sound velocity of the infrasonic wave propagating in an annular space formed between the oil pipe and the casing pipe;
step 202, obtaining the range of the normalized fundamental wave frequency of the infrasonic wave on a single pipe joint through normalization processing: according to the formula
Figure GDA0002791557700000023
For fundamental minimum frequency f of infrasonic wave on single pipe jointBminNormalization is carried out to obtain the normalized fundamental wave minimum frequency f of the infrasonic wave on a single pipe jointNminFor the maximum frequency f of fundamental wave of infrasonic wave on a single pipe jointBmaxNormalization is carried out to obtain the normalized fundamental wave maximum frequency f of the infrasonic wave on a single pipe jointNmaxAccording to fNmin≤fN≤fNmaxObtaining the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNRange of (a), (b), (c) and (d)NFor fundamental frequency f of infrasonic waves on a single pipe sectionBNormalizing the result;
step 203, selecting a band-pass filter: the computer selects a band-pass filter based on a Kaiser window function, and the lower limit frequency f of the band-pass filterBL=ρ1fNminUpper limit frequency f of said band-pass filterBU=ρ2fNmaxWhere ρ is1Is a lower limit frequency coefficient and is more than 0.5 rho1<1,ρ2Is an upper limit frequency coefficient and 5 < rho2<8;
Step 204, filtering: the computer uses the band-pass filter selected in step 203 to perform band-pass filtering on the echo sampling signal s (i) to obtain a band-pass filtered echo signal sp(i);
Step three, frequency domain transformation of the band-pass filtering echo signal, the process is as follows:
step 301, determining the starting position of the window: computer slave band-pass filtering echo signal sp(i) The first sampling point in (a) starts to look up backwards, and a band-pass filtered echo signal s is determinedp(i) Stopping searching after three continuous echo periodic signals, and filtering the band-pass echo signal sp(i) The starting position of the first echo periodic signal in the three continuous echo periodic signals is used as the starting position of the window;
step 302, determining the window length of the band-pass filtering echo signal and the step length of the window: according to the formula
Figure GDA0002791557700000031
Calculating the number q of pre-estimated sampling points on a single pipe joint, and when the alpha multiplied by L is more than or equal to YhWindow length of time-band-pass filtered echo signal
Figure GDA0002791557700000032
At this time, the window does not need to set the step length Δ Q of the window, and step 303 is executed; when in use
Figure GDA0002791557700000033
And the window length Q of the band-pass filtering echo signal is equal to alpha Q, and at the moment, the step length delta Q of the window satisfies the following conditions: when Q is more than delta Q and less than or equal to 3Q, executing step 304; when in use
Figure GDA0002791557700000034
And the window length Q of the band-pass filtering echo signal is equal to alpha Q, and at the moment, the step length delta Q of the window satisfies the following conditions: when Q is more than delta Q and less than or equal to 3Q, executing step 305; wherein alpha is the number of pipe sections selected continuously, and alpha is more than 30 and less than 40 [. alpha. ]]Is a rounding function;
step 303, the computer filters the band-pass echo signal sp(i) After zero filling processing, fast Fourier transform is carried out to obtain frequency domainEcho signals f (k);
step 304, the computer filters the band-pass echo signal sp(i) Carrying out beta frequency domain transformation by using the step length of Q as the window length and delta Q as the window to obtain a frequency domain echo signal sequence Fβ(k) Wherein beta is more than or equal to 2 and less than or equal to 4;
band-pass filtering echo signal s by computerp(i) When the frequency domain transformation is carried out for beta times by taking Q as the window length and delta Q as the step length of the window, zero filling processing is adopted and then fast Fourier transformation is carried out to obtain a frequency domain echo signal sequence Fβ(k);
Step 305, the computer filters the band-pass echo signal sp(i) Carrying out gamma frequency domain transformation by using the step length of Q as the window length and delta Q as the window to obtain a frequency domain echo signal sequence Fγ(k) Wherein gamma is more than 4 and less than 15;
band-pass filtering echo signal s by computerp(i) Zero padding is adopted when gamma-time frequency domain transformation is carried out by using the step length with Q as the window length and delta Q as the window length, and then fast Fourier transformation is carried out to obtain a frequency domain echo signal sequence Fγ(k);
Step four, extracting the sound velocity of the echo signal, and the process is as follows:
step 401, the computer extracts m times of frequency multiplication frequency corresponding to the maximum energy value of the frequency domain echo signal, and when the frequency domain echo signal is the frequency domain echo signal F (k), step 402 is executed; when the frequency domain echo signal is a frequency domain echo signal sequence Fβ(k) Then, step 403 is executed; when the frequency domain echo signal is a frequency domain echo signal sequence Fγ(k) Then, step 404 is executed, m is a positive integer not greater than 5;
step 402, the computer processes the frequency domain echo signal F (k) from the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe jointNAccurate value ofIs a frequency f which is a 1-fold multiple of the frequency domain echo signal F (k)N1Then the frequency values are respectively 2f on the frequency domain echo signals F (k)N、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000041
Calculating the sound velocity v of the echo signal;
when f isNminAnd fNmaxThere is no spectral line with maximum energy, the computer search is at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is 2 times of the frequency doubling frequency f of the frequency domain echo signal F (k)N2Then the frequency values are respectively
Figure GDA0002791557700000051
And
Figure GDA0002791557700000052
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhood N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000053
Calculating the sound velocity v of the echo signal;
step 403, the computer compares the frequency domain echo signal sequence Fβ(k) In each frequency domain echo signal, respectively carrying out echo signal sound velocity calculation, and a frequency domain echo signal sequence Fβ(k) The echo signal sound velocity calculation methods of each frequency domain echo signal are the same; computer to frequency domain echo signal sequence Fβ(k) All the echo signals of any frequency domain have the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxCorresponding to the spectral line with the highest energyNormalized frequency value, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe sectionNThe accurate value of is a frequency domain echo signal sequence Fβ(k) Frequency f of 1 times of the echo signal of the selected frequency domainN1Then in the frequency domainβ(k) The frequency values of the echo signals of the selected frequency domain are respectively 2fN、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000054
Calculating a frequency domain echo signal sequence Fβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainε
When f isNminAnd fNmaxThere is no spectral line with maximum energy, the computer search is at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is the frequency domain echo signal sequence Fβ(k) Frequency f of 2 times of the echo signal of the selected frequency domainN2Then in the frequency domainβ(k) Wherein the frequency values of the echo signals of the selected frequency domain are respectively
Figure GDA0002791557700000055
Figure GDA0002791557700000056
And
Figure GDA0002791557700000057
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhood N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000058
Calculating a frequency domain echo signal sequence Fβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainεWhere ε is the frequency domain echo signal sequence Fβ(k) The number of the intermediate frequency domain echo signal is not less than epsilon and not more than beta;
according to the formula
Figure GDA0002791557700000061
Calculating the sound velocity v of the echo signal;
step 404, the computer compares the frequency domain echo signal sequence Fγ(k) In each frequency domain echo signal, respectively carrying out echo signal sound velocity calculation, and a frequency domain echo signal sequence Fγ(k) The echo signal sound velocity calculation methods of each frequency domain echo signal are the same; computer to frequency domain echo signal sequence Fγ(k) All the echo signals of any frequency domain have the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe sectionNThe accurate value of is a frequency domain echo signal sequence Fγ(k) Frequency f of 1 times of the echo signal of the selected frequency domainN1Then in the frequency domainγ(k) The frequency values of the echo signals of the selected frequency domain are respectively 2fN、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000062
Computing frequency domain loopsWave signal sequence Fγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφ
When f isNminAnd fNmaxThere is no spectral line with maximum energy, the computer search is at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is the frequency domain echo signal sequence Fγ(k) Frequency f of 2 times of the echo signal of the selected frequency domainN2Then in the frequency domainγ(k) Wherein the frequency values of the echo signals of the selected frequency domain are respectively
Figure GDA0002791557700000063
Figure GDA0002791557700000064
And
Figure GDA0002791557700000065
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhood N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000066
Calculating a frequency domain echo signal sequence Fγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφWhere phi is the frequency domain echo signal sequence Fγ(k) The number of the intermediate frequency domain echo signals is phi less than or equal to gamma;
computer to frequency domain echo signal sequence Fγ(k) Screening gamma echo signal sound velocities corresponding to the medium gamma frequency domain echo signals, screening 4 continuous sound velocity values with the minimum change rate, and solving the average value of the 4 sound velocity values as an echo signal sound velocity v;
step five, data return-to-zero processing of the echo sampling signals: the computer extracts the amplitude eta (i) of each sampling point in the echo sampling signal s (i), and the amplitude eta (i) is obtained according to a formula
Figure GDA0002791557700000071
Calculating the average amplitude of each sampling point
Figure GDA0002791557700000072
Wherein M is the total number of sample points in the echo sampling signal s (i);
according to the formula
Figure GDA0002791557700000073
Calculating the return-to-zero amplitude eta '(i) of each sampling point to obtain a return-to-zero echo sampling signal s' (i);
sixthly, filtering the return-to-zero echo sampling signal: estimating value Y according to working fluid level depthhFiltering the return-to-zero echo sampling signal s' (i) when Y ishWhen the depth is more than 600m, the oil well is regarded as a deep well, and step 601 is executed; when Y ishWhen the distance is less than or equal to 600m, the oil well is regarded as a shallow well, and step 602 is executed;
601, filtering the return-to-zero echo sampling signal s' (i) by a computer by sequentially adopting a first low-pass filter, a band-stop filter and a second low-pass filter to obtain a deep well return-to-zero echo filtering signal S (i), wherein the cut-off frequency of the first low-pass filter is 0.01Hz, the sidelobe attenuation of the first low-pass filter is 80dB, the stopband attenuation of the band-stop filter is 80dB, the cut-off frequency of the second low-pass filter is 0.02Hz, and the sidelobe attenuation of the second low-pass filter is 80 dB;
step 602, the computer filters the return-to-zero echo sampling signal S '(i) by using a second low-pass filter to obtain a shallow well return-to-zero echo filtering signal S' (i);
step seven, searching the abrupt peak value of the position of the working fluid level and the sampling point of the position of the working fluid level: the computer determines a working fluid level depth searching range according to the depth of the oil well, and determines a sudden change peak value of the working fluid level position and a sampling point of the working fluid level position in the working fluid level depth searching range, the deep wells are divided into a first deep well, a second deep well and a third deep well, and the working fluid level depth estimated value Y of the first deep wellhSatisfies the following conditions: y is more than 600mh< 1100 m; the working fluid level depth estimated value Y of the second deep wellhSatisfies the following conditions: y is more than or equal to 1100mhLess than or equal to 1800 m; the third depthWell working fluid level depth estimate YhSatisfies the following conditions: y ish>1800m;
When the oil well is a shallow well, the working fluid level depth search range is 0.7Yh~1.2YhComputer at 0.7Yh~1.2YhCollecting each peak value in the shallow-well return-to-zero echo filtering signal S' (i) in the corresponding sampling point
Figure GDA0002791557700000081
When it is, will hjThe abrupt peak value h of the working fluid level position is regarded as the abrupt peak value of the working fluid level positionjThe corresponding sampling point j is regarded as the sampling point of the position of the working fluid level, wherein h-And h+Respectively, the sudden change peak value h of the working fluid leveljLeft and right adjacent peak values;
when the oil well is the first deep well, the working fluid level depth searching range is 0.4Yh~1.3YhComputer at 0.4Yh~1.3YhAcquiring each peak value in the deep well return-to-zero echo filter signal S (i) in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the first deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position of the shallow well;
when the oil well is the second deep well, the working fluid level depth searching range is 0.5Yh~1.3YhComputer at 0.5Yh~1.3YhCollecting each peak value in the return-to-zero echo filtering signal S (i) of the deep well in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the second deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position;
when the oil well is a third deep well, the working fluid level depth search range is 0.6Yh~1.2YhComputer at 0.6Yh~1.2YhCollecting each peak value in the deep well return-to-zero echo filter signal S (i), the abrupt change peak value of the working fluid level position of the third deep well and the sampling point acquisition mode of the working fluid level position of the shallow well and the abrupt change peak value of the working fluid level position of the shallow well and the working fluid level in the corresponding sampling pointThe sampling points of the positions are obtained in the same mode;
step eight, acquiring the sampling time of the working fluid level position: respectively searching a sampling point j-1 and a sampling point j +1 on the left side and the right side of the sampling point j of the working fluid level position by the computer, wherein the corresponding amplitude of the sampling point j-1 is hj-1The corresponding amplitude of the sampling point j +1 is hj+1Using (j-1, h)j-1)、(j,hj) And (j +1, h)j+1) Three points are used to obtain a quadratic function y ═ ax using sampling point as variable x and amplitude as function value y2+ bx + c, wherein a, b, and c are constants; obtaining a quadratic function y ═ ax2The extreme point coordinate of + bx + c
Figure GDA0002791557700000082
According to the formula
Figure GDA0002791557700000083
Calculating the sampling time t of the position of the working fluid level;
step nine, identifying the actual depth of the working fluid level: according to the formula
Figure GDA0002791557700000084
Calculating the actual depth Y of the working fluid levels
The method for identifying the working fluid level of the oil well is characterized by comprising the following steps of: the sound wave generator is an implosion type sound wave generator or an external explosion type sound wave generator, and when the sound wave generator is the implosion type sound wave generator, the abrupt change peak value h of the working fluid level position in the step sevenjTaking a positive peak value; when the sound wave generator is an external explosion type sound wave generator, the abrupt change peak value h of the working fluid level position in the step sevenjTaking the negative peak value.
The method for identifying the working fluid level of the oil well is characterized by comprising the following steps of: sampling frequency f of the dynamic liquid level measuring instrumentsIs 470 Hz.
The method for identifying the working fluid level of the oil well is characterized by comprising the following steps of: minimum sound velocity v of infrasonic wave propagating in annular space formed between oil pipe and casing in step 201min220m/s, the maximum sound velocity v of the infrasonic wave propagating in the annular space formed between the oil pipe and the casingmaxIs 400 m/s.
The method for identifying the working fluid level of the oil well is characterized by comprising the following steps of: the spectral line with the maximum energy represents that the spectral amplitude corresponding to the frequency is not less than 2 times of the spectral amplitude corresponding to the frequency in the neighborhood around the frequency.
The method for identifying the working fluid level of the oil well is characterized by comprising the following steps of: abscissa of the extreme point coordinates
Figure GDA0002791557700000091
Satisfies the following conditions:
Figure GDA0002791557700000092
compared with the prior art, the invention has the following advantages:
1. the invention utilizes the band-pass filter to carry out band-pass filtering on the echo sampling signal, determines the cut-off frequency of the echo sampling signal, and carries out time domain to frequency domain conversion on the band-pass filtering echo signal, because the lengths of the measured data obtained by different well depths are different, the window length of the needed band-pass filtering echo signal is different, the window length of the band-pass filtering echo signal and the step length of the window are determined according to different oil well depths, the echo periodic signal based on an oil pipe coupling is identified, the sound velocity of the echo signal is extracted, the universality is strong, the sound velocity under various well conditions can be accurately calculated, the precondition is provided for realizing accurate automatic dynamic liquid level detection, and the popularization and the use.
2. In the frequency domain transformation process of the band-pass filtering echo signal, the initial position of the window is determined, because the signal noise interference of the band-pass filtering echo signal starting to be reflected is strong, the interference signal is required to be cut off when the characteristic of the band-pass filtering echo signal based on the tubing coupling is analyzed, in addition, after the well depth reaches a certain depth, the band-pass filtering echo signal based on the tubing coupling disappears, therefore, the search is stopped after three continuous echo periodic signals in the band-pass filtering echo signal are determined, the initial position of the first echo periodic signal in the three continuous echo periodic signals of the band-pass filtering echo signal is used as the initial position of the window, and the use effect is good.
3. According to different oil well depths, after window lengths and window step lengths of band-pass filtering echo signals are determined, fast Fourier transform is carried out on the band-pass filtering echo signals on each window length to obtain a frequency domain echo signal sequence, then echo signal sound velocity calculation is carried out on each frequency domain echo signal, the echo signal sound velocity is calculated in an averaging mode, the precision is high, and when echo signal sound velocity calculation is carried out on any frequency domain echo signal, the position f of the position f is used for calculating the echo signal sound velocityNminAnd fNmaxThe normalized frequency value corresponding to the spectral line with the maximum energy is used as the 1-time frequency f of the frequency domain echo signal selected in the frequency domain echo signal sequenceN1Then, the 2 times of the frequency f corresponding to the spectral line with the maximum energy is searched successivelyN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5And acquiring the echo signal sound velocity corresponding to the selected frequency domain echo signal in the frequency domain echo signal sequence by using an averaging method.
4. According to the method, a return-to-zero echo sampling signal is filtered according to the depth of an oil well, and when the oil well is a deep well, the return-to-zero echo sampling signal is filtered by adopting a first low-pass filter, a band elimination filter and a second low-pass filter to obtain a return-to-zero echo filtering signal of the deep well; when the oil well is a shallow well, the return-to-zero echo sampling signal is filtered by the second low-pass filter to obtain a shallow return-to-zero echo filtering signal, the position of the peak value of the working fluid level signal cannot be changed, and the precision of the working fluid level depth is improved.
5. The method comprises the steps of determining a working fluid level depth searching range according to the depth of an oil well, determining a sudden change peak value of the working fluid level position and sampling points of the working fluid level position in the working fluid level depth searching range, then constructing a quadratic function by using the sampling points of the working fluid level position and the sampling points on the left side and the right side of the working fluid level position, obtaining an extreme point coordinate of the quadratic function, further calculating the sampling time of the working fluid level position, improving the precision of data processing, reducing the calculation error of the sampling time of the working fluid level position, and providing a precise time condition for realizing accurate automatic working fluid level detection.
6. The method has the advantages of simple steps, strong adaptability and accurate sound velocity calculation, solves the problem that the working fluid level signal is submerged by noise and cannot be directly identified, and is convenient to popularize and use.
In conclusion, according to different oil well depths, the window length of the band-pass filtering echo signal and the window step length are determined, the echo periodic signal based on the oil pipe coupling is identified, the sound velocity of the echo signal is extracted, the sound velocity is accurately calculated, the abrupt change peak value of the working fluid level position and the sampling point of the working fluid level position are searched, the sampling time of the working fluid level position is obtained, the problem that the working fluid level signal is submerged by noise and cannot be directly identified is solved, and the method is convenient to popularize and use.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
FIG. 1 is a schematic block diagram of a circuit connecting a sound wave generator, an echo receiver, a working fluid level measuring instrument and a computer according to the present invention.
FIG. 2 is a schematic view of the installation relationship of the oil pipe, the casing and the pumping unit.
FIG. 3 is a block diagram of a method flow of the present invention.
Description of reference numerals:
1-a sound generator; 2-an echo receiver; 3-a working fluid level gauge;
4-a computer; 5, an oil pipe; 6-tubing coupling;
7, sleeving a sleeve; 8-working fluid level; 9-oil pumping unit.
Detailed Description
As shown in fig. 1 to 3, the method for identifying the working fluid level of an oil well according to the present invention comprises the steps of:
the method comprises the following steps of firstly, obtaining a working fluid level depth estimated value and acquiring an echo signal: obtaining working fluid level depth estimated value Y by using installation position of oil pump in oil wellhControlling the sound generator 1 to emit an infrasonic wave signal by using the computer 4, reflecting the infrasonic wave signal in an annular space formed between the oil pipe 5 and the sleeve 7 through the working fluid level 8, the oil pipe 5 and the oil pipe coupling 6 to form an echo signal, receiving the echo signal by using the echo receiver 2, and measuring the working fluid level3 at a sampling frequency fsAcquiring the echo signal to obtain an echo sampling signal s (i), and sending the echo sampling signal s (i) to the computer 4, wherein i is the number of sampling points;
the acoustic wave generator 1 and the echo receiver 2 are both installed at the wellhead of an oil well, the input end of the acoustic wave generator 1 is connected with the output end of the computer 4, the output end of the echo receiver 2 is connected with the input end of the dynamic liquid level measuring instrument 3, and the dynamic liquid level measuring instrument 3 is communicated with the computer 4 in a wired or wireless mode; the oil pipe 5 is arranged in the casing pipe 7, the oil pipe 5 is formed by sequentially connecting a plurality of pipe joints, and two adjacent pipe joints are connected by adopting an oil pipe coupling 6;
it should be noted that the estimated value Y of the working fluid level depth is obtained by using the installation position of the oil pump in the oil wellhThe oil well is provided with an oil pumping unit 9 with the rotating speed adjusted according to the depth of the working fluid level 8, and the sound wave generator 1 and the echo receiver 2 are both installed at the wellhead of the oil well so as to facilitate the generation and the acquisition of signals and the maintenance of equipment.
Step two, filtering the echo sampling signal, wherein the process is as follows:
step 201, pre-estimating fundamental frequency f of infrasonic waves on single pipe jointBThe range of (A): according to the formula fBmin≤fB≤fBmaxEstimating fundamental frequency f of infrasonic wave on single pipe jointBWherein f isBminIs the fundamental minimum frequency of infrasonic waves on a single pipe joint, an
Figure GDA0002791557700000121
fBmaxFor the fundamental maximum frequency of infrasonic waves on a single pipe section and
Figure GDA0002791557700000122
l is the length of a single pipe section, vminIs the minimum speed of sound, v, of the propagation of infrasonic waves in the annular space formed between the tubing 5 and the casing 7maxThe maximum sound velocity for the infrasonic wave propagating in the annular space formed between the oil pipe 5 and the casing 7;
in this embodiment, the infrasonic wave is in the oil pipe 5 and the sleeve in step 201Minimum speed of sound v propagating in the annular space formed between the tubes 7min220m/s, the maximum sound velocity v of the infrasonic wave propagating in the annular space formed between the oil pipe 5 and the casing 7maxIs 400 m/s.
It should be noted that the infrasonic wave propagates in the annular space formed between the oil pipe 5 and the casing 7, the propagation speed of the infrasonic wave changes due to the difference of air density in the annular space, and the minimum sound velocity v of the infrasonic wave propagating in the annular space formed between the oil pipe 5 and the casing 7 in the step 201 is set according to the actual logging experience valuemin220m/s, the maximum sound velocity v of the infrasonic wave propagating in the annular space formed between the oil pipe 5 and the casing 7maxIs 400 m/s.
Step 202, obtaining the range of the normalized fundamental wave frequency of the infrasonic wave on a single pipe joint through normalization processing: according to the formula
Figure GDA0002791557700000123
For fundamental minimum frequency f of infrasonic wave on single pipe jointBminNormalization is carried out to obtain the normalized fundamental wave minimum frequency f of the infrasonic wave on a single pipe jointNminFor the maximum frequency f of fundamental wave of infrasonic wave on a single pipe jointBmaxNormalization is carried out to obtain the normalized fundamental wave maximum frequency f of the infrasonic wave on a single pipe jointNmaxAccording to fNmin≤fN≤fNmaxObtaining the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNRange of (a), (b), (c) and (d)NFor fundamental frequency f of infrasonic waves on a single pipe sectionBNormalizing the result;
in this embodiment, the sampling frequency f of the working fluid level measuring instrument 3sIs 470 Hz.
Step 203, selecting a band-pass filter: the computer selects a band-pass filter based on a Kaiser window function, and the lower limit frequency f of the band-pass filterBL=ρ1fNminUpper limit frequency f of said band-pass filterBU=ρ2fNmaxWhere ρ is1Is a lower limit frequency coefficient and is more than 0.5 rho1<1,ρ2Is an upper limit frequency coefficient and 5 < rho2<8;
The echo sampled signal is band-pass filtered by a band-pass filter to determine a cut-off frequency and a lower limit frequency coefficient ρ of the echo sampled signal1Satisfies the following conditions: rho is more than 0.51< 1 is to define a lower cut-off frequency, an upper frequency coefficient ρ2Satisfies the following conditions: rho is more than 52< 8 is to define the upper cut-off frequency.
Step 204, filtering: the computer uses the band-pass filter selected in step 203 to perform band-pass filtering on the echo sampling signal s (i) to obtain a band-pass filtered echo signal sp(i);
Note that, the band-pass filter filters out periodic high-frequency noise in the echo sampling signal s (i).
Step three, frequency domain transformation of the band-pass filtering echo signal, the process is as follows:
step 301, determining the starting position of the window: the computer 4 filters the echo signal s from the band passp(i) The first sampling point in (a) starts to look up backwards, and a band-pass filtered echo signal s is determinedp(i) Stopping searching after three continuous echo periodic signals, and filtering the band-pass echo signal sp(i) The starting position of the first echo periodic signal in the three continuous echo periodic signals is used as the starting position of the window;
it should be noted that, in the process of frequency domain transformation of the band-pass filtered echo signal, by determining the initial position of the window, since the interference of signal noise reflected by the band-pass filtered echo signal is strong, the interference signal must be cut off when analyzing the characteristics of the band-pass filtered echo signal based on the tubing coupling, and in addition, after the well depth reaches a certain depth, the band-pass filtered echo signal based on the tubing coupling disappears, so that the search is stopped after three continuous echo periodic signals in the band-pass filtered echo signal are determined, and the initial position of the first echo periodic signal in the three continuous echo periodic signals in the band-pass filtered echo signal is used as the initial position of the window.
Step 302, determining the window length of the band-pass filtering echo signal and the step length of the window: according to the formula
Figure GDA0002791557700000141
Calculating the number q of pre-estimated sampling points on a single pipe joint, and when the alpha multiplied by L is more than or equal to YhWindow length of time-band-pass filtered echo signal
Figure GDA0002791557700000142
At this time, the window does not need to set the step length Δ Q of the window, and step 303 is executed; when in use
Figure GDA0002791557700000143
And the window length Q of the band-pass filtering echo signal is equal to alpha Q, and at the moment, the step length delta Q of the window satisfies the following conditions: when Q is more than delta Q and less than or equal to 3Q, executing step 304; when in use
Figure GDA0002791557700000144
And the window length Q of the band-pass filtering echo signal is equal to alpha Q, and at the moment, the step length delta Q of the window satisfies the following conditions: when Q is more than delta Q and less than or equal to 3Q, executing step 305; wherein alpha is the number of pipe sections selected continuously, and alpha is more than 30 and less than 40 [. alpha. ]]Is a rounding function;
it should be noted that, according to different oil well depths, the window length of the band-pass filtering echo signal and the window step length are determined, when the value of alpha x L is more than or equal to YhWhen the well is a shallow well, the estimated value Y is estimated according to the depth from the well head of the well to the working fluid levelhPerforming fast Fourier transform for the window length to obtain a frequency domain echo signal F (k);
when in use
Figure GDA0002791557700000145
The window length Q of the band-pass filtered echo signal is α Q, and the computer 4 sets the band-pass filtered echo signal s according to the depth of the oil wellp(i) Performing fast Fourier transform for 2 to 4 times to obtain a frequency domain echo signal sequence Fβ(k);
When in use
Figure GDA0002791557700000146
The window length Q of the band-pass filtered echo signal is α Q, and the computer 4 sets the band-pass filtered echo signal s according to the depth of the oil wellp(i) 5 to 14 times of rapidFourier transform to obtain frequency domain echo signal sequence Fγ(k) Along with the increase of the well depth, the reflected signal is weaker, and the band-pass filtering echo signal s is not neededp(i) And performing more fast Fourier transforms.
Step 303, computer 4 filters the band-pass echo signal sp(i) After zero filling processing, fast Fourier transform is carried out to obtain a frequency domain echo signal F (k);
step 304, computer 4 filters the band-pass echo signal sp(i) Carrying out beta frequency domain transformation by using the step length of Q as the window length and delta Q as the window to obtain a frequency domain echo signal sequence Fβ(k) Wherein beta is more than or equal to 2 and less than or equal to 4;
computer 4 band-pass filtered echo signal sp(i) When the frequency domain transformation is carried out for beta times by taking Q as the window length and delta Q as the step length of the window, zero filling processing is adopted and then fast Fourier transformation is carried out to obtain a frequency domain echo signal sequence Fβ(k);
Step 305, the computer 4 filters the band-pass echo signal sp(i) Carrying out gamma frequency domain transformation by using the step length of Q as the window length and delta Q as the window to obtain a frequency domain echo signal sequence Fγ(k) Wherein gamma is more than 4 and less than 15;
computer 4 band-pass filtered echo signal sp(i) Zero padding is adopted when gamma-time frequency domain transformation is carried out by using the step length with Q as the window length and delta Q as the window length, and then fast Fourier transformation is carried out to obtain a frequency domain echo signal sequence Fγ(k);
Step four, extracting the sound velocity of the echo signal, and the process is as follows:
step 401, the computer 4 extracts m times of frequency multiplication frequency corresponding to the maximum energy value of the frequency domain echo signal, and executes step 402 when the frequency domain echo signal is a frequency domain echo signal f (k); when the frequency domain echo signal is a frequency domain echo signal sequence Fβ(k) Then, step 403 is executed; when the frequency domain echo signal is a frequency domain echo signal sequence Fγ(k) Then, step 404 is executed, m is a positive integer not greater than 5;
step 402, the computer 4 processes the frequency domain echo signal F (k) with the frequency value fNminBegin to find the frequency value fNmaxLooking up atfNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe jointNIs 1 times the frequency f of the frequency domain echo signal F (k)N1Then the frequency values are respectively 2f on the frequency domain echo signals F (k)N、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000151
Calculating the sound velocity v of the echo signal;
when f isNminAnd fNmaxThere is no spectral line with the maximum energy in between, the computer 4 looks for a spectral line at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is 2 times of the frequency doubling frequency f of the frequency domain echo signal F (k)N2Then the frequency values are respectively
Figure GDA0002791557700000152
And
Figure GDA0002791557700000153
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhood N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000154
Calculating the sound velocity v of the echo signal;
it should be noted that, step 402 represents the calculation of the sound velocity of the echo signal of the shallow well, and only the frequency domain needs to be found on the frequency domain echo signal f (k)1-fold frequency f of echo signals F (k)N12 times of the frequency fN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5And (4) calculating the sound velocity v of the echo signal by adopting an averaging method.
Step 403, the computer 4 processes the frequency domain echo signal sequence Fβ(k) In each frequency domain echo signal, respectively carrying out echo signal sound velocity calculation, and a frequency domain echo signal sequence Fβ(k) The echo signal sound velocity calculation methods of each frequency domain echo signal are the same; computer 4 pairs of frequency domain echo signal sequence Fβ(k) All the echo signals of any frequency domain have the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe sectionNThe accurate value of is a frequency domain echo signal sequence Fβ(k) Frequency f of 1 times of the echo signal of the selected frequency domainN1Then in the frequency domainβ(k) The frequency values of the echo signals of the selected frequency domain are respectively 2fN、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency fN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000161
Calculating a frequency domain echo signal sequence Fβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainε
When f isNminAnd fNmaxThere is no spectral line with the maximum energy in between, the computer 4 looks for a spectral line at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy between the spectral lines, the spectral line with the maximum energyThe frequency value corresponding to the line is a frequency domain echo signal sequence Fβ(k) Frequency f of 2 times of the echo signal of the selected frequency domainN2Then in the frequency domainβ(k) Wherein the frequency values of the echo signals of the selected frequency domain are respectively
Figure GDA0002791557700000162
Figure GDA0002791557700000163
And
Figure GDA0002791557700000164
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhood N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000165
Calculating a frequency domain echo signal sequence Fβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainεWhere ε is the frequency domain echo signal sequence Fβ(k) The number of the intermediate frequency domain echo signal is not less than epsilon and not more than beta;
according to the formula
Figure GDA0002791557700000171
Calculating the sound velocity v of the echo signal;
it should be noted that the frequency domain echo signal sequence Fβ(k) The method comprises 2 to 4 frequency domain echo signals, and during actual calculation, a frequency domain echo signal sequence F is subjected toβ(k) Respectively finding 1 time of frequency multiplication frequency f of the echo signals of the 2 to 4 frequency domainsN12 times of the frequency fN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5Position, calculating the frequency domain echo signal sequence F by averagingβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainεThen, the average method is utilized to carry out the averaging on the sound velocity v of the echo signals corresponding to the echo signals of 2 to 4 frequency domainsεAveraging and calculating the sound velocity of echo signalv。
Step 404, the computer 4 processes the frequency domain echo signal sequence Fγ(k) In each frequency domain echo signal, respectively carrying out echo signal sound velocity calculation, and a frequency domain echo signal sequence Fγ(k) The echo signal sound velocity calculation methods of each frequency domain echo signal are the same; computer 4 pairs of frequency domain echo signal sequence Fγ(k) All the echo signals of any frequency domain have the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe sectionNThe accurate value of is a frequency domain echo signal sequence Fγ(k) Frequency f of 1 times of the echo signal of the selected frequency domainN1Then in the frequency domainγ(k) The frequency values of the echo signals of the selected frequency domain are respectively 2fN、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency fN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000172
Calculating a frequency domain echo signal sequence Fγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφ
When f isNminAnd fNmaxThere is no spectral line with the maximum energy in between, the computer 4 looks for a spectral line at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is the frequency domain echo signal sequence Fγ(k) Frequency f of 2 times of the echo signal of the selected frequency domainN2Then in the frequency domainγ(k) Wherein the frequency values of the echo signals of the selected frequency domain are respectively
Figure GDA0002791557700000181
Figure GDA0002791557700000182
And
Figure GDA0002791557700000183
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhood N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure GDA0002791557700000184
Calculating a frequency domain echo signal sequence Fγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφWhere phi is the frequency domain echo signal sequence Fγ(k) The number of the intermediate frequency domain echo signals is phi less than or equal to gamma;
computer 4 pairs of frequency domain echo signal sequence Fγ(k) Screening gamma echo signal sound velocities corresponding to the medium gamma frequency domain echo signals, screening 4 continuous sound velocity values with the minimum change rate, and solving the average value of the 4 sound velocity values as an echo signal sound velocity v;
it should be noted that the frequency domain echo signal sequence Fγ(k) Contains more than 4 frequency domain echo signals, and the frequency domain echo signal sequence F is subjected to actual calculationγ(k) Respectively finding 1-time frequency f of the echo signals with more than 4 frequency domainsN12 times of the frequency fN23 times of the frequency f N34 times of frequency multiplication frequency fN4And 5 times the frequency fN5Position, calculating the frequency domain echo signal sequence F by averagingγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφThen, 4 consecutive sound velocity values with the smallest change rate are screened out, and the average value of the 4 sound velocity values is obtained as the echo signal sound velocity v.
Step five, data return-to-zero processing of the echo sampling signals: the computer 4 extracts the amplitude eta (i) of each sample point in the echo sampling signal s (i) according to a formula
Figure GDA0002791557700000185
Calculating the average amplitude of each sampling point
Figure GDA0002791557700000186
Wherein M is the total number of sample points in the echo sampling signal s (i);
according to the formula
Figure GDA0002791557700000187
Calculating the return-to-zero amplitude eta '(i) of each sampling point to obtain a return-to-zero echo sampling signal s' (i);
sixthly, filtering the return-to-zero echo sampling signal: estimating value Y according to working fluid level depthhFiltering the return-to-zero echo sampling signal s' (i) when Y ishWhen the depth is more than 600m, the oil well is regarded as a deep well, and step 601 is executed; when Y ishWhen the distance is less than or equal to 600m, the oil well is regarded as a shallow well, and step 602 is executed;
step 601, the computer 4 sequentially adopts a first low-pass filter, a band-stop filter and a second low-pass filter to filter the return-to-zero echo sampling signal s' (i) to obtain a deep well return-to-zero echo filtering signal s (i), wherein the cut-off frequency of the first low-pass filter is 0.01Hz, the sidelobe attenuation of the first low-pass filter is 80dB, the stopband attenuation of the band-stop filter is 80dB, the cut-off frequency of the second low-pass filter is 0.02Hz, and the sidelobe attenuation of the second low-pass filter is 80 dB;
it should be noted that the band-stop filter is based on the Kaiser window function, the stop band cut-off frequency of the band-stop filter is the motor frequency in the pumping unit 9, and since periodic vibration noise such as motor sound in the pumping unit 9 exists in the environment, many periodic high-frequency signals appear in the return-to-zero echo signal s' (i), and the periodic signals can be filtered by adopting the band-stop filter, so that the working fluid level signal is more easily identified.
In practical use, when an oil well is waxed or scaled, a noise signal with lower frequency and larger amplitude than the working fluid level signal exists in the echo sampling signal s (i), low-frequency noise is larger than the working fluid level signal after the low-pass filtering is carried out by adopting the first low-pass filter, the low-frequency noise is mistakenly taken as the working fluid level signal, and the signal filtered by the band elimination filter is filtered by arranging the second low-pass filter, so that the working fluid level signal cannot be filtered as the low-frequency noise.
Step 602, the computer 4 filters the return-to-zero echo sampling signal S '(i) by using a second low-pass filter to obtain a shallow well return-to-zero echo filtering signal S' (i);
in actual use, when Y ishWhen the working fluid level is less than or equal to 600m, the oil well is regarded as a shallow well, the working fluid level signal is strong, the frequency is high, the position of the peak value of the working fluid level signal cannot be changed by setting the second low-pass filter for filtering, and the precision of the working fluid level depth is improved.
Step seven, searching the abrupt peak value of the position of the working fluid level and the sampling point of the position of the working fluid level: the computer 4 determines a working fluid level depth searching range according to the depth of the oil well, and determines a sudden change peak value of the working fluid level position and a sampling point of the working fluid level position in the working fluid level depth searching range, wherein the deep wells are divided into a first deep well, a second deep well and a third deep well, and the working fluid level depth estimated value Y of the first deep wellhSatisfies the following conditions: y is more than 600mh< 1100 m; the working fluid level depth estimated value Y of the second deep wellhSatisfies the following conditions: y is more than or equal to 1100mhLess than or equal to 1800 m; the working fluid level depth estimated value Y of the third deep wellhSatisfies the following conditions: y ish>1800m;
When the oil well is a shallow well, the working fluid level depth search range is 0.7Yh~1.2YhComputer 4 at 0.7Yh~1.2YhCollecting each peak value in the shallow-well return-to-zero echo filtering signal S' (i) in the corresponding sampling point
Figure GDA0002791557700000201
When it is, will hjThe abrupt peak value h of the working fluid level position is regarded as the abrupt peak value of the working fluid level positionjThe corresponding sampling point j is regarded as the sampling point of the position of the working fluid level, wherein h-and h+Respectively, the sudden change peak value h of the working fluid leveljLeft and right adjacent peak values;
when the well is the first deep wellThe working fluid level depth search range is 0.4Yh~1.3YhComputer 4 at 0.4Yh~1.3YhAcquiring each peak value in the deep well return-to-zero echo filter signal S (i) in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the first deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position of the shallow well;
when the oil well is the second deep well, the working fluid level depth searching range is 0.5Yh~1.3YhComputer 4 at 0.5Yh~1.3YhCollecting each peak value in the return-to-zero echo filtering signal S (i) of the deep well in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the second deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position;
when the oil well is a third deep well, the working fluid level depth search range is 0.6Yh~1.2YhComputer 4 at 0.6Yh~1.2YhCollecting each peak value in the deep well return-to-zero echo filter signal S (i) in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the third deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position of the shallow well;
step eight, acquiring the sampling time of the working fluid level position: the computer 4 respectively searches a sampling point j-1 and a sampling point j +1 at the left side and the right side of the sampling point j of the working fluid level position, and the corresponding amplitude of the sampling point j-1 is hj-1The corresponding amplitude of the sampling point j +1 is hj+1Using (j-1, h)j-1)、(j,hj) And (j +1, h)j+1) Three points are used to obtain a quadratic function y ═ ax using sampling point as variable x and amplitude as function value y2+ bx + c, wherein a, b, and c are constants; obtaining a quadratic function y ═ ax2The extreme point coordinate of + bx + c
Figure GDA0002791557700000202
According to the formula
Figure GDA0002791557700000203
Calculating the sampling time t of the position of the working fluid level;
in this embodiment, the abscissa of the extreme point coordinate
Figure GDA0002791557700000204
Satisfies the following conditions:
Figure GDA0002791557700000205
the method includes the steps of determining a working fluid level depth search range according to the depth of an oil well, determining a sudden change peak value of a working fluid level position and sampling points of the working fluid level position in the working fluid level depth search range, then constructing a quadratic function by using the sampling points of the working fluid level position and the sampling points on the left side and the right side of the sampling points, obtaining extreme point coordinates of the quadratic function, further calculating sampling time of the working fluid level position, improving data processing precision, reducing calculation errors of the sampling time of the working fluid level position, and providing accurate time conditions for accurate and automatic working fluid level detection.
Step nine, identifying the actual depth of the working fluid level: according to the formula
Figure GDA0002791557700000211
Calculating the actual depth Y of the working fluid levels
In this embodiment, the sound generator 1 is an implosion type sound generator or an external explosion type sound generator, and when the sound generator 1 is an implosion type sound generator, the abrupt change peak h of the working fluid level position in the seventh stepjTaking a positive peak value; when the sound wave generator 1 is an external explosion type sound wave generator, the abrupt change peak value h of the working fluid level position in the step sevenjTaking the negative peak value.
In this embodiment, the spectral line with the largest energy represents that the spectral amplitude corresponding to the frequency is not less than 2 times the spectral amplitude corresponding to the frequency in the neighborhood around the frequency.
When the method is used, the window length of the band-pass filtering echo signal and the window step length are determined according to different oil well depths, the echo periodic signal based on the oil pipe coupling is identified, the sound velocity of the echo signal is extracted, the sudden change peak value of the working fluid level position and the sampling point of the working fluid level position are searched, the sampling time of the working fluid level position is obtained, the adaptability is strong, and the problem that the working fluid level signal cannot be directly identified due to the fact that the working fluid level signal is submerged by noise is solved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and all simple modifications, changes and equivalent structural changes made to the above embodiment according to the technical spirit of the present invention still fall within the protection scope of the technical solution of the present invention.

Claims (6)

1. A method for identifying the working fluid level of an oil well is characterized by comprising the following steps:
the method comprises the following steps of firstly, obtaining a working fluid level depth estimated value and acquiring an echo signal: obtaining working fluid level depth estimated value Y by using installation position of oil pump in oil wellhThe computer (4) is used for controlling the sound wave generator (1) to send out an infrasonic wave signal, the infrasonic wave signal is reflected by a working fluid level (8), the oil pipe (5) and an oil pipe coupling (6) in an annular space formed between the oil pipe (5) and the casing pipe (7) to form an echo signal, the echo signal is received by the echo receiver (2), and the working fluid level measuring instrument (3) is used for sampling frequency fsAcquiring the echo signal to obtain an echo sampling signal s (i), and sending the echo sampling signal s (i) to a computer (4), wherein i is the number of sampling points;
the acoustic wave generator (1) and the echo receiver (2) are both installed at the wellhead of an oil well, the input end of the acoustic wave generator (1) is connected with the output end of the computer (4), the output end of the echo receiver (2) is connected with the input end of the dynamic liquid level measuring instrument (3), and the dynamic liquid level measuring instrument (3) is communicated with the computer (4) in a wired or wireless mode; the oil pipe (5) is arranged in the casing pipe (7), the oil pipe (5) is formed by sequentially connecting a plurality of pipe joints, and two adjacent pipe joints are connected by adopting an oil pipe coupling (6);
step two, filtering the echo sampling signal, wherein the process is as follows:
step 201, pre-estimating fundamental frequency f of infrasonic waves on single pipe jointBThe range of (A): according to the formula fBmin≤fB≤fBmaxIs estimatedFundamental frequency f of infrasonic waves on single pipe jointBWherein f isBminIs the fundamental minimum frequency of infrasonic waves on a single pipe joint, an
Figure FDA0002791557690000011
fBmaxFor the fundamental maximum frequency of infrasonic waves on a single pipe section and
Figure FDA0002791557690000012
l is the length of a single pipe section, vminIs the minimum sound velocity, v, of the propagation of infrasonic waves in the annular space formed between the oil pipe (5) and the casing (7)maxThe maximum sound velocity of infrasonic waves propagating in an annular space formed between the oil pipe (5) and the casing pipe (7);
step 202, obtaining the range of the normalized fundamental wave frequency of the infrasonic wave on a single pipe joint through normalization processing: according to the formula
Figure FDA0002791557690000013
For fundamental minimum frequency f of infrasonic wave on single pipe jointBminNormalization is carried out to obtain the normalized fundamental wave minimum frequency f of the infrasonic wave on a single pipe jointNminFor the maximum frequency f of fundamental wave of infrasonic wave on a single pipe jointBmaxNormalization is carried out to obtain the normalized fundamental wave maximum frequency f of the infrasonic wave on a single pipe jointNmaxAccording to fNmin≤fN≤fNmaxObtaining the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNRange of (a), (b), (c) and (d)NFor fundamental frequency f of infrasonic waves on a single pipe sectionBNormalizing the result;
step 203, selecting a band-pass filter: the computer selects a band-pass filter based on a Kaiser window function, and the lower limit frequency f of the band-pass filterBL=ρ1fNminUpper limit frequency f of said band-pass filterBU=ρ2fNmaxWhere ρ is1Is a lower limit frequency coefficient and is more than 0.5 rho1<1,ρ2Is an upper limit frequency coefficient and 5 < rho2<8;
Step 204, filtering: the computer uses the band-pass filter selected in step 203 to perform band-pass filtering on the echo sampling signal s (i) to obtain a band-pass filtered echo signal sp(i);
Step three, frequency domain transformation of the band-pass filtering echo signal, the process is as follows:
step 301, determining the starting position of the window: the computer (4) filters the echo signal s from the band passp(i) The first sampling point in (a) starts to look up backwards, and a band-pass filtered echo signal s is determinedp(i) Stopping searching after three continuous echo periodic signals, and filtering the band-pass echo signal sp(i) The starting position of the first echo periodic signal in the three continuous echo periodic signals is used as the starting position of the window;
step 302, determining the window length of the band-pass filtering echo signal and the step length of the window: according to the formula
Figure FDA0002791557690000021
Calculating the number q of pre-estimated sampling points on a single pipe joint, and when the alpha multiplied by L is more than or equal to YhWindow length of time-band-pass filtered echo signal
Figure FDA0002791557690000022
At this time, the window does not need to set the step length Δ Q of the window, and step 303 is executed; when in use
Figure FDA0002791557690000023
And the window length Q of the band-pass filtering echo signal is equal to alpha Q, and at the moment, the step length delta Q of the window satisfies the following conditions: when Q is more than delta Q and less than or equal to 3Q, executing step 304; when in use
Figure FDA0002791557690000024
And the window length Q of the band-pass filtering echo signal is equal to alpha Q, and at the moment, the step length delta Q of the window satisfies the following conditions: when Q is more than delta Q and less than or equal to 3Q, executing step 305; wherein alpha is the number of pipe sections selected continuously, and alpha is more than 30 and less than 40 [. alpha. ]]Is a rounding function;
step 303, the computer (4) filters the band-pass echo signal sp(i) MakingAfter zero filling processing, fast Fourier transform is carried out to obtain a frequency domain echo signal F (k);
step 304, the computer (4) filters the band-pass echo signal sp(i) Carrying out beta frequency domain transformation by using the step length of Q as the window length and delta Q as the window to obtain a frequency domain echo signal sequence Fβ(k) Wherein beta is more than or equal to 2 and less than or equal to 4;
the computer (4) filters the echo signal s to band passp(i) When the frequency domain transformation is carried out for beta times by taking Q as the window length and delta Q as the step length of the window, zero filling processing is adopted and then fast Fourier transformation is carried out to obtain a frequency domain echo signal sequence Fβ(k);
Step 305, the computer (4) filters the band-pass echo signal sp(i) Carrying out gamma frequency domain transformation by using the step length of Q as the window length and delta Q as the window to obtain a frequency domain echo signal sequence Fγ(k) Wherein gamma is more than 4 and less than 15;
the computer (4) filters the echo signal s to band passp(i) Zero padding is adopted when gamma-time frequency domain transformation is carried out by using the step length with Q as the window length and delta Q as the window length, and then fast Fourier transformation is carried out to obtain a frequency domain echo signal sequence Fγ(k);
Step four, extracting the sound velocity of the echo signal, and the process is as follows:
step 401, the computer (4) extracts m times of frequency multiplication frequency corresponding to the maximum energy value of the frequency domain echo signal, and when the frequency domain echo signal is the frequency domain echo signal F (k), step 402 is executed; when the frequency domain echo signal is a frequency domain echo signal sequence Fβ(k) Then, step 403 is executed; when the frequency domain echo signal is a frequency domain echo signal sequence Fγ(k) Then, step 404 is executed, m is a positive integer not greater than 5;
step 402, the computer (4) processes the frequency domain echo signal F (k) from the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNAccurate value of (A), infrasonic wave inNormalized fundamental frequency f on a single pipe sectionNIs 1 times the frequency f of the frequency domain echo signal F (k)N1Then the frequency values are respectively 2f on the frequency domain echo signals F (k)N、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency fN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure FDA0002791557690000031
Calculating the sound velocity v of the echo signal;
when f isNminAnd fNmaxThere is no spectral line with the maximum energy in between, the computer (4) looks for a spectral line at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is 2 times of the frequency doubling frequency f of the frequency domain echo signal F (k)N2Then the frequency values are respectively
Figure FDA0002791557690000041
And
Figure FDA0002791557690000042
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure FDA0002791557690000043
Calculating the sound velocity v of the echo signal;
step 403, the computer (4) processes the frequency domain echo signal sequence Fβ(k) In each frequency domain echo signal, respectively carrying out echo signal sound velocity calculation, and a frequency domain echo signal sequence Fβ(k) The echo signal sound velocity calculation methods of each frequency domain echo signal are the same; computer (4) for frequency domain echo signal sequence Fβ(k) All the echo signals of any frequency domain have the frequency value fNminBegin to look upFind the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe sectionNThe accurate value of is a frequency domain echo signal sequence Fβ(k) Frequency f of 1 times of the echo signal of the selected frequency domainN1Then in the frequency domainβ(k) The frequency values of the echo signals of the selected frequency domain are respectively 2fN、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency fN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure FDA0002791557690000044
Calculating a frequency domain echo signal sequence Fβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainε
When f isNminAnd fNmaxThere is no spectral line with the maximum energy in between, the computer (4) looks for a spectral line at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is the frequency domain echo signal sequence Fβ(k) Frequency f of 2 times of the echo signal of the selected frequency domainN2Then in the frequency domainβ(k) Wherein the frequency values of the echo signals of the selected frequency domain are respectively
Figure FDA0002791557690000045
Figure FDA0002791557690000046
And
Figure FDA0002791557690000047
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure FDA0002791557690000051
Calculating a frequency domain echo signal sequence Fβ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainεWhere ε is the frequency domain echo signal sequence Fβ(k) The number of the intermediate frequency domain echo signal is not less than epsilon and not more than beta;
according to the formula
Figure FDA0002791557690000052
Calculating the sound velocity v of the echo signal;
step 404, the computer (4) processes the frequency domain echo signal sequence Fγ(k) In each frequency domain echo signal, respectively carrying out echo signal sound velocity calculation, and a frequency domain echo signal sequence Fγ(k) The echo signal sound velocity calculation methods of each frequency domain echo signal are the same; computer (4) for frequency domain echo signal sequence Fγ(k) All the echo signals of any frequency domain have the frequency value fNminBegin to find the frequency value fNmaxFinding is at fNminAnd fNmaxNormalized frequency value corresponding to the spectral line having the greatest energy between, when fNminAnd fNmaxThe spectral line with the maximum energy exists between the two, and the normalized frequency value corresponding to the spectral line with the maximum energy is the normalized fundamental frequency f of the infrasonic wave on a single pipe jointNThe normalized fundamental frequency f of the infrasonic wave on a single pipe sectionNThe accurate value of is a frequency domain echo signal sequence Fγ(k) Frequency f of 1 times of the echo signal of the selected frequency domainN1Then in the frequency domainγ(k) The frequency values of the echo signals of the selected frequency domain are respectively 2fN、3fN、4fNAnd 5fNSearching for the 2-time frequency f corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN23 times of the frequency fN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure FDA0002791557690000053
Calculating a frequency domain echo signal sequence Fγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφ
When f isNminAnd fNmaxThere is no spectral line with the maximum energy in between, the computer (4) looks for a spectral line at 2fNminAnd 2fNmaxThe frequency value corresponding to the spectral line with the maximum energy is the frequency domain echo signal sequence Fγ(k) Frequency f of 2 times of the echo signal of the selected frequency domainN2Then in the frequency domainγ(k) Wherein the frequency values of the echo signals of the selected frequency domain are respectively
Figure FDA0002791557690000054
Figure FDA0002791557690000055
And
Figure FDA0002791557690000056
searching for the frequency multiplication frequency f of 3 times corresponding to the spectral line with the maximum energy between the left neighborhood and the right neighborhoodN34 times of frequency multiplication frequency fN4And 5 times the frequency fN5According to the formula
Figure FDA0002791557690000061
Calculating a frequency domain echo signal sequence Fγ(k) The sound velocity v of the echo signal corresponding to the echo signal of the selected frequency domainφWhere phi is the frequency domain echo signal sequence Fγ(k) The number of the intermediate frequency domain echo signals is phi less than or equal to gamma;
computer (4) for frequency domain echo signal sequence Fγ(k) Screening gamma echo signal sound velocities corresponding to the medium gamma frequency domain echo signals, screening 4 continuous sound velocity values with the minimum change rate, and solving the average value of the 4 sound velocity values as an echo signal sound velocity v;
step five, data return-to-zero processing of the echo sampling signals: the computer (4) extracts the amplitude eta (i) of each sampling point in the echo sampling signal s (i) according to a formula
Figure FDA0002791557690000062
Calculating the average amplitude of each sampling point
Figure FDA0002791557690000063
Wherein M is the total number of sample points in the echo sampling signal s (i);
according to the formula
Figure FDA0002791557690000064
Calculating the return-to-zero amplitude eta '(i) of each sampling point to obtain a return-to-zero echo sampling signal s' (i);
sixthly, filtering the return-to-zero echo sampling signal: estimating value Y according to working fluid level depthhFiltering the return-to-zero echo sampling signal s' (i) when Y ishWhen the depth is more than 600m, the oil well is regarded as a deep well, and step 601 is executed; when Y ishWhen the distance is less than or equal to 600m, the oil well is regarded as a shallow well, and step 602 is executed;
step 601, the computer (4) sequentially adopts a first low-pass filter, a band-stop filter and a second low-pass filter to filter the return-to-zero echo sampling signal s' (i) to obtain a deep well return-to-zero echo filtering signal S (i), wherein the cut-off frequency of the first low-pass filter is 0.01Hz, the sidelobe attenuation of the first low-pass filter is 80dB, the stopband attenuation of the band-stop filter is 80dB, the cut-off frequency of the second low-pass filter is 0.02Hz, and the sidelobe attenuation of the second low-pass filter is 80 dB;
step 602, the computer (4) adopts a second low-pass filter to filter the return-to-zero echo sampling signal S '(i) to obtain a shallow well return-to-zero echo filtering signal S' (i);
step seven, searching the abrupt peak value of the position of the working fluid level and the sampling point of the position of the working fluid level: the computer (4) determines the working fluid level depth searching range according to the depth of the oil well and determines the projection of the working fluid level position in the working fluid level depth searching rangeSampling points of variable peak values and dynamic liquid level positions, wherein the deep wells are divided into a first deep well, a second deep well and a third deep well, and the dynamic liquid level depth estimated value Y of the first deep wellhSatisfies the following conditions: y is more than 600mh< 1100 m; the working fluid level depth estimated value Y of the second deep wellhSatisfies the following conditions: y is more than or equal to 1100mhLess than or equal to 1800 m; the working fluid level depth estimated value Y of the third deep wellhSatisfies the following conditions: y ish>1800m;
When the oil well is a shallow well, the working fluid level depth search range is 0.7Yh~1.2YhComputer (4) at 0.7Yh~1.2YhCollecting each peak value in the shallow-well return-to-zero echo filtering signal S' (i) in the corresponding sampling point
Figure FDA0002791557690000071
When it is, will hjThe abrupt peak value h of the working fluid level position is regarded as the abrupt peak value of the working fluid level positionjThe corresponding sampling point j is regarded as the sampling point of the position of the working fluid level, wherein h-and h+Respectively, the sudden change peak value h of the working fluid leveljLeft and right adjacent peak values;
when the oil well is the first deep well, the working fluid level depth searching range is 0.4Yh~1.3YhComputer (4) at 0.4Yh~1.3YhAcquiring each peak value in the deep well return-to-zero echo filter signal S (i) in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the first deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position of the shallow well;
when the oil well is the second deep well, the working fluid level depth searching range is 0.5Yh~1.3YhComputer (4) at 0.5Yh~1.3YhCollecting each peak value in the return-to-zero echo filtering signal S (i) of the deep well in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the second deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position;
when the oil well is the third deep well, the working fluid level depth is searchedIn the range of 0.6Yh~1.2YhComputer (4) at 0.6Yh~1.2YhCollecting each peak value in the deep well return-to-zero echo filter signal S (i) in a corresponding sampling point, wherein the acquisition modes of the sudden change peak value of the working fluid level position of the third deep well and the sampling point of the working fluid level position are the same as the acquisition modes of the sudden change peak value of the working fluid level position of the shallow well and the sampling point of the working fluid level position of the shallow well;
step eight, acquiring the sampling time of the working fluid level position: the computer (4) respectively searches a sampling point j-1 and a sampling point j +1 at the left side and the right side of the sampling point j of the position of the working fluid level, and the corresponding amplitude of the sampling point j-1 is hj-1The corresponding amplitude of the sampling point j +1 is hj+1Using (j-1, h)j-1)、(j,hj) And (j +1, h)j+1) Three points are used to obtain a quadratic function y ═ ax using sampling point as variable x and amplitude as function value y2+ bx + c, wherein a, b, and c are constants; obtaining a quadratic function y ═ ax2The extreme point coordinate of + bx + c
Figure FDA0002791557690000072
According to the formula
Figure FDA0002791557690000073
Calculating the sampling time t of the position of the working fluid level;
step nine, identifying the actual depth of the working fluid level: according to the formula
Figure FDA0002791557690000081
Calculating the actual depth Y of the working fluid levels
2. The method for identifying the working fluid level of an oil well according to claim 1, wherein: the sound wave generator (1) is an implosion type sound wave generator or an external explosion type sound wave generator, and when the sound wave generator (1) is the implosion type sound wave generator, the abrupt change peak value h of the working fluid level position in the step sevenjTaking a positive peak value; when the sound wave generator (1) is an external explosion type sound wave generator, the abrupt change peak value h of the working fluid level position in the step sevenjTaking the negative peak value.
3. The method for identifying the working fluid level of an oil well according to claim 1, wherein: the sampling frequency f of the dynamic liquid level measuring instrument (3)sIs 470 Hz.
4. The method for identifying the working fluid level of an oil well according to claim 1, wherein: minimum sound velocity v of infrasonic wave propagating in annular space formed between oil pipe (5) and casing (7) in step 201min220m/s, the maximum sound velocity v of the infrasonic wave propagating in the annular space formed between the oil pipe (5) and the casing (7)maxIs 400 m/s.
5. The method for identifying the working fluid level of an oil well according to claim 1, wherein: the spectral line with the maximum energy represents that the spectral amplitude corresponding to the frequency is not less than 2 times of the spectral amplitude corresponding to the frequency in the neighborhood around the frequency.
6. The method for identifying the working fluid level of an oil well according to claim 1, wherein: abscissa of the extreme point coordinates
Figure FDA0002791557690000082
Satisfies the following conditions:
Figure FDA0002791557690000083
CN201810168944.8A 2018-02-28 2018-02-28 Method for identifying working fluid level of oil well Active CN108252708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810168944.8A CN108252708B (en) 2018-02-28 2018-02-28 Method for identifying working fluid level of oil well

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810168944.8A CN108252708B (en) 2018-02-28 2018-02-28 Method for identifying working fluid level of oil well

Publications (2)

Publication Number Publication Date
CN108252708A CN108252708A (en) 2018-07-06
CN108252708B true CN108252708B (en) 2021-07-13

Family

ID=62745494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810168944.8A Active CN108252708B (en) 2018-02-28 2018-02-28 Method for identifying working fluid level of oil well

Country Status (1)

Country Link
CN (1) CN108252708B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113108870B (en) * 2021-03-15 2022-10-11 重庆邮电大学 Oil well working fluid level measuring method based on low-frequency narrow-band noise excitation and multi-sensor fusion
CN113792628B (en) * 2021-08-30 2024-04-12 荆州市明德科技有限公司 HHT-based intelligent automatic waveform analysis method
CN113719274B (en) * 2021-09-09 2023-08-22 西南石油大学 Automatic monitoring system and monitoring method for underground working fluid level for well drilling
CN117514148B (en) * 2024-01-05 2024-03-26 贵州航天凯山石油仪器有限公司 Oil-gas well working fluid level identification and diagnosis method based on multidimensional credibility fusion

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5117399A (en) * 1990-07-16 1992-05-26 James N. McCoy Data processing and display for echo sounding data
CN103147740A (en) * 2012-04-01 2013-06-12 贵州航天凯山石油仪器有限公司 Method for testing liquid level echo time
CN104196520A (en) * 2014-08-19 2014-12-10 陕西延长石油(集团)有限责任公司研究院 Remote continuous liquid level measurement and oil well intermittent pumping intelligent control system
CN107060739A (en) * 2017-06-29 2017-08-18 西安海联石化科技有限公司 A kind of memory-type well fluid level monitoring system and method
CN107299832A (en) * 2017-06-30 2017-10-27 西安石油大学 A kind of method that use frequency difference formula infrasonic wave generator measures well fluid level

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5117399A (en) * 1990-07-16 1992-05-26 James N. McCoy Data processing and display for echo sounding data
CN103147740A (en) * 2012-04-01 2013-06-12 贵州航天凯山石油仪器有限公司 Method for testing liquid level echo time
CN104196520A (en) * 2014-08-19 2014-12-10 陕西延长石油(集团)有限责任公司研究院 Remote continuous liquid level measurement and oil well intermittent pumping intelligent control system
CN107060739A (en) * 2017-06-29 2017-08-18 西安海联石化科技有限公司 A kind of memory-type well fluid level monitoring system and method
CN107299832A (en) * 2017-06-30 2017-10-27 西安石油大学 A kind of method that use frequency difference formula infrasonic wave generator measures well fluid level

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
回声法监测油井动液面影响因素分析与对策;皇甫王欢等;《石油工业技术监督》;20170731;第33卷(第7期);第1-3页 *

Also Published As

Publication number Publication date
CN108252708A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108252708B (en) Method for identifying working fluid level of oil well
CN106089188B (en) A kind of real-time minimizing technology of mud pulse signal pump noise
CN108416282B (en) Method for extracting acoustic velocity of echo signal of underground working fluid level based on tubing coupling
US6421298B1 (en) Mud pulse telemetry
CN110469782B (en) Pipeline leakage positioning device based on self-adaptive filter
US9007232B2 (en) Mud pulse telemetry noise reduction method
US7095676B2 (en) Assessing a solids deposit in an oilfield pipe
CN101592288B (en) Method for identifying pipeline leakage
WO2018004369A1 (en) Method and system for locating downhole objects which reflect a hydraulic signal
CN109780447B (en) Method for detecting blockage condition in pressure pipeline by using pulse pressure wave
CN104535275B (en) Underwater gas leakage amount detection method and device based on bubble acoustics
WO2016112147A1 (en) Gauge length optimization in distributed vibration sensing
CN110645483B (en) Urban buried pipeline early leakage diagnosis method based on spectrum analysis
CN104343440B (en) The detection method and system of mud pressure pulse signal
CN103644460A (en) Filtering optimal selection method for leakage sound wave signals of gas transmission line
CN111535802A (en) Mud pulse signal processing method
NO20111691A1 (en) Filtering of acoustic waveforms in downhole environments
CN104089186A (en) Pipe pressure anomaly diagnostic method based on combined filtering and dynamic thresholds
CN109958432B (en) Method and device for evaluating cementing quality of well cementation II interface by utilizing ultrasonic echo logging
WO2021020986A1 (en) A method of determining depths of wellbore reflectors
CN105116445A (en) Method and apparatus of seismic data combination processing of amphibious detector
CN107389787B (en) A kind of gas incursion check signal processing method based on frequency domain
CN113685172A (en) While-drilling acoustic well cementation quality evaluation method and processing device
CN107389786B (en) A kind of gas incursion check signal processing method based on time domain
CN113719274A (en) Novel downhole dynamic liquid level automatic monitoring system and monitoring method for well drilling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant