Instantaneous sound velocity determination method, device and equipment based on ultrasonic flowmeter

By obtaining the antegrade propagation time and retrograde propagation time in the ultrasonic flowmeter, combined with the installation position parameters and energy conversion action delay, the problem of instantaneous sound speed calculation error is solved, and the measurement accuracy and calculation efficiency are improved.

CN118758388APending Publication Date: 2024-10-11ZHEJIANG CHINT INSTR & METER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411144977.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing ultrasonic flowmeters have problems with large errors when calculating instantaneous sound velocity, resulting in inaccurate measurement results.

Method used

By obtaining the antegrade propagation time and retrograde propagation time of the ultrasonic signal in the ultrasonic flowmeter, combined with the installation position parameters of the transducer and the energy conversion action delay, a corresponding expression is constructed to solve the instantaneous sound velocity and reduce the error caused by equipment delay. Improve measurement accuracy.

Benefits of technology

A more accurate calculation of the instantaneous sound velocity is achieved, thereby improving the accuracy of the measurement results of the ultrasonic flow meter, simplifying the calculation process and reducing power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118758388A_ABST
    Figure CN118758388A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of flow measurement, and discloses an instantaneous sound velocity determination method, device and equipment based on an ultrasonic flowmeter, and the method comprises the steps: obtaining a first expression of the forward propagation time of an ultrasonic signal in the ultrasonic flowmeter with respect to the instantaneous sound velocity and a second expression of the backward propagation time with respect to the instantaneous sound velocity, the first expression and the second expression are constructed based on installation position parameters of the transducer and energy conversion action delay of the transducer; acquiring mounting position parameters, energy conversion action delay, forward propagation time and backward propagation time of a transducer in the ultrasonic flowmeter; the first expression and the second expression are solved by combining the installation position parameters, the energy conversion action delay, the forward propagation time and the backward propagation time to obtain the instantaneous sound velocity, the instantaneous sound velocity can be accurately obtained, then the instantaneous flow can be calculated according to the instantaneous sound velocity, and the measurement result of the ultrasonic flowmeter is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of flow measurement, and in particular to a method, a device and equipment for determining instantaneous sound velocity based on an ultrasonic flowmeter. Background Art

[0002] Ultrasonic metering technology in the field of gas metering is a technology that uses the principles of ultrasonic propagation and measurement to achieve gas flow measurement. Compared with the complex mechanical structure of diaphragm gas meters, the fully electronic ultrasonic metering technology has the advantages of higher accuracy, wider measurement range, higher reliability and stability, and better pollution resistance.

[0003] At present, ultrasonic measurement technology has achieved rapid development. When calculating the instantaneous flow rate, the instantaneous sound velocity must be obtained first. The mainstream correlation method and threshold method in the industry are to use the transit time b1 and b2 of the ultrasonic wave in the sound path a as parameters. The common practice is to approximate the calculation of the instantaneous sound velocity under the instantaneous flow rate to the sound velocity under zero flow rate, that is, the instantaneous sound velocity C 0 =a / (b1+b2), so as the flow rate increases, the error will increase.

[0004] Therefore, the current method for calculating the instantaneous sound velocity of ultrasonic flow meters has the problem of inaccurate calculation results. Summary of the invention

[0005] In view of this, the present invention provides a method, device and equipment for determining instantaneous sound velocity based on an ultrasonic flowmeter, so as to solve or partially solve the technical problem that the calculation result of the instantaneous sound velocity calculation method of the ultrasonic flowmeter is not accurate enough.

[0006] In a first aspect, the present invention provides a method for determining instantaneous sound velocity based on an ultrasonic flowmeter, comprising: obtaining a first expression of the instantaneous sound velocity in relation to the antegrade propagation time of an ultrasonic signal in the ultrasonic flowmeter and a second expression of the instantaneous sound velocity in relation to the retrograde propagation time, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer; obtaining the installation position parameters, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time of the transducer in the ultrasonic flowmeter; solving the first expression and the second expression in combination with the installation position parameters, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound velocity.

