A natural gas high-precision metering method, device and system
By analyzing the impact of pipeline vibration interference and noise, and improving the step size factor of the adaptive filtering algorithm, the problem of noise interference of ultrasonic flow meters in natural gas flow measurement is solved and the measurement accuracy is improved.
Patent Information
- Application Number
- CN202411025163.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Ultrasonic flowmeters are easily interfered by external noise during the natural gas flow measurement process, resulting in poor accuracy in measuring pulse cycle frequency. The traditional adaptive filtering algorithm cannot take into account the convergence speed and steady-state error, thus affecting the measurement effect.
By analyzing the pipe vibration interference and noise impact, the noise correlation and data noise immunity are determined, combined with the step factor adjustment of the adaptive filtering algorithm, the filtering algorithm is improved to improve the accuracy of the pulse cycle frequency, and the frequency method is used to analyze natural gas Flow metering.
It improves the measurement accuracy of natural gas flow, solves the problem of pulse cycle frequency measurement under the influence of noise interference, and achieves more accurate flow measurement.
Smart Images

Figure CN118548948B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of natural gas metering, and in particular to a method, device and system for high-precision natural gas metering. Background Art
[0002] As a clean and efficient energy source, natural gas meets the requirements of sustainable social development. However, due to the uneven distribution of natural gas resources, the transportation of natural gas has become a widely used energy utilization link. At present, natural gas is widely used in production and construction in various fields. Pipeline transportation is a safe and efficient way to transport natural gas, so it is widely used in the energy utilization link of natural gas. At the same time, natural gas metering is a very important link in natural gas transportation and natural gas application, which has important practical significance for ensuring natural gas management and comprehensive benefits of natural gas.
[0003] Ultrasonic flowmeter is a common method for measuring natural gas. It measures the pulse cycle frequency in the downstream and upstream flow, and uses the basic principle of measuring flow velocity by frequency method to measure the natural gas flow in the pipeline. However, in the process of using ultrasonic flowmeter to measure the natural gas flow in the pipeline, the measurement of pulse cycle frequency is easily affected by external noise interference, resulting in poor accuracy of the measured pulse cycle frequency. Digital filtering technology is needed to filter the pulse cycle frequency.
[0004] As a commonly used filtering technology, the adaptive filtering algorithm has low algorithm complexity and can effectively suppress the sidelobe effect. However, the traditional adaptive filtering algorithm often selects a single fixed step size factor, which cannot take into account the convergence speed and steady-state error when filtering the pulse cycle frequency, resulting in poor filtering effect on the pulse cycle frequency, and thus unable to accurately measure the natural gas flow. Summary of the invention
[0005] In order to solve the above technical problems, the purpose of this application is to provide a natural gas high-precision metering method, equipment and system. The technical solutions adopted are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for high-precision natural gas metering, comprising the following steps:
[0007] During the natural gas transportation process, the downstream pulse cycle frequency and the reverse pulse cycle frequency are collected;
[0008] The pipeline vibration interference degree at each acquisition moment is obtained by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the reverse pulse cycle frequency at multiple adjacent acquisition moments at each acquisition moment;
[0009] According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained;
[0010] Based on the correlation between the noise influence of multiple neighboring collection moments of each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency of multiple neighboring collection moments, the noise correlation of each collection moment is determined, and the data noise resistance of each collection moment is obtained in combination with the noise influence;
[0011] Based on the average level of data noise immunity at all acquisition moments and the difference in data noise immunity at adjacent acquisition moments, the anti-interference degree in the pulse cycle frequency measurement process is determined, and the step length adjustment factor is determined in combination with the maximum value of the step length factor of the adaptive filtering algorithm;
[0012] According to the step adjustment factor, the downstream pulse cycle frequency and the reverse pulse cycle frequency are processed separately using the adaptive filtering algorithm, and the natural gas flow measurement result is obtained through the frequency method.
[0013] Preferably, the calculation formula of the pipeline vibration interference degree at each acquisition time is:
[0014] , where is the pipeline vibration disturbance degree at the tth acquisition moment, is the coefficient of variation of the downstream frequency sequence at the tth acquisition moment, is the coefficient of variation of the countercurrent frequency sequence at the tth acquisition moment, wherein the downstream frequency sequence and the countercurrent frequency sequence are respectively composed of the downstream pulse cycle frequencies and the countercurrent pulse cycle frequencies of multiple neighboring acquisition moments at each acquisition moment.
[0015] Preferably, the calculation formula for the noise impact degree at each acquisition moment is:
[0016] , where is the noise influence at the tth acquisition moment, is the abnormal score of pipeline vibration disturbance at the tth acquisition moment.
[0017] Preferably, the noise correlation degree at each acquisition moment corresponds to the calculation formula:
[0018] Arrange the noise influence degrees of multiple neighboring collection moments of each collection moment in ascending order of time to form a noise influence degree sequence of each collection moment;
[0019] The correlation between the noise impact degree sequence at each acquisition moment and the downstream frequency sequence is analyzed, and the average of the two correlations is taken as the noise correlation at each acquisition moment.
[0020] Preferably, the corresponding calculation formula for the data noise immunity at each acquisition moment is: , where is the data noise immunity at the tth acquisition moment, is the noise correlation at the tth acquisition moment, To avoid values with a denominator of zero.
[0021] Preferably, the anti-interference degree in the pulse cycle frequency measurement process corresponds to the calculation formula:
[0022] , where is the anti-interference degree during the pulse cycle frequency measurement process, is the mean value of the data noise resistance at all acquisition moments, is the number of all acquisition moments, , are the data noise immunity at the t-th and t-1-th acquisition moments, respectively. To avoid values with a denominator of zero.
[0023] Preferably, the calculation formula of the step size adjustment factor is:
[0024] , where is the step size adjustment factor in the adaptive filtering algorithm, is an exponential function with a natural constant as base, is the maximum value of the step size factor of the adaptive filtering algorithm.
[0025] Preferably, the natural gas flow measurement result obtained by the frequency method includes:
[0026] The difference between the downstream pulse cycle frequency and the upstream pulse cycle frequency at each acquisition moment after analysis and processing is used as the average of the differences at all acquisition moments to measure the frequency difference of the ultrasonic wave before and after emission;
[0027] The frequency method is combined with measuring the frequency difference of the ultrasonic wave before and after emission to obtain the average flow velocity of the fluid during the measurement time, and the product of the cross-sectional area of the pipeline and the average flow velocity of the fluid during the measurement time is used as the measurement result of the natural gas flow.
[0028] In a second aspect, an embodiment of the present application provides a high-precision natural gas metering device, the device comprising:
[0029] The natural gas metering data acquisition module is used to collect the downstream pulse cycle frequency and the reverse pulse cycle frequency during the natural gas transportation process;
[0030] The metering data analysis module is used to obtain the pipeline vibration interference degree at each collection moment by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the reverse pulse cycle frequency at multiple adjacent collection moments at each collection moment;
[0031] According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained;
[0032] Based on the correlation between the noise influence of multiple neighboring collection moments of each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency of multiple neighboring collection moments, the noise correlation of each collection moment is determined, and the data noise resistance of each collection moment is obtained in combination with the noise influence;
[0033] Based on the average level of data noise immunity at all acquisition moments and the difference in data noise immunity at adjacent acquisition moments, the anti-interference degree in the pulse cycle frequency measurement process is determined, and the step length adjustment factor is determined in combination with the maximum value of the step length factor of the adaptive filtering algorithm;
[0034] The natural gas metering module is used to process the downstream pulse cycle frequency and the upstream pulse cycle frequency respectively according to the step adjustment factor using an adaptive filtering algorithm, and obtain the natural gas flow metering result through a frequency method.
[0035] In a third aspect, an embodiment of the present application further provides a high-precision natural gas metering system, the system comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned high-precision natural gas metering methods when executing the computer program.
[0036] From the above, it can be seen that the high-precision natural gas metering method, device and system provided by the present application have at least the following beneficial effects:
[0037] The present application realizes the measurement of natural gas flow. In the prior art, in the process of measuring the natural gas flow in a pipeline using an ultrasonic flowmeter, the measurement of the pulse cycle frequency is easily affected by external noise interference, resulting in poor accuracy of the measured pulse cycle frequency. The present application improves the step size factor in the adaptive filtering algorithm so that the algorithm can take into account both the convergence speed and the steady-state error when filtering the pulse cycle frequency, thereby improving the effect of filtering the pulse cycle frequency and solving the problem that the measurement of the pulse cycle frequency is easily affected by external noise interference, resulting in poor accuracy of the measured pulse cycle frequency, thereby realizing more accurate measurement of the natural gas flow. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 A flowchart of the steps of a high-precision natural gas measurement method provided in this application;
[0040] Figure 2 A block diagram of a high-precision natural gas metering device provided for this application. DETAILED DESCRIPTION
[0041] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of a natural gas high-precision metering method, device and system proposed in the present application in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0042] Unless otherwise specified and limited, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the article or device including the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application.
[0043] The specific scheme of a high-precision natural gas metering method, equipment and system provided by the present application is described in detail below with reference to the accompanying drawings.
[0044] See also Figure 1 , which shows a flowchart of a method for high-precision natural gas metering provided by an embodiment of the present application, including the following steps:
[0045] Step 1: During the natural gas transportation process, ultrasonic flow meters are used to collect the downstream pulse cycle frequency and the reverse pulse cycle frequency.
[0046] The purpose of this embodiment is to improve the step size factor in the adaptive filtering algorithm, taking into account the convergence speed and steady-state error when filtering the pulse cycle frequency, thereby improving the effect of filtering the pulse cycle frequency and accurately measuring the natural gas flow.
[0047] In the process of transporting natural gas on the pipeline, the pulse cycle frequency of the downstream and the pulse cycle frequency of the reverse flow are collected by ultrasonic flow meter equipment to obtain continuous downstream pulse cycle frequency and reverse flow pulse cycle frequency, respectively, and the collection time is 1 minute;
[0048] The continuous downstream pulse cycle frequency and the upstream pulse cycle frequency are discretized, and the sequences of the discretized downstream pulse cycle frequency and the upstream pulse cycle frequency in ascending time order are respectively used as the downstream pulse cycle frequency sequence and the upstream pulse cycle frequency sequence, wherein the discretization process is a well-known technology and the specific process will not be repeated here.
[0049] Step 2: The pipeline vibration interference degree at each collection moment is obtained by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the upstream pulse cycle frequency at multiple adjacent collection moments at each collection moment.
[0050] Normally, when the pressure of natural gas fluid in the pipeline is too high, the natural gas fluid will flow abnormally, causing vibration characteristics in the transmission pipeline, affecting the measurement of pulse cycle frequency. Under normal circumstances, the natural gas flow rate in the transmission pipeline has a high stability, and the change stability of the ultrasonic pulse cycle frequency is high, but if the change of the pulse cycle frequency in a short period of time is more unstable, it is more likely to be due to interference caused by pipeline vibration.
[0051] In order to analyze the degree to which the pulse cycle frequency at different moments is affected by pipeline vibration, multiple acquisition moments with the closest time interval between each acquisition moment are used as multiple neighboring acquisition moments of each acquisition moment. The number of selected neighboring acquisition moments is set to 20 in this embodiment.
[0052] For ease of understanding and expression, in this embodiment, a set of 20 neighboring collection moments of each collection moment is used as a neighboring time set of each collection moment, and further, a sequence of the downstream pulse cycle frequencies and the reverse pulse cycle frequencies of all collection moments in the neighboring time set in ascending order of time is used as a downstream frequency sequence and a reverse frequency sequence of each collection moment;
[0053] The pipeline vibration interference degree at each collection moment is obtained by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the upstream pulse cycle frequency at multiple adjacent collection moments at each collection moment. In this embodiment, the pipeline vibration interference degree calculation formula is specifically:
[0054] , where is the pipeline vibration disturbance degree at the tth acquisition moment, is the coefficient of variation of the downstream frequency sequence at the tth acquisition moment, is the coefficient of variation of the countercurrent frequency sequence at the tth acquisition moment. The larger the coefficient of variation of the downstream frequency sequence and the countercurrent frequency sequence, the greater the discreteness of the pulse cycle frequency in the local short time at the acquisition moment, which to a certain extent reflects that the greater the interference of the pipeline vibration on the pulse cycle frequency at this time, the greater the interference degree of the pipeline vibration.
[0055] Step 3: According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained.
[0056] Under normal circumstances, when the natural gas fluid pressure in the pipeline is stable, the transmission pipeline will hardly generate pipeline vibration. If the abnormal degree of pipeline vibration interference at a certain moment is greater, it means to a certain extent that the degree of vibration noise interference is higher at this time, resulting in a larger abnormality in the change of pulse cycle frequency.
[0057] In order to analyze the complexity of the pulse cycle frequency at different times being disturbed by pipeline vibration noise, the abnormal degree of pipeline vibration interference at each acquisition time is analyzed. Preferably, in this embodiment, the pipeline vibration interference at all acquisition times is used as the input of the HBOS abnormal detection algorithm, and the output of the HBOS abnormal detection algorithm is used as the abnormal score of the pipeline vibration interference at each acquisition time. The larger the abnormal score, the greater the abnormal degree of the pulse cycle frequency change. The HBOS abnormal detection algorithm is a well-known technology, and the specific process is not repeated.
[0058] According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained. In this embodiment, the corresponding calculation formula is:
[0059] , where is the noise influence at the tth acquisition moment, is the abnormal score of pipeline vibration interference at the tth acquisition moment. The larger the abnormal score is, the greater the pipeline vibration interference is, that is, the greater the abnormal degree of pulse cycle frequency change is at this time, which to a certain extent reflects the higher degree of noise influence at this time, and the greater the noise influence is.
[0060] Step 4: Based on the correlation between the noise influence of multiple neighboring collection moments at each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency of multiple neighboring collection moments, determine the noise correlation of each collection moment, and obtain the data noise resistance of each collection moment in combination with the noise influence.
[0061] Normally, during the measurement of the pulse cycle frequency, when it is disturbed by external pipeline vibration noise, the pulse cycle frequency will show a correlated change. If the correlation between the change in the pulse cycle frequency and the change in noise impact is higher, it means to a certain extent that the noise resistance of the pulse cycle generated by ultrasonic propagation is worse.
[0062] In order to analyze the anti-noise ability of the pulse cycle at different times, the noise influence of all the acquisition moments in the neighboring time set of each acquisition moment is arranged in ascending order of time as the noise influence sequence of each acquisition moment;
[0063] The noise influence degree sequence, downstream frequency sequence and upstream frequency sequence at each acquisition moment are respectively used as inputs of the Grey Relational Analysis method, and the output of the Grey Relational Analysis method is respectively used as the correlation degree between the noise influence degree sequence at each acquisition moment and the downstream frequency sequence, and the correlation degree between the noise influence degree sequence at each acquisition moment and the upstream frequency sequence, wherein the Grey Relational Analysis method is a well-known technology, and the specific process is not repeated here;
[0064] Based on the correlation between the noise influence of multiple neighboring collection moments at each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency at multiple neighboring collection moments, the noise correlation of each collection moment is determined. Specifically, in this embodiment, the correlation between the noise influence sequence of each collection moment and the downstream frequency sequence is analyzed, and the average of the two correlations is used as the noise correlation of each collection moment.
[0065] For ease of understanding, in this embodiment, the corresponding calculation formula for the noise correlation degree at each acquisition moment is:
[0066] , where is the noise correlation at the tth acquisition moment, is the correlation between the noise impact sequence at the tth acquisition moment and the downstream frequency sequence, It is the correlation between the noise influence degree sequence and the countercurrent frequency sequence at each acquisition moment.
[0067] It can be understood that the greater the correlation between the noise impact sequence and the downstream frequency sequence and the upstream frequency sequence, the greater the noise correlation, which indicates to a certain extent that the change in the pulse cycle frequency at this time has a high correlation with the noise impact.
[0068] According to the noise correlation degree at each acquisition moment and in combination with the noise influence degree, the data noise resistance at each acquisition moment is obtained. The calculation formula in this embodiment is: , where is the data noise immunity at the tth acquisition moment, To avoid a value with a denominator of zero, in this embodiment, the error parameter is set to 1. The smaller the noise correlation and the smaller the noise influence, to a certain extent, it means that the change of the pulse cycle frequency is less affected by the pipeline vibration noise interference. At this time, the pulse cycle frequency has a stronger resistance to pipeline vibration noise, and the data noise resistance is greater.
[0069] Step 5: Based on the average level of data noise immunity at all acquisition moments and the difference in data noise immunity at adjacent acquisition moments, determine the degree of interference immunity during the pulse cycle frequency measurement process, and determine the step adjustment factor in combination with the preset maximum value of the step factor.
[0070] Generally speaking, when measuring the pulse cycle frequency in a pipeline, the more stable the pulse cycle frequency is against vibration and noise interference, the lower the vibration and noise components contained in the measured pulse cycle frequency. However, if the resistance to vibration and noise interference is less stable, the pulse cycle frequency will be more affected by pipeline vibration interference, resulting in poor accuracy of the measured pulse cycle frequency.
[0071] Based on the above analysis, the anti-interference degree in the pulse cycle frequency measurement process is determined according to the average level of data anti-noise degree of all acquisition moments and the difference in data anti-noise degree of adjacent acquisition moments. Preferably, the calculation formula in this embodiment is:
[0072] , where is the anti-interference degree during the pulse cycle frequency measurement process, is the mean value of the data noise resistance at all acquisition moments, is the number of all acquisition moments, is the data noise immunity at the t-1th acquisition moment.
[0073] It can be understood that the larger the mean value of the data noise immunity and the smaller the change of the data noise immunity, to a certain extent, it means that the more stable the anti-interference ability is in the process of measuring the pulse cycle frequency, the greater the anti-interference degree is.
[0074] When the pulse cycle frequency is filtered using an adaptive filtering algorithm, if the anti-interference degree during the measurement process is smaller, it means that the resistance to noise interference during measurement is more unstable, and the pulse cycle frequency is more affected by environmental interference noise. At this time, a larger step size factor should be selected to increase the convergence speed during the filtering process; conversely, if the anti-interference degree during the measurement process is larger, it means that the resistance to noise interference during measurement is more stable, and the pulse cycle frequency is less affected by environmental interference noise. At this time, a smaller step size factor should be selected to ensure the accuracy of the steady-state error during the filtering process.
[0075] According to the anti-interference degree in the pulse cycle frequency measurement process, combined with the maximum value of the step size factor of the adaptive filtering algorithm, the step size adjustment factor is determined. The calculation formula in this embodiment is:
[0076] , where is the step size adjustment factor of the adaptive filtering algorithm, is an exponential function with a natural constant as base, is the maximum value of the step size factor of the adaptive filtering algorithm. The maximum value of the step size factor of the adaptive filtering algorithm is ,in, is the maximum eigenvalue of the autocorrelation matrix of the input signal, wherein the calculation of the maximum value of the step size factor of the adaptive filtering algorithm is a well-known technology and the specific process will not be repeated here.
[0077] Step 6: According to the step adjustment factor, the downstream pulse cycle frequency and the reverse pulse cycle frequency are processed by the adaptive filtering algorithm, and the natural gas flow measurement result is obtained by the frequency method.
[0078] In order to improve the accuracy of measuring pulse cycle frequency, the downstream pulse cycle frequency sequence and the upstream pulse cycle frequency sequence are respectively used as inputs of the adaptive filtering algorithm, and the step size adjustment factor is used as the step size factor in the adaptive filtering algorithm to output the downstream pulse cycle frequency sequence and the upstream pulse cycle frequency sequence after filtering. The adaptive filtering algorithm is a well-known technology and the specific process will not be repeated here.
[0079] After analysis and processing, the difference between the downstream pulse cycle frequency and the upstream pulse cycle frequency at each collection moment is obtained, and the average of the difference at all collection moments is used as the frequency difference of the ultrasonic wave before and after the emission. The average flow velocity of the fluid within the measurement time is obtained by combining the frequency method with the measurement of the frequency difference of the ultrasonic wave before and after the emission, and the product of the cross-sectional area of the pipeline and the average flow velocity of the fluid within the measurement time is used as the measurement result of the natural gas flow rate. The method of measuring the flow velocity by the frequency method is a well-known technology, and the specific process will not be repeated here.
[0080] On the other hand, based on the same inventive concept as the above method, the embodiment of the present application provides a high-precision natural gas metering device, including:
[0081] The natural gas metering data acquisition module is used to collect the downstream pulse cycle frequency and the reverse pulse cycle frequency during the natural gas transportation process;
[0082] The metering data analysis module is used to obtain the pipeline vibration interference degree at each collection moment by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the reverse pulse cycle frequency at multiple adjacent collection moments at each collection moment;
[0083] According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained;
[0084] Based on the correlation between the noise influence of multiple neighboring collection moments of each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency of multiple neighboring collection moments, the noise correlation of each collection moment is determined, and the data noise resistance of each collection moment is obtained in combination with the noise influence;
[0085] Based on the average level of data noise immunity at all acquisition moments and the difference in data noise immunity at adjacent acquisition moments, the anti-interference degree in the pulse cycle frequency measurement process is determined, and the step length adjustment factor is determined in combination with the maximum value of the step length factor of the adaptive filtering algorithm;
[0086] The natural gas metering module is used to process the downstream pulse cycle frequency and the upstream pulse cycle frequency respectively according to the step adjustment factor using an adaptive filtering algorithm, and obtain the natural gas flow metering result through a frequency method.
[0087] Specifically, a block diagram of a natural gas high-precision metering device is as follows: Figure 2 shown.
[0088] In addition, an embodiment of the present application also provides a high-precision natural gas metering system, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned high-precision natural gas metering methods are implemented.
[0089] It is to be understood that the sequence of the embodiments of the present application described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of the present specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0090] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0091] The above content is only an implementation method of the present application and is not intended to limit the scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the protection scope of the present application.
Claims
1. A high-precision natural gas metering method, characterized in that: The following steps are involved: During the natural gas transportation process, the downstream pulse cycle frequency and the reverse pulse cycle frequency are collected; The pipeline vibration interference degree at each acquisition moment is obtained by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the upstream pulse cycle frequency at multiple adjacent acquisition moments at each acquisition moment; According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained; Based on the correlation between the noise influence of multiple neighboring collection moments of each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency of multiple neighboring collection moments, the noise correlation of each collection moment is determined, and the data noise resistance of each collection moment is obtained in combination with the noise influence; Based on the average level of data noise immunity at all acquisition moments and the difference in data noise immunity at adjacent acquisition moments, the anti-interference degree in the pulse cycle frequency measurement process is determined, and the step length adjustment factor is determined in combination with the maximum value of the step length factor of the adaptive filtering algorithm; According to the step adjustment factor, the downstream pulse cycle frequency and the reverse pulse cycle frequency are processed by using the adaptive filtering algorithm, and the natural gas flow measurement result is obtained by the frequency method. The calculation formula of the pipeline vibration interference degree at each acquisition time is: , where is the pipeline vibration disturbance degree at the tth acquisition moment, is the coefficient of variation of the downstream frequency sequence at the tth acquisition moment, is the coefficient of variation of the countercurrent frequency sequence at the t-th acquisition moment, wherein the downstream frequency sequence and the countercurrent frequency sequence are respectively composed of the downstream pulse cycle frequencies and the countercurrent pulse cycle frequencies of multiple neighboring acquisition moments at each acquisition moment; The calculation formula of the noise influence degree at each acquisition moment is: , where is the noise influence at the tth acquisition moment, is the abnormal score of pipeline vibration disturbance at the tth acquisition moment; The corresponding calculation formula of the noise correlation degree at each acquisition time is: Arrange the noise influence degrees of multiple neighboring collection moments of each collection moment in ascending time order to form a noise influence degree sequence of each collection moment; Analyze the correlation between the noise impact degree sequence at each acquisition moment and the downstream frequency sequence, and take the average of the two correlations as the noise correlation at each acquisition moment; The corresponding calculation formula for the data noise immunity at each acquisition time is: , where is the data noise immunity at the tth acquisition moment, is the noise correlation at the tth acquisition moment, To avoid values with a denominator of zero; The corresponding calculation formula for the anti-interference degree in the pulse cycle frequency measurement process is: , where is the anti-interference degree during the pulse cycle frequency measurement process, is the mean value of the data noise resistance at all acquisition moments, is the number of all acquisition moments, , are the data noise immunity at the t-th and t-1-th acquisition moments, respectively. To avoid values with a denominator of zero.
2. A natural gas high-precision metering method according to claim 1, characterized in that: The calculation formula of the step length adjustment factor is: , where is the step size adjustment factor in the adaptive filtering algorithm, is an exponential function with a natural constant as base, is the maximum value of the step size factor of the adaptive filtering algorithm.
3. A natural gas high-precision metering method according to claim 1, characterized in that: The natural gas flow measurement result obtained by the frequency method includes: The difference between the downstream pulse cycle frequency and the upstream pulse cycle frequency at each acquisition time after analysis and processing, and the average of the difference at all acquisition times is used as the frequency difference of the ultrasonic wave before and after the emission; The frequency method is combined with measuring the frequency difference of the ultrasonic wave before and after emission to obtain the average flow velocity of the fluid during the measurement time, and the product of the cross-sectional area of the pipeline and the average flow velocity of the fluid during the measurement time is used as the measurement result of the natural gas flow.
4. A high-precision natural gas metering device, implementing the method as claimed in claim 1, characterized in that: The device comprises: The natural gas metering data acquisition module is used to collect the downstream pulse cycle frequency and the reverse pulse cycle frequency during the natural gas transportation process; The metering data analysis module is used to obtain the pipeline vibration interference degree at each collection moment by analyzing the discrete degree of the downstream pulse cycle frequency and the discrete degree of the reverse pulse cycle frequency at multiple adjacent collection moments at each collection moment; According to the abnormal situation of pipeline vibration interference degree at each collection time and the pipeline vibration interference degree at each collection time, the noise influence degree at each collection time is obtained; Based on the correlation between the noise influence of multiple neighboring collection moments of each collection moment and the downstream pulse cycle frequency and the upstream pulse cycle frequency of multiple neighboring collection moments, the noise correlation of each collection moment is determined, and the data noise resistance of each collection moment is obtained in combination with the noise influence; Based on the average level of data noise immunity at all acquisition moments and the difference in data noise immunity at adjacent acquisition moments, the anti-interference degree in the pulse cycle frequency measurement process is determined, and the step length adjustment factor is determined in combination with the maximum value of the step length factor of the adaptive filtering algorithm; The natural gas metering module is used to process the downstream pulse cycle frequency and the upstream pulse cycle frequency respectively according to the step adjustment factor using an adaptive filtering algorithm, and obtain the natural gas flow metering result through a frequency method.
5. A natural gas high-precision metering system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of a high-precision natural gas metering method as described in any one of claims 1-3 are implemented.