[0007] The present invention provides a method for determining instantaneous sound velocity based on an ultrasonic flowmeter, by obtaining a first expression of the instantaneous sound velocity related to the antegrade propagation time of an ultrasonic signal in the ultrasonic flowmeter and a second expression of the instantaneous sound velocity related to the retrograde propagation time, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer, and the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time of the transducer in the ultrasonic flowmeter are obtained, and the first expression and the second expression are solved in combination with the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time to obtain the instantaneous sound velocity, so that the instantaneous sound velocity can be accurately obtained, and then the instantaneous flow rate can be calculated using the instantaneous sound velocity, so that the measurement result of the ultrasonic flowmeter is more accurate.

[0008] Optionally, the installation position parameters include the horizontal angle between the ultrasonic path and the pipeline, the pipeline path of the ultrasonic signal propagation and the transducer installation cavity path; the first expression is:

[0009] T up =2L / (C 0 +v 0 cosθ)+2Dl / c 0 +T delay

[0010] The second expression is:

[0011] T down =2L / (C 0 -v 0 cosθ)+2Dl / C 0 +T delay

[0012] Where, T up is the anterograde propagation time, T down is the retrograde propagation time, L is the pipeline path of the ultrasonic signal propagation, D1 is the cavity path of the transducer installation, θ is the horizontal angle between the ultrasonic path and the pipeline, T delay is the energy conversion action delay, v 0 is the flow rate of the fluid in the pipe, C 0 is the instantaneous sound speed.

[0013] In this way, the first expression and the second expression are constructed according to the energy conversion action delay of the transducer, the horizontal angle between the ultrasonic path and the pipeline, the pipeline path of the ultrasonic signal propagation and the transducer installation cavity path, which can reduce the error caused by equipment delay and thus improve the accuracy of the measurement results.

[0014] Optionally, the instantaneous sound speed is obtained by solving the first expression and the second expression in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time, including: subtracting the energy conversion action delay from the antegrade propagation time to obtain a first time parameter, and subtracting the energy conversion action delay from the retrograde propagation time to obtain a second time parameter; solving the first expression and the second expression in combination with the installation position parameter, the first time parameter and the second time parameter to obtain a first instantaneous sound speed calculation formula; and obtaining the instantaneous sound speed based on the first instantaneous sound speed calculation.

[0015] In this manner, the first time parameter and the second time parameter are obtained by subtracting the energy conversion action delay, which can simplify the subsequent solution process and reduce computing power consumption.

[0016] Optionally, the first instantaneous sound speed calculation formula is:

[0017]

[0018] Where, t 1 is the first time parameter, t 2 is the second time parameter.

[0019] This formula helps to simplify the calculation process while maintaining high measurement accuracy.

[0020] Optionally, the instantaneous sound speed calculation based on the first instantaneous sound speed includes: simplifying the first instantaneous sound speed calculation formula to obtain the second instantaneous sound speed calculation formula; obtaining the reference value of the first time parameter and the reference value of the second time parameter according to the flow velocity of the fluid in the pipeline under preset working conditions and the standard instantaneous sound speed calculation; calculating the calculation error of the second instantaneous sound speed calculation formula relative to the first instantaneous sound speed calculation formula according to the reference value of the first time parameter and the reference value of the second time parameter; comparing the calculation error with a preset accuracy threshold, and when the calculation error is less than the preset accuracy threshold, using the second instantaneous sound speed calculation formula to calculate and obtain the instantaneous sound speed.

[0021] By simplifying the first instantaneous sound speed calculation formula, the calculation complexity is reduced. At the same time, by comparing the calculation error and the preset accuracy threshold, it is ensured that the simplified second instantaneous sound speed calculation formula is used while meeting the accuracy requirements. This can improve the calculation efficiency while ensuring the measurement accuracy.

[0022] Optionally, the second instantaneous sound speed calculation formula is:

[0023]

[0024] The second instantaneous sound speed calculation formula helps to improve the calculation speed and efficiency while maintaining sufficient accuracy.

[0025] Optionally, the step of obtaining the energy conversion action delay includes: obtaining the antegrade propagation time at zero flow or the retrograde propagation time at zero flow under the condition of nitrogen filling in the pipeline; calculating the energy conversion action delay by combining the first expression and the antegrade propagation time at zero flow, or calculating the energy conversion action delay by combining the second expression and the retrograde propagation time at zero flow.

[0026] The energy conversion action delay is determined by measuring the antegrade or retrograde propagation time under zero flow conditions. This method can ensure that the influence of device delay on the measurement results is excluded in actual measurement, thereby improving the accuracy and reliability of the measurement.

[0027] In a second aspect, the present invention provides an instantaneous sound velocity determination device based on an ultrasonic flowmeter, comprising: an expression acquisition module, used to obtain a first expression of the antegrade propagation time of an ultrasonic signal in the ultrasonic flowmeter with respect to the instantaneous sound velocity and a second expression of the retrograde propagation time with respect to the instantaneous sound velocity, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer; a parameter acquisition module, used to obtain the installation position parameters of the transducer in the ultrasonic flowmeter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time; an instantaneous sound velocity solving module, used to solve the first expression and the second expression in combination with the installation position parameters, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound velocity.

[0028] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the instantaneous sound velocity determination method based on an ultrasonic flow meter according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0029] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for determining instantaneous sound velocity based on an ultrasonic flow meter according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 is a flow chart of a method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to an embodiment of the present invention;

[0032] Figure 2 is a schematic diagram of the installation of a transducer according to an embodiment of the present invention;

[0033] Figure 3 is a flow chart of another method for determining instantaneous sound velocity based on an ultrasonic flow meter according to an embodiment of the present invention;

[0034] Figure 4 is a structural block diagram of an instantaneous sound velocity determination device based on an ultrasonic flowmeter according to an embodiment of the present invention;

[0035] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0037] At present, when ultrasonic metering technology calculates instantaneous flow, a common practice is to approximate the calculation of the sound velocity under flow to the sound velocity under zero flow. This method has a large calculation error. If the approximate calculation is not performed, the calculation is complicated and affects the power consumption. Based on this, an embodiment of the present invention provides a method for determining the instantaneous sound velocity based on an ultrasonic flowmeter, which can meet the measurement accuracy requirements, has low calculation complexity, and can meet the 10-year life requirement of the gas meter battery.

[0038] According to an embodiment of the present invention, an embodiment of a method for determining instantaneous sound velocity based on an ultrasonic flow meter is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] In this embodiment, a method for determining instantaneous sound velocity based on an ultrasonic flow meter is provided, which can be used in mobile terminals such as mobile phones, tablet computers, etc. Figure 1 As shown, the process includes the following steps:

[0040] Step S101, obtaining a first expression of the forward propagation time of an ultrasonic signal in an ultrasonic flow meter with respect to the instantaneous sound velocity and a second expression of the retrograde propagation time with respect to the instantaneous sound velocity, wherein both the first expression and the second expression are constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer.

[0041] Specifically, see Figure 2 In the typical flow channel and transducer installation method, the ultrasonic flow meter includes two transducers, namely transducer A and transducer C. When the air intake direction is from left to right, the time for the ultrasonic signal emitted by transducer A to propagate to transducer C is the antegrade propagation time, and the time for the ultrasonic signal emitted by transducer C to propagate to transducer A is the retrograde propagation time. The antegrade propagation time and the retrograde propagation time are affected by the propagation path, flow velocity and instantaneous sound velocity. Based on the physical relationship between the parameters, the first expression and the second expression are pre-constructed and input.

[0042] By obtaining the first expression and the second expression, a theoretical basis is provided for the subsequent calculation of the instantaneous sound speed.

[0043] In an embodiment of the present invention, the first expression and the second expression also take into account the energy conversion action delay of the transducer, that is, the delay time required for the transducer to convert from excitation electroacoustic to reception acoustic-electrical conversion. This delay includes the delay in the conversion of mechanical energy and electrical energy of the transducer and the delay in the circuit action on the circuit board, which can make the calculation result more accurate.

[0044] Step S102, obtaining the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time of the transducer in the ultrasonic flow meter.

[0045] Specifically, the installation position parameters include the horizontal angle between the ultrasonic path and the pipeline, the pipeline path of the ultrasonic signal propagation and the transducer installation cavity path, and the installation position parameters are measured after the transducer is installed. The energy conversion action delay is obtained by pre-measurement, and the antegrade propagation time and the retrograde propagation time are monitored in real time, that is, the antegrade propagation time and the retrograde propagation time are measured from the start of the transducer excitation signal to the receipt of the electrical signal using the correlation method or the threshold method.

[0046] Step S103, solving the first expression and the second expression in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound speed.

[0047] Specifically, in the first expression and the second expression, the unknown quantities include flow velocity and instantaneous sound velocity. In the embodiment of the present invention, only the instantaneous sound velocity needs to be solved to obtain an expression of the instantaneous sound velocity with respect to the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time, wherein the installation position parameters and the energy conversion action delay are constants measured in advance, and the antegrade propagation time and retrograde propagation time are parameters measured in real time, and the instantaneous sound velocity can be calculated based on the measured antegrade propagation time and retrograde propagation time.

[0048] A method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to an embodiment of the present invention obtains a first expression of the instantaneous sound velocity related to the antegrade propagation time of an ultrasonic signal in the ultrasonic flowmeter and a second expression of the instantaneous sound velocity related to the retrograde propagation time, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer, obtains the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time of the ultrasonic flowmeter, and solves the first expression and the second expression in combination with the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time to obtain the instantaneous sound velocity, which can accurately obtain the instantaneous sound velocity, and then the instantaneous flow rate can be calculated using the instantaneous sound velocity, thereby making the measurement result of the ultrasonic flowmeter more accurate.

[0049] In some embodiments, the installation position parameters include the horizontal angle between the ultrasonic path and the pipeline, the pipeline path of the ultrasonic signal propagation, and the transducer installation cavity path; the first expression is:

[0050] T up =2L / (C 0 +v 0 cosθ)+2Dl / c 0 +T delay

[0051] The second expression is:

[0052] T down =2L / (C 0 -v 0 cosθ)+2Dl / C 0 +T delay

[0053] Where, T up is the anterograde propagation time, T down is the retrograde propagation time, L is the pipeline path of the ultrasonic signal propagation, Dl is the cavity path where the transducer is installed, θ is the horizontal angle between the ultrasonic path and the pipeline, T delay is the energy conversion action delay, v 0 is the flow rate of the fluid in the pipe, C 0 is the instantaneous speed of sound.

[0054] In the first and second expressions, in addition to considering that the ultrasonic signal propagates in the flow channel at the synthesis of the sound velocity and the flow velocity, its propagation distance is 2L and the flow velocity is v 0 , and also consider the propagation at the speed of sound in the transducer installation cavity, the propagation distance is Dl, and the energy conversion action delay T required for the transducer from the excitation electroacoustic conversion to the receiving acoustic-electric conversion delay , comprehensive consideration can reduce the error caused by equipment delay, thereby improving the accuracy of measurement results.

[0055] In some embodiments, in step S102, the step of obtaining the energy conversion action delay includes:

[0056] Step S1021, obtaining the forward propagation time at zero flow rate or the retrograde propagation time at zero flow rate under the condition of nitrogen filling in the pipeline.

[0057] Step S1022, combining the first expression and the antegrade propagation time at zero flow rate to calculate the energy conversion action delay, or combining the second expression and the retrograde propagation time at zero flow rate to calculate the energy conversion action delay.

[0058] Specifically, by filling the flow channel with nitrogen, a T up or T down The measured value, at this time, the instantaneous sound speed is the sound speed in air at 25°C, and the energy conversion action delay can be obtained by substituting it into the first expression or the second expression.

[0059] The energy conversion action delay is determined by measuring the antegrade or retrograde propagation time under zero flow conditions. This method can ensure that the influence of device delay on the measurement results is excluded in actual measurement, thereby improving the accuracy and reliability of the measurement.

[0060] Further, step S103, solving the first expression and the second expression in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound velocity includes:

[0061] Step S1031, subtracting the energy conversion action delay from the antegrade propagation time to obtain a first time parameter, and subtracting the energy conversion action delay from the retrograde propagation time to obtain a second time parameter.

[0062] Specifically, the first time parameter t 1 =T up -T delay , the second time parameter t 2 =T down -T delay .

[0063] Step S1032, solving the first expression and the second expression in combination with the installation position parameter, the first time parameter and the second time parameter to obtain a first instantaneous sound speed calculation formula.

[0064] Among them, the calculation formula of the first instantaneous sound speed is:

[0065]

[0066] Where, t 1 is the first time parameter, t 2 is the second time parameter. This formula helps to simplify the calculation process while maintaining high measurement accuracy.

[0067] Step S1033, calculating and obtaining the instantaneous sound speed based on the first instantaneous sound speed.

[0068] Specifically, when the calculation accuracy is required to be high, the sound speed coefficient is determined by the first instantaneous sound speed calculation formula, such as constants such as 2Dl+L and 2L. Based on these sound speed coefficients, the first instantaneous sound speed calculation formula is written into a code to directly calculate the instantaneous sound speed to ensure the calculation accuracy.

[0069] In this manner, the first time parameter and the second time parameter are obtained by subtracting the energy conversion action delay, which can simplify the subsequent solution process and reduce computing power consumption.

[0070] In some embodiments, step S1033, calculating and obtaining the instantaneous sound speed based on the first instantaneous sound speed, includes:

[0071] Step S10331, simplify the first instantaneous sound speed calculation formula to obtain the second instantaneous sound speed calculation formula.

[0072] Specifically, in the first instantaneous sound speed calculation formula, due to t 1 -t 2 Much smaller than t 1 t 2 , so we can make an approximation and let (2Dl+L) 2 (t 1 -t 2 ) 2 =0, then the second instantaneous sound speed calculation formula is:

[0073]

[0074] The second instantaneous sound speed calculation formula includes 1 multiplication operation, 1 root operation and 1 division operation, while the first instantaneous sound speed calculation formula includes 10 multiplication operations, 1 root operation and 1 division operation. Using the second instantaneous sound speed calculation formula to calculate the instantaneous sound speed can greatly reduce the calculation load of the MCU. In addition, the second instantaneous sound speed calculation formula only ignores a smaller value, which helps to improve the calculation speed and efficiency while maintaining sufficient accuracy.

[0075] Step S10332: Calculate a reference value of the first time parameter and a reference value of the second time parameter according to the flow velocity of the fluid in the pipeline under the preset working condition and the standard instantaneous sound velocity.

[0076] Specifically, under the preset working conditions, the working condition of the G4 specification gas meter in accordance with the national standard at a temperature of 25°C is adopted, and the overload flow of the G4 specification gas meter in accordance with the national standard is 7.2m 3 / h, according to flow rate = flow rate / 3600s / cross-sectional area, we get the flow rate v 0 It is 12.6m / s (7.2 / 3600 / 0.0001584). At the same time, at this temperature, the corresponding standard instantaneous sound speed is 346m / s.

[0077] According to the flow rate of the fluid in the pipeline under the preset working conditions and the standard instantaneous sound velocity, the t at this time can be calculated by substituting the first expression and the second expression into 1 and t 2 , and regard it as the reference value of the first time parameter and the reference value of the second time parameter.

[0078] Step S10333, calculating the calculation error of the second instantaneous sound speed calculation formula relative to the first instantaneous sound speed calculation formula according to the reference value of the first time parameter and the reference value of the second time parameter.

[0079] After obtaining the reference value of the first time parameter and the reference value of the second time parameter, use them as t 1 and t 2 Substituting the first instantaneous sound speed calculation formula and the second instantaneous sound speed calculation formula into the two instantaneous sound speed calculation formula, two instantaneous sound speeds calculated according to the two formulas are obtained, and then the ratio of the two instantaneous sound speeds is calculated to obtain the calculation error of the second instantaneous sound speed calculation formula relative to the first instantaneous sound speed calculation formula.

[0080] In one example, first calculate The value is 0.0227%, and then calculate and (2Dl+L)(t 1 +t 2 ) is 0.41, that is The proportion of the term to the entire instantaneous sound speed is 0.41, which is multiplied by 0.0227% to get 0.009%. Therefore, the calculation error of the second instantaneous sound speed calculation formula relative to the first instantaneous sound speed calculation formula is 0.009%.

[0081] Step S10334, comparing the calculation error with a preset accuracy threshold, when the calculation error is less than the preset accuracy threshold, using a second instantaneous sound speed calculation formula to calculate the instantaneous sound speed.

[0082] For example, if the gas meter designed is of level 1.5, as shown in Table 1, its preset accuracy threshold is within 1%, and the error caused by our approximation is 0.009%, which is much smaller than the preset accuracy threshold. If we want to seek higher accuracy, we can increase the cross-sectional area, thereby reducing the flow rate, and then reducing the time difference, obtaining a higher approximation value, and improving C 0 accuracy.

[0083] Table 1 Maximum allowable error

[0084]

[0085] In an embodiment of the present invention, by simplifying the first instantaneous sound speed calculation formula, the calculation complexity is reduced. By comparing the calculation error and the preset accuracy threshold, it is ensured that the simplified second instantaneous sound speed calculation formula is used while meeting the accuracy requirements. This can improve the calculation efficiency while ensuring the measurement accuracy.

[0086] The instantaneous sound velocity determination method based on an ultrasonic flow meter according to an embodiment of the present invention is introduced below with a specific calculation process.

[0087] In a typical flow channel and transducer installation method, such as Figure 2 and Figure 3 As shown, the horizontal angle θ between the ultrasonic path and the pipeline is 60°, 2L is 0.05127m, Dl is 0.005265m, and the cross-sectional area of ​​the flow channel is 0.0001584m 2 .

[0088] Let the first time parameter t 1 =T up -T delay , the second time parameter t 2 =T down -T delay , combining the first expression and the second expression, we can get:

[0089]

[0090] Subtract the first expression from the second expression to get t 1 With t 2 The difference is C 0With v 0 is a function of the variable. Calculated using a G4 gas meter that meets national standards, the overload flow is 7.2m 3 / h, according to flow rate = flow rate / 3600s / channel cross-sectional area, we can get the flow rate v 0 is 12.6 m / s. At the same time, the speed of sound in air at 25°C is 346 m / s. 0 is 346 m / s, then we can calculate t 1 With t 2 The difference is 5.40us, t 1 181.36us, t 2 It is 175.96us.

[0091] For the first instantaneous sound speed calculation formula Due to t 1 -t 2 Much smaller than t 1 t 2 , so we can make an approximation and let (2Dl+L) 2 (t 1 -t 2 ) 2 = 0, then this part is approximately Right now:

[0092]

[0093] In formula (1a), Calculate the term and get:

[0094]

[0095] Order (2411t 1 -2411t 2 ) 2 If is 0, The items are:

[0096] When t 1 With t 2 The difference is 5.40us, t 1 181.36us, t 2 When t is 175.96us, 1 With t 2 Substituting into formula (2a) we get: That is 610728.9306722045. Substituting it into formula (3a) yields: That is 610590.1423898476. Therefore, the calculation error caused by the approximation is (2a)-(3a) / (2a), which is 0.0227%. Usually, the calculation error is less than 0.1% and can be ignored. For higher accuracy, the approximation effect is further estimated.

[0097] According to the above approximate results, we have:

[0098]

[0099] t 1 181.36us, t 2 Substituting 175.96us into the calculation, we get C 0 The ratio is about 0.41, which multiplied by 0.0227% is 0.009%, that is, the overall calculation error is 0.009%.

[0100] If the preset accuracy threshold is 1%, and the calculation error of the second instantaneous sound speed calculation formula is 0.009%, which is much smaller than the target error requirement, it means that the second instantaneous sound speed calculation formula meets the design requirements.

[0101] Furthermore, in order to seek higher accuracy, the cross-sectional area can be increased to reduce the flow velocity, thereby reducing the time difference, obtaining a higher approximation and improving C 0 accuracy.

[0102] After obtaining the second instantaneous sound speed calculation formula, 0.0180825 and 0.025635 are used as the required sound speed coefficients and encoded in the code according to the following formula:

[0103]

[0104] The second instantaneous sound speed calculation formula includes 1 multiplication operation, 1 root operation and 1 division operation, while the first instantaneous sound speed calculation formula includes 10 multiplication operations, 1 root operation and 1 division operation. Compared with the first instantaneous sound speed, using the second instantaneous sound speed calculation formula to calculate the instantaneous sound speed can greatly reduce the computing load of the MCU.

[0105] The embodiment of the present invention also provides a device for determining instantaneous sound velocity based on an ultrasonic flow meter, such as Figure 4 As shown, including:

[0106] An expression acquisition module 401 is used to acquire a first expression of the forward propagation time of an ultrasonic signal in an ultrasonic flow meter with respect to the instantaneous sound velocity and a second expression of the retrograde propagation time with respect to the instantaneous sound velocity, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer;

[0107] The parameter acquisition module 402 is used to obtain the installation position parameters, energy conversion action delay, antegrade propagation time and retrograde propagation time of the transducer in the ultrasonic flow meter;

[0108] The instantaneous sound speed solving module 403 is used to solve the first expression and the second expression in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound speed.

[0109] The instantaneous sound velocity determination device based on the ultrasonic flowmeter of the embodiment of the present invention obtains a first expression of the instantaneous sound velocity related to the antegrade propagation time of the ultrasonic signal in the ultrasonic flowmeter and a second expression of the instantaneous sound velocity related to the retrograde propagation time, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer, obtains the installation position parameters of the transducer in the ultrasonic flowmeter, and solves the first expression and the second expression in combination with the installation position parameters, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound velocity. The instantaneous sound velocity can be accurately obtained, and then the instantaneous flow rate can be calculated based on the instantaneous sound velocity, so that the measurement result of the ultrasonic flowmeter is more accurate.

[0110] Furthermore, the installation position parameters include the horizontal angle between the ultrasonic path and the pipeline, the pipeline path of the ultrasonic signal propagation, and the transducer installation cavity path;

[0111] The first expression is:

[0112] T up =2L / (C 0 +v 0 cosθ)+2Dl / C 0 +T delay

[0113] The second expression is:

[0114] T down =2L / (C 0 -v 0 cosθ)+2Dl / C 0 +T delay

[0115] Where, T up is the anterograde propagation time, T down is the retrograde propagation time, L is the pipeline path of the ultrasonic signal propagation, Dl is the cavity path where the transducer is installed, θ is the horizontal angle between the ultrasonic path and the pipeline, T delay is the energy conversion action delay, v 0 is the flow rate of the fluid in the pipe, C 0 is the instantaneous speed of sound.

[0116] Furthermore, the instantaneous sound speed solving module 403 includes:

[0117] A time parameter calculation module, used for subtracting the energy conversion action delay from the antegrade propagation time to obtain a first time parameter, and subtracting the energy conversion action delay from the retrograde propagation time to obtain a second time parameter;

[0118] A first instantaneous sound speed calculation formula acquisition module, used to solve the first expression and the second expression in combination with the installation position parameter, the first time parameter and the second time parameter to obtain the first instantaneous sound speed calculation formula;

[0119] The instantaneous sound speed calculation module is used to obtain the instantaneous sound speed based on the first instantaneous sound speed calculation.

[0120] Furthermore, the first instantaneous sound speed calculation formula is:

[0121]

[0122] In the formula, t 1 is the first time parameter, t 2 is the second time parameter.

[0123] Furthermore, the instantaneous sound speed calculation module includes:

[0124] A formula simplification module, used to simplify the first instantaneous sound speed calculation formula to obtain a second instantaneous sound speed calculation formula;

[0125] A reference value acquisition module, used to calculate and obtain a reference value of a first time parameter and a reference value of a second time parameter according to a flow velocity of a fluid in a pipeline under a preset working condition and a standard instantaneous sound velocity;

[0126] An error calculation module, used to calculate a calculation error of a second instantaneous sound speed calculation formula relative to the first instantaneous sound speed calculation formula according to a reference value of the first time parameter and a reference value of the second time parameter;

[0127] The error comparison module is used to compare the calculated error with a preset accuracy threshold, and when the calculated error is less than the preset accuracy threshold, the instantaneous sound speed is calculated using the second instantaneous sound speed calculation formula.

[0128] Furthermore, the second instantaneous sound speed calculation formula is:

[0129]

[0130] Furthermore, the parameter acquisition module 402 includes:

[0131] A propagation time acquisition module is used to acquire the antegrade propagation time at zero flow or the retrograde propagation time at zero flow under the condition of nitrogen filling in the pipeline;

[0132] The delay calculation module is used to calculate the energy conversion action delay by combining the first expression and the antegrade propagation time at zero flow, or to calculate the energy conversion action delay by combining the second expression and the retrograde propagation time at zero flow.

[0133] The embodiment of the present invention also provides a schematic diagram of the structure of a computer device, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.

[0134] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0135] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0136] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0137] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0138] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0139] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0140] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0141] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0142] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope of protection.

Claims

1. A method for determining instantaneous sound velocity based on an ultrasonic flowmeter, characterized in that: include: Obtaining a first expression of the forward propagation time of an ultrasonic signal in an ultrasonic flowmeter with respect to the instantaneous sound velocity and a second expression of the retrograde propagation time with respect to the instantaneous sound velocity, wherein both the first expression and the second expression are constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer; Obtain the installation position parameters of the transducer in the ultrasonic flow meter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time; The first expression and the second expression are solved in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound speed.

2. The method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to claim 1, characterized in that: The installation position parameters include the horizontal angle between the ultrasonic path and the pipeline, the pipeline path for ultrasonic signal propagation, and the transducer installation cavity path; The first expression is: T up =2L / (C0+v0cosθ)+2Dl / C0+T delay The second expression is: T down =2L / (C0-v0cosθ)+2Dl / C0+T delay Where, T up is the anterograde propagation time, T down is the retrograde propagation time, L is the pipeline path of the ultrasonic signal propagation, D1 is the cavity path of the transducer installation, θ is the horizontal angle between the ultrasonic path and the pipeline, T delay is the energy conversion action delay, v0 is the flow velocity of the fluid in the pipeline, and C0 is the instantaneous sound velocity.

3. The method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to claim 2, characterized in that: The step of solving the first expression and the second expression in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time, and the retrograde propagation time to obtain the instantaneous sound speed includes: The first time parameter is obtained by subtracting the energy conversion action delay from the antegrade propagation time, and the second time parameter is obtained by subtracting the energy conversion action delay from the retrograde propagation time; Solving the first expression and the second expression in combination with the installation position parameter, the first time parameter and the second time parameter to obtain a first instantaneous sound speed calculation formula; The instantaneous sound speed is calculated based on the first instantaneous sound speed.

4. The method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to claim 3, characterized in that: The first instantaneous sound speed calculation formula is: In the formula, t1 is the first time parameter, and t2 is the second time parameter.

5. The method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to claim 4, characterized in that: The calculating and obtaining the instantaneous sound speed based on the first instantaneous sound speed includes: Simplifying the first instantaneous sound speed calculation formula to obtain a second instantaneous sound speed calculation formula; Calculating a reference value of the first time parameter and a reference value of the second time parameter according to the flow velocity of the fluid in the pipeline under a preset working condition and the standard instantaneous sound velocity; Calculating a calculation error of the second instantaneous sound speed calculation formula relative to the first instantaneous sound speed calculation formula according to a reference value of the first time parameter and a reference value of the second time parameter; The calculation error is compared with a preset accuracy threshold, and when the calculation error is less than the preset accuracy threshold, the instantaneous sound speed is calculated using a second instantaneous sound speed calculation formula.

6. The method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to claim 5, characterized in that: The second instantaneous sound speed calculation formula is:

7. The method for determining instantaneous sound velocity based on an ultrasonic flowmeter according to claim 1, characterized in that: The step of obtaining the energy conversion action delay comprises: Obtaining the antegrade propagation time at zero flow or the retrograde propagation time at zero flow under the condition that the pipeline is filled with nitrogen; The energy conversion action delay is calculated by combining the first expression and the antegrade propagation time at zero flow rate, or the energy conversion action delay is calculated by combining the second expression and the retrograde propagation time at zero flow rate.

8. A device for determining instantaneous sound velocity based on an ultrasonic flowmeter, characterized in that: include: An expression acquisition module, used to acquire a first expression of the forward propagation time of an ultrasonic signal in an ultrasonic flowmeter with respect to an instantaneous sound velocity and a second expression of the retrograde propagation time with respect to the instantaneous sound velocity, wherein the first expression and the second expression are both constructed based on the installation position parameters of the transducer and the energy conversion action delay of the transducer; A parameter acquisition module, used to acquire the installation position parameter of the transducer in the ultrasonic flow meter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time; The instantaneous sound speed solving module is used to solve the first expression and the second expression in combination with the installation position parameter, the energy conversion action delay, the antegrade propagation time and the retrograde propagation time to obtain the instantaneous sound speed.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the instantaneous sound velocity determination method based on an ultrasonic flow meter as described in any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the instantaneous sound velocity determination method based on an ultrasonic flow meter according to any one of claims 1 to 7.