Method and device for correcting sectional metering parameters of ultrasonic flowmeter
By using a segmented metering parameter correction method and a two-dimensional linear interpolation model, and dividing the interval according to the Reynolds coefficient, the problem of increased memory and decreased accuracy of ultrasonic flowmeters at higher flow rates is solved, thus achieving high-precision metering in different flow rate ranges.
Patent Information
- Application Number
- CN202511817079.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-04
- Publication Date
- 2026-02-24
AI Technical Summary
Existing ultrasonic flow meters increase the amount of interpolation data at higher flow rates, leading to increased memory usage, while reducing correction accuracy at lower flow rates.
A segmented measurement parameter correction method is adopted, which divides the measurement intervals into dense and sparse segments based on the target Reynolds coefficient, and uses a two-dimensional linear interpolation model for correction to construct correction coefficients in a two-dimensional coordinate system.
Without increasing data memory, the accuracy of flow rate and temperature corrections has been improved, ensuring accurate measurement across different flow rate ranges.
Smart Images

Figure CN121558153A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of ultrasonic flow meter measurement technology, and specifically to a method and apparatus for correcting segmented measurement parameters of an ultrasonic flow meter. Background Technology
[0002] An ultrasonic flow meter measures flow rate by detecting the effect of fluid flow on an ultrasonic beam or pulse. The time-of-flight method is the most widely used, calculating the flow velocity of the fluid by measuring the time difference caused by the difference in propagation speed between forward and reverse directions of the ultrasonic wave. Generally, the measurement parameters of the ultrasonic flow meter are calculated using the zero-comparison method and the cross-correlation method. However, the fluid velocity calculated using these methods deviates from the actual fluid velocity, mainly because the velocity distribution of the fluid in the pipe is not uniform. Therefore, the calculated velocity needs to be corrected.
[0003] In related technologies, the flow rate and temperature bilinear interpolation method is generally used. However, when the flow rate is low, the flow rate distribution of the fluid changes drastically with temperature and flow rate. When the flow rate is high, the flow rate distribution of the fluid is less affected by temperature and flow rate. Therefore, this bilinear interpolation method will increase the amount of interpolation data and thus increase memory if the interpolation gradient is reduced when the flow rate is high. On the other hand, if the interpolation gradient is increased when the flow rate is low, the accuracy of flow rate and temperature correction will be reduced at low flow rates. Summary of the Invention
[0004] This invention provides a method and apparatus for correcting segmented metering parameters of an ultrasonic flow meter, in order to solve the problem that in bilinear interpolation, if the interpolation gradient is reduced at high flow rates, the amount of interpolation data will increase, thus increasing memory usage; and if the interpolation gradient is increased at low flow rates, the accuracy of flow rate and temperature correction will decrease.
[0005] In a first aspect, the present invention provides a method for correcting segmented metering parameters of an ultrasonic flowmeter, the method comprising: The target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter are obtained. The target metering parameters include the target temperature parameter and the target flow velocity parameter. Based on the target Reynolds coefficient, multiple segmented measurement intervals for the target measurement parameter are determined, including: When the target fluid is determined to be in a laminar state or a transitional state between laminar and turbulent flow based on the target Reynolds coefficient, the target measurement parameter is divided into a first number of segmented measurement intervals, and the first number is used as the threshold number of dense intervals. When the target fluid is determined to be in a turbulent state based on the target Reynolds coefficient, the target measurement parameter is divided into a second number of segmented measurement intervals. The second number is less than the first number, and the second number is used as the threshold number of the sparse interval. The target segmented measurement interval to which the target measurement parameter belongs is determined, and the target measurement parameter is corrected using a two-dimensional linear interpolation model. The two-dimensional linear interpolation model is constructed in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval.
[0006] In this embodiment, based on the target Reynolds coefficient, multiple segmented measurement intervals of the target measurement parameter are determined. Each segmented measurement interval can be corrected using a two-dimensional linear interpolation model. Dense segmented measurement intervals are divided in intervals with large changing trends, while sparse segmented measurement intervals are divided in intervals with gentle changing trends, so as to improve the accuracy of flow rate correction while occupying less data memory space.
[0007] In some alternative implementations, the two-dimensional linear interpolation model is constructed through the following steps: A two-dimensional coordinate system is constructed with the flow velocity parameter as the abscissa and the temperature parameter as the ordinate, and the measurement parameters in the target segmented measurement interval are mapped onto the two-dimensional coordinate system; Select the target temperature parameter, target flow velocity parameter, first temperature, second temperature, first flow velocity, and second flow velocity from a two-dimensional coordinate system; Obtain the first correction coefficient corresponding to the first temperature and the first flow rate, the second correction coefficient corresponding to the first temperature and the second flow rate, the third correction coefficient corresponding to the second temperature and the first flow rate, and the fourth correction coefficient corresponding to the second temperature and the second flow rate; Based on the first correction factor, the second correction factor, the first flow velocity, the second flow velocity, and the target flow velocity parameter, calculate the fifth correction factor corresponding to the first temperature and the target flow velocity parameter; Based on the third correction factor, the fourth correction factor, the first flow velocity, the second flow velocity, and the target flow velocity parameter, calculate the sixth correction factor corresponding to the second temperature and the target flow velocity parameter; Based on the fifth correction factor, the sixth correction factor, the first temperature, the second temperature, and the target temperature parameter, calculate the seventh correction factor corresponding to the target temperature parameter and the target flow velocity parameter; By labeling the first, second, third, fourth, fifth, sixth, and seventh correction coefficients at their corresponding coordinate points in a two-dimensional coordinate system, a two-dimensional linear interpolation model is obtained.
[0008] This embodiment, through the above implementation method, accurately calculates multiple correction coefficients in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval, thereby constructing a two-dimensional linear interpolation model, which facilitates subsequent rapid and accurate correction of the target temperature parameters and target flow velocity parameters in the target segmented measurement interval.
[0009] In some optional implementations, a fifth correction factor corresponding to the first temperature and the target flow rate parameter is calculated based on the first correction factor, the second correction factor, the first flow rate, the second flow rate, and the target flow rate parameter, using the following formula: Y1´ = (Y21 - Y11) / (V2 - V1)×(V´ - V1)+Y11 Wherein, Y11 is the first correction coefficient, Y21 is the second correction coefficient, V2 is the second flow velocity, V1 is the first flow velocity, V´ is the target flow velocity, and Y1´ is the fifth correction coefficient corresponding to the first temperature and target flow velocity parameters.
[0010] This embodiment, through the above implementation method, can accurately calculate the fifth correction coefficient corresponding to the first temperature and target flow velocity parameters.
[0011] In some optional implementations, a sixth correction factor corresponding to the second temperature and the target flow rate parameter is calculated based on the third correction factor, the fourth correction factor, the first temperature, the second temperature, and the target flow rate parameter, using the following formula: Y2´ = (Y22 - Y12) / (V2 - V1)×(V´ - V1)+Y12 Where Y12 is the third correction coefficient, Y22 is the fourth correction coefficient, V1 is the first flow velocity, V2 is the second flow velocity, V´ is the target flow velocity parameter, and Y2´ is the sixth correction coefficient corresponding to the second temperature and the target flow velocity parameter.
[0012] This embodiment, through the above implementation method, can accurately calculate the sixth correction coefficient corresponding to the second temperature and target flow velocity parameters.
[0013] In some optional implementations, a seventh correction factor corresponding to the target temperature parameter and the target flow rate parameter is calculated based on the fifth correction factor, the sixth correction factor, the first temperature, the second temperature, and the target temperature parameter, using the following formula: Y´´= (Y2´ - Y1´) / (T2 – T1)×(T´ - T1)+Y1´ Where Y1´ is the fifth correction coefficient, Y2´ is the sixth correction coefficient, T1 is the first temperature, T2 is the second temperature, T´ is the target temperature parameter, and Y´´ is the seventh correction coefficient corresponding to the target temperature parameter and the target flow rate parameter.
[0014] This embodiment, through the above implementation method, can accurately calculate the seventh correction coefficient corresponding to the target temperature parameter and the target flow velocity parameter.
[0015] In some optional implementations, when the target measurement parameter is a target temperature parameter, determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model includes: Determine the target segmented metering interval to which the target temperature parameter belongs; Determine whether there is an error between the target temperature parameter and the preset temperature parameter; If so, the target temperature parameters are corrected using a two-dimensional linear interpolation model; If not, the target temperature parameter is confirmed to be normal.
[0016] This embodiment, through the above implementation method, utilizes a two-dimensional linear interpolation model to accurately correct the target temperature parameters.
[0017] In some optional implementations, when the target measurement parameter is a target flow velocity parameter, determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model includes: Determine the target segment metering interval to which the target flow velocity parameter belongs; Determine whether there is an error between the target flow velocity parameters and the preset flow velocity parameters; If so, the target flow velocity parameters are corrected using a two-dimensional linear interpolation model; If not, the target flow rate parameter is confirmed to be normal.
[0018] This embodiment, through the above implementation method, utilizes a two-dimensional linear interpolation model to accurately correct the target flow velocity parameters.
[0019] Secondly, this embodiment provides a correction device for segmented metering parameters of an ultrasonic flowmeter, the device comprising: The parameter acquisition module is used to acquire the target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter. The target metering parameters include the target temperature parameter and the target flow velocity parameter. The interval division module is used to determine multiple segmented measurement intervals for the target measurement parameter based on the target Reynolds coefficient. The parameter measurement module is further used for: When the target fluid is determined to be in a laminar state or a transitional state between laminar and turbulent flow based on the target Reynolds coefficient, the target measurement parameter is divided into a first number of segmented measurement intervals, and the first number is used as the threshold number of dense intervals. When the target fluid is determined to be in a turbulent state based on the target Reynolds coefficient, the target measurement parameter is divided into a second number of segmented measurement intervals. The second number is less than the first number, and the second number is used as the threshold number of the sparse interval. The parameter correction module is used to determine the target segmented measurement interval to which the target measurement parameter belongs, and to correct the target measurement parameter using a two-dimensional linear interpolation model. The two-dimensional linear interpolation model is constructed in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval.
[0020] Thirdly, this embodiment provides an electronic device, including: The memory and the processor are interconnected and communicate with each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the segmented metering parameter correction method of the ultrasonic flowmeter according to the first aspect or any corresponding embodiment described above.
[0021] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the segmented metering parameter correction method of the ultrasonic flowmeter according to the first aspect or any corresponding embodiment described above. Attached Figure Description
[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0023] Figure 1 This is a schematic flowchart of a method for correcting segmented metering parameters of an ultrasonic flowmeter according to an embodiment of the present invention. Figure 2 This is a schematic diagram showing the velocity distribution of fluid in a pipe under different flow states according to an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the correction of multiple segmented metering intervals according to an embodiment of the present invention; Figure 4 This is a schematic diagram of a two-dimensional coordinate system according to an embodiment of the present invention; Figure 5 This is a structural block diagram of a segmented metering parameter correction device for an ultrasonic flowmeter according to an embodiment of the present invention. Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0026] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0027] According to an embodiment of the present invention, a method for correcting segmented metering parameters of an ultrasonic flow meter is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0028] This embodiment provides a method for correcting segmented metering parameters of an ultrasonic flow meter, which can be used on mobile terminals such as mobile phones and tablets. Figure 1 This is a flowchart of a method for correcting segmented metering parameters of an ultrasonic flowmeter according to an embodiment of the present invention, as shown below. Figure 1 As shown, the process includes the following steps: Step S101: Obtain the target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter. The target metering parameters include the target temperature parameter and the target flow velocity parameter.
[0029] Specifically, an ultrasonic flow meter is an instrument that measures flow rate by detecting the effect of fluid flow on an ultrasonic beam or ultrasonic pulse. The target fluid can be a flowing fluid that flows within a pipe. The velocity distribution of the target fluid is affected by the velocity and temperature. For example, the velocity distribution of fluid within a pipe is not uniform; the fluid velocity is high at the center of the pipe and low closer to the pipe wall. Furthermore, the velocity distribution differs at different temperatures and velocities. At lower velocities, the velocity distribution changes drastically with temperature and velocity, while at higher velocities, the velocity distribution is less affected by temperature and velocity.
[0030] The target Reynolds number is a dimensionless number that can be used to characterize fluid flow. The specific calculation process for the target Reynolds number is shown in the following formula (1): (1) Where Re is the target Reynolds number, D is the characteristic length, ρ is the fluid density, and μ is the fluid viscosity coefficient. Since the fluid density and fluid viscosity in formula (1) change with temperature and pressure, this embodiment needs to correct the target temperature parameter. In the above formula (1), the effect of temperature on the Reynolds number can be basically ignored when the flow rate is high. However, when the flow rate is low, the effect of temperature on the target Reynolds number gradually becomes obvious. Therefore, it is necessary to correct the target metering parameters of the target fluid.
[0031] In some alternative implementations, the ultrasonic flow meter is zero-compensated before the steps of obtaining the target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter.
[0032] For example, after the ultrasonic flow meter is installed, in order to improve the reliability of the ultrasonic flow meter in collecting the target flow velocity parameters, the ultrasonic flow meter is compensated at zero flow to ensure that the target flow velocity parameters measured by the ultrasonic flow meter are near 0.
[0033] Step S102: Determine multiple segmented measurement intervals of the target measurement parameter based on the target Reynolds coefficient.
[0034] like Figure 2The diagram illustrates the velocity distribution of fluid within a pipe under different flow conditions. The distribution of velocity equipotential surfaces differs at different Reynolds numbers. Since ultrasonic water meters measure the average flow rate on a plane along the pipe's centerline or chord, the calculated flow rate deviates from the actual flow rate at different Reynolds numbers. The Reynolds number is related to temperature, flow velocity, and pressure (which can be considered constant for incompressible liquids). Therefore, this embodiment can determine multiple segmented measurement intervals for the target measurement parameters using the target Reynolds number. The target measurement parameters include the target temperature parameter and the target flow velocity parameter; therefore, multiple segmented measurement intervals for the target temperature parameter and the target flow velocity parameter are determined.
[0035] In related technologies, bilinear interpolation of velocity and temperature is generally used. However, at low flow rates, the velocity distribution of a fluid changes drastically with temperature and velocity, while at high flow rates, the velocity distribution is less affected by temperature and velocity. Therefore, this bilinear interpolation method, when the flow rate is high, will increase the amount of interpolated data and thus increase memory usage if the interpolation gradient is reduced, and vice versa when the flow rate is low, leading to decreased accuracy. Thus, the bilinear interpolation of velocity and temperature in related technologies cannot segment the interpolation to a suitable gradient, and cannot guarantee accurate correction of fluid velocity and temperature with minimal memory usage.
[0036] Therefore, this embodiment modifies the target measurement parameters based on the target Reynolds coefficient and after dividing the target measurement parameters into multiple segmented measurement intervals. This not only ensures the accuracy of the target measurement parameters but also does not increase data memory.
[0037] exist Figure 1 In step S102 above, based on the target Reynolds coefficient, multiple segmented measurement intervals of the target measurement parameter are determined, including: Step S1021: When the target fluid is determined to be in a laminar state or a transitional state between laminar and turbulent flow based on the target Reynolds coefficient, the target measurement parameter is divided into a first number of segmented measurement intervals, and the first number is used as the threshold number of dense intervals.
[0038] Step S1022: When the target fluid is determined to be in a turbulent state based on the target Reynolds coefficient, the target measurement parameter is divided into a second number of segmented measurement intervals. The second number is less than the first number, and the second number is used as the threshold number of the sparse interval.
[0039] For example, when the target Reynolds number is less than the first preset coefficient, it is determined that the target fluid is in a laminar flow state, and the first preset coefficient is the preset laminar coefficient. When the target fluid is in a laminar flow state, the fluid flows in layers without interference between layers, the streamlines are clear and parallel, and there is no lateral mixing. The first preset coefficient can be selected as 2300, and the first preset coefficient can be set according to the actual situation. Represent the target Reynolds number by Re, that is, when Re < 2300, it is determined that the target fluid is in a laminar flow state.
[0040] For example, when the target Reynolds number is between the first preset coefficient and the second preset coefficient, it is determined that the target fluid is in a transitional state between laminar flow and turbulent flow, and the second preset coefficient is the preset transition coefficient for the transitional state. When the target fluid is in the transitional state, the flow field state is unstable, between laminar flow and turbulent flow, with laminar flow characteristics appearing sometimes and local vortices generated sometimes. The second preset coefficient can be selected as 4000, and the second preset coefficient can also be set according to the actual situation. That is, when 2300 < Re < 4000, it is determined that the target fluid is in a transitional state between laminar flow and turbulent flow.
[0041] For example, when the target Reynolds number is greater than the second preset coefficient, it is determined that the target fluid is in a turbulent flow state. When the target fluid is in a turbulent flow state, the fluid motion is chaotic, with a large number of irregular vortices and lateral pulsations, and the momentum and mass transfer are intense. That is, when Re > 4000, it is determined that the target fluid is in a turbulent flow state.
[0042] Taking all factors into consideration, when the target fluid is in a laminar flow state and a turbulent flow state, that is, at low flow velocities, the influence of temperature change on the flow field is relatively obvious. Therefore, more dense segmented measurement intervals need to be divided in the laminar flow state and the transitional state, and slightly sparser segmented measurement intervals need to be divided in the turbulent flow state. Therefore, the number of segmented measurement intervals of the second quantity is less than the number of segmented measurement intervals of the first target quantity. The first quantity can be used as the threshold quantity for the dense interval, and the second quantity as the threshold quantity for the sparse interval.
[0043] In this embodiment, according to the target Reynolds number, it is determined that the target fluid is in a laminar flow state, or a transitional state between laminar flow and turbulent flow, or a turbulent flow state, and further a suitable segmented measurement interval is more precisely divided, which is beneficial to improving the correction accuracy of the target measurement parameter without increasing the data memory.
[0044] As shown in Table 1 below, it is the data source information table of multiple segmented measurement intervals of the target measurement parameter.
[0045] Table 1 Data source information table of multiple segmented measurement intervals of the target measurement parameter
[0046] Step S103: Determine the target segmented measurement interval to which the target measurement parameter belongs, and use a two-dimensional linear interpolation model to correct the target measurement parameter. The two-dimensional linear interpolation model is constructed in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval.
[0047] like Figure 3 As shown, multiple segmented measurement intervals for the target measurement parameter are determined based on the target Reynolds coefficient. First, the target segmented measurement interval to which the target measurement parameter belongs is determined; for example, in... Figure 3 In the process, when the target measurement parameter belongs to interval 1, a two-dimensional linear interpolation model is used to correct the target measurement parameter in interval 1. When the target measurement parameter belongs to interval N, a two-dimensional linear interpolation model is used to correct the target measurement parameter in interval N.
[0048] In some specific implementations, the two-dimensional linear interpolation model is constructed through the following steps: Step a1: Construct a two-dimensional coordinate system with the flow velocity parameter as the abscissa and the temperature parameter as the ordinate, and map the measurement parameters in the target segmented measurement interval into the two-dimensional coordinate system.
[0049] like Figure 4 The diagram shows a two-dimensional coordinate system, with the horizontal axis representing the X-axis and the vertical axis representing the Y-axis. For example, the target temperature parameter in the target measurement parameters belongs to Tinitial~T1 in Table 1 above, and the target flow velocity parameter belongs to Vinitial~V1_1 in Table 1 above. A two-dimensional linear interpolation model is used to correct the target temperature parameter in Tinitial~T1 and the target flow velocity parameter in Vinitial~V1_1.
[0050] Step a2: Select the target temperature parameter, target flow velocity parameter, first temperature, second temperature, first flow velocity, and second flow velocity from the two-dimensional coordinate system.
[0051] Since the measurement parameters in the target segmented measurement interval are mapped in a two-dimensional coordinate system, the target temperature parameter T´, the target flow velocity parameter V´, the first temperature T1, the second temperature T2, the first flow velocity V1 and the second flow velocity V2 can be selected in this two-dimensional coordinate system.
[0052] Step a3: Obtain the first correction coefficient corresponding to the first temperature and the first flow rate, the second correction coefficient corresponding to the first temperature and the second flow rate, the third correction coefficient corresponding to the second temperature and the first flow rate, and the fourth correction coefficient corresponding to the second temperature and the second flow rate.
[0053] The first correction factor, the second correction factor, the third correction factor, and the fourth correction factor are represented by Y, and are calculated using the following formula (2): Y = 1 / (1+α)(2) Y is the characterization parameter of the first, second, third, and fourth correction coefficients, and α is the relative error between the measured target temperature parameter and the target flow velocity parameter.
[0054] Step a4: Calculate the fifth correction coefficient corresponding to the first temperature and the target flow rate parameter based on the first correction coefficient, the second correction coefficient, the first flow rate, the second flow rate, and the target flow rate parameter.
[0055] In step a4 above, based on the first correction coefficient, the second correction coefficient, the first flow velocity, the second flow velocity, and the target flow velocity parameter, the fifth correction coefficient corresponding to the first temperature and the target flow velocity parameter is calculated using the following formula (3): Y1´ = (Y21 - Y11) / (V2 - V1)×(V´ - V1)+Y11 (3) Wherein, Y11 is the first correction coefficient, Y21 is the second correction coefficient, V2 is the second flow velocity, V1 is the first flow velocity, V´ is the target flow velocity, and Y1´ is the fifth correction coefficient corresponding to the first temperature and target flow velocity parameters.
[0056] Step a5: Calculate the sixth correction factor corresponding to the second temperature and the target flow rate parameter based on the third correction factor, the fourth correction factor, the first flow rate, the second flow rate, and the target flow rate parameter.
[0057] In step a5 above, based on the first correction coefficient, the second correction coefficient, the first flow velocity, the second flow velocity, and the target flow velocity parameter, the fifth correction coefficient corresponding to the first temperature and the target flow velocity parameter is calculated using the following formula (4): Y2´ = (Y22 - Y12) / (V2 - V1)×(V´ - V1)+Y12 (4) Where Y12 is the third correction coefficient, Y22 is the fourth correction coefficient, V1 is the first flow velocity, V2 is the second flow velocity, V´ is the target flow velocity parameter, and Y2´ is the sixth correction coefficient corresponding to the second temperature and the target flow velocity parameter.
[0058] Step a6: Calculate the seventh correction factor corresponding to the target temperature parameter and the target flow rate parameter based on the fifth correction factor, the sixth correction factor, the first temperature, the second temperature, and the target temperature parameter.
[0059] In step a6 above, based on the fifth correction coefficient, the sixth correction coefficient, the first temperature, the second temperature, and the target temperature parameter, the seventh correction coefficient corresponding to the target temperature parameter and the target flow velocity parameter is calculated using the following formula (5): Y´´= (Y2´ - Y1´) / (T2 – T1)×(T´ - T1)+Y1´ (5) Where Y1´ is the fifth correction coefficient, Y2´ is the sixth correction coefficient, T1 is the first temperature, T2 is the second temperature, T´ is the target temperature parameter, and Y´´ is the seventh correction coefficient corresponding to the target temperature parameter and the target flow rate parameter. Step a7: Mark the first, second, third, fourth, fifth, sixth, and seventh correction coefficients at their corresponding coordinate points in the two-dimensional coordinate system to obtain the two-dimensional linear interpolation model.
[0060] exist Figure 2 In the two-dimensional coordinate system, the first correction coefficient Y11, the second correction coefficient Y21, the third correction coefficient Y12, the fourth correction coefficient Y22, the fifth correction coefficient Y1´, the sixth correction coefficient Y2´, and the seventh correction coefficient Y´´ are labeled accordingly.
[0061] In some optional implementations, step S103 above, when the target measurement parameter is a target temperature parameter, involves determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model, including: Step b1: Determine the target segmented measurement interval to which the target temperature parameter belongs.
[0062] Step b2: Determine whether there is an error between the target temperature parameter and the preset temperature parameter.
[0063] The preset temperature parameter is the standard reference temperature parameter, and the target temperature parameter is compared with the reference temperature parameter.
[0064] Step b3, if yes, use a two-dimensional linear interpolation model to correct the target temperature parameters; Step b4: If not, confirm that the target temperature parameter is normal.
[0065] This embodiment uses a two-dimensional linear interpolation model to correct the target temperature parameter that has errors, based on the above implementation method.
[0066] In some optional implementations, step S103 above, when the target measurement parameter is a target flow velocity parameter, involves determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model, including: Step c1: Determine the target segmented metering interval to which the target flow velocity parameter belongs.
[0067] Step c2: Determine whether there is an error between the target flow velocity parameter and the preset flow velocity parameter.
[0068] The preset flow velocity parameters are the standard reference flow velocity parameters, and the target flow velocity parameters are compared with the reference flow velocity parameters.
[0069] Step c3, if yes, use a two-dimensional linear interpolation model to correct the target flow velocity parameters.
[0070] Step c4: If not, confirm that the target flow rate parameter is normal.
[0071] This embodiment uses a two-dimensional linear interpolation model to correct the target flow velocity parameters that have errors, based on the above implementation method.
[0072] This embodiment is equivalent to piecewise two-dimensional linear interpolation. It divides the traditional two-dimensional linear interpolation into multiple segmented measurement intervals with flow velocity as the anchor point. Each segmented measurement interval can use the two-dimensional linear interpolation model to correct the target measurement parameters. Dense segmented measurement intervals are divided in intervals with large changing trends, while sparse segmented measurement intervals are divided in intervals with gentle changing trends. This improves the accuracy of flow velocity correction while occupying less data memory space.
[0073] For example, in the target fluid measurement of a DN50 ultrasonic water meter, the flow rate is corrected for velocity and temperature. The two-dimensional linear interpolation model is T50, Q3 is 63 m³ / h, the range ratio is R250, and the segmented metering interval corresponding to the flow rate is 0.5Q1~Q4.
[0074] 1. Divide the entire flow rate into three segments: 0.5Q1~0.01Q3, 0.01Q3~0.06Q3, and 0.06Q3~Q4.
[0075] 2. For the interval 0.5Q1~0.01Q3, establish a temperature point every 2.5℃ from 5℃ to 30℃, and establish a temperature point every 5℃ from 30℃ to 50℃. The temperature points are divided as shown in Table 2 below.
[0076] Table 2. Temperature Segment Metering Interval Division Table Corresponding to the First Flow Rate Interval
[0077] For the interval 0.01Q3~0.06Q3, a temperature point is established every 5℃ in the range of 5℃~30℃, and a temperature point is established every 10℃ in the range of 30℃~50℃. The temperature points are divided as shown in Table 3 below.
[0078] Table 3. Temperature Segment Metering Interval Division Table Corresponding to the Second Flow Range
[0079] For the interval 0.06Q3~Q4, a temperature point is established every 10℃ from 5℃ to 30℃, and a temperature point is established every 20℃ from 30℃ to 50℃. The established temperature points are shown in Table 4 below.
[0080] Table 4. Temperature Segment Metering Interval Division Table Corresponding to the Second Flow Range
[0081] For the temperature ranges in the above three tables, determine the temperature range to which the measured target temperature parameter belongs, and use a two-dimensional linear interpolation model for T50 to correct the target temperature parameter with errors.
[0082] In other specific implementations, when the target measurement parameters in this embodiment include target pressure parameters and target flow velocity parameters, the two-dimensional linear interpolation model can also be constructed through the following steps: Step d1: Construct a two-dimensional coordinate system with the flow velocity parameter as the abscissa and the pressure parameter as the ordinate, and map the measurement parameters in the target segmented measurement interval onto the two-dimensional coordinate system; Step d2: Select the target pressure parameter, target flow velocity parameter, first pressure, second pressure, first flow velocity, and second flow velocity from the two-dimensional coordinate system; Step d3: Obtain the eighth correction coefficient corresponding to the first pressure and the first flow velocity, the ninth correction coefficient corresponding to the first pressure and the second flow velocity, the tenth correction coefficient corresponding to the second pressure and the first flow velocity, and the eleventh correction coefficient corresponding to the second pressure and the second flow velocity. Step d4: Calculate the twelfth correction factor corresponding to the first pressure and the target flow velocity parameters based on the eighth correction factor, the ninth correction factor, the first flow velocity, the second flow velocity, and the target flow velocity parameter. Step d5: Calculate the thirteenth correction factor corresponding to the second pressure and the target flow velocity parameters based on the tenth correction factor, the eleventh correction factor, the first flow velocity, the second flow velocity, and the target flow velocity parameter. Step d6: Calculate the fourteenth correction factor corresponding to the target pressure parameter and the target flow velocity parameter based on the twelfth correction factor, the eleventh correction factor, the first pressure, the second pressure, and the target pressure parameter; Step d7: Mark the eighth, ninth, tenth, eleventh, twelfth, thirteenth and fourteenth correction coefficients at their corresponding coordinate points in the two-dimensional coordinate system to obtain the two-dimensional linear interpolation model.
[0083] For details, please refer to steps a1-a7 above, which will not be repeated here.
[0084] In other specific implementations, based on the eighth correction factor, the ninth correction factor, the first flow velocity, the second flow velocity, and the target flow velocity parameter, the twelfth correction factor corresponding to the first pressure and the target flow velocity parameter is calculated using the following formula: Y111´ = (Y21´ - Y11´) / (V2 – V1)×(V´ - V1)+Y11´ Where Y11´ is the eighth correction coefficient, Y21´ is the ninth correction coefficient, V2 is the second flow velocity, V1 is the first flow velocity, V´ is the target flow velocity, and Y111´ is the twelfth correction coefficient corresponding to the first pressure and target flow velocity parameters.
[0085] In other specific implementations, based on the tenth correction factor, the eleventh correction factor, the first pressure, the second pressure, and the target flow velocity parameter, the thirteenth correction factor corresponding to the second pressure and the target flow velocity parameter is calculated using the following formula: Y222´ = (Y22´- Y12´) / (V2 – V1)×(V´ - V1)+Y12´ Where Y12´ is the tenth correction coefficient, Y22´ is the eleventh correction coefficient, V1 is the first flow velocity, V2 is the second flow velocity, V´ is the target flow velocity parameter, and Y222´ is the thirteenth correction coefficient corresponding to the second pressure and the target flow velocity parameter.
[0086] In other specific embodiments, the fourteenth correction factor corresponding to the target pressure parameter and the target flow velocity parameter is calculated based on the twelfth correction factor, the eleventh correction factor, the first pressure, the second pressure, and the target pressure parameter, using the following formula: Y´´´= (Y222´ - Y111´) / (P2 – P1)×(P´ - T1)+Y111´ Where Y111´ is the twelfth correction coefficient, Y222´ is the thirteenth correction coefficient, P1 is the first pressure, P2 is the second pressure, P´ is the target pressure parameter, and Y´´´ is the fourteenth correction coefficient corresponding to the target pressure parameter and the target flow velocity parameter.
[0087] In some other specific embodiments, step S103 above, when the target measurement parameter is a target pressure parameter, involves determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model, including: Step e1: Determine the target segmented metering interval to which the target pressure parameter belongs.
[0088] Step e2: Determine whether there is an error between the target pressure parameter and the preset pressure parameter.
[0089] Step e3: If so, use a two-dimensional linear interpolation model to correct the target pressure parameters.
[0090] Step e4: If not, confirm that the target pressure parameter is normal.
[0091] For details, please refer to steps b1-b4 above, which will not be repeated here.
[0092] This embodiment, through the above implementation method, accurately calculates multiple correction coefficients in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval, thereby constructing a two-dimensional linear interpolation model, which facilitates subsequent rapid and accurate correction of the target pressure parameters and target flow velocity parameters in the target segmented measurement interval.
[0093] This embodiment also provides a segmented metering parameter correction device for an ultrasonic flow meter. This device is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0094] This embodiment provides a segmented metering parameter correction device for an ultrasonic flowmeter, such as... Figure 5 As shown, it includes: The parameter acquisition module 501 is used to acquire the target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter. The target metering parameters include the target temperature parameter and the target flow velocity parameter. The interval division module 502 is used to determine multiple segmented measurement intervals for the target measurement parameter based on the target Reynolds coefficient. The parameter measurement module is further used for: When the target fluid is determined to be in a laminar state or a transitional state between laminar and turbulent flow based on the target Reynolds coefficient, the target measurement parameter is divided into a first number of segmented measurement intervals, and the first number is used as the threshold number of dense intervals. When the target fluid is determined to be in a turbulent state based on the target Reynolds coefficient, the target measurement parameter is divided into a second number of segmented measurement intervals. The second number is less than the first number, and the second number is used as the threshold number of the sparse interval. The parameter correction module 503 is used to determine the target segmented measurement interval to which the target measurement parameter belongs, and to correct the target measurement parameter using a two-dimensional linear interpolation model. The two-dimensional linear interpolation model is constructed in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval.
[0095] In some optional implementations, the two-dimensional linear interpolation model in parameter correction module 503 is constructed through the following sub-modules: The coordinate mapping submodule is used to construct a two-dimensional coordinate system with the flow velocity parameter as the abscissa and the temperature parameter as the ordinate, and to map the measurement parameters in the target segmented measurement interval into the two-dimensional coordinate system; The parameter selection submodule is used to select the target temperature parameter, target flow rate parameter, first temperature, second temperature, first flow rate, and second flow rate from a two-dimensional coordinate system. The coefficient acquisition submodule is used to acquire the first correction coefficient corresponding to the first temperature and the first flow rate, the second correction coefficient corresponding to the first temperature and the second flow rate, the third correction coefficient corresponding to the second temperature and the first flow rate, and the fourth correction coefficient corresponding to the second temperature and the second flow rate. The first calculation submodule is used to calculate the fifth correction coefficient corresponding to the first temperature and the target flow rate parameter based on the first correction coefficient, the second correction coefficient, the first flow rate, the second flow rate, and the target flow rate parameter. The second calculation submodule is used to calculate the sixth correction coefficient corresponding to the second temperature and the target flow rate parameter based on the third correction coefficient, the fourth correction coefficient, the first flow rate, the second flow rate and the target flow rate parameter. The third calculation submodule is used to calculate the seventh correction coefficient corresponding to the target temperature parameter and the target flow rate parameter based on the fifth correction coefficient, the sixth correction coefficient, the first temperature, the second temperature and the target temperature parameter; The parameter annotation submodule is used to annotate the first, second, third, fourth, fifth, sixth, and seventh correction coefficients at their corresponding coordinate points in a two-dimensional coordinate system, thereby obtaining a two-dimensional linear interpolation model.
[0096] In some optional implementations, the first calculation submodule calculates a fifth correction factor corresponding to the first temperature and the target flow rate parameter based on the first correction factor, the second correction factor, the first flow rate, the second flow rate, and the target flow rate parameter, using the following formula: Y1´ = (Y21 - Y11) / (V2 - V1)×(V´ - V1)+Y11 Wherein, Y11 is the first correction coefficient, Y21 is the second correction coefficient, V2 is the second flow velocity, V1 is the first flow velocity, V´ is the target flow velocity, and Y1´ is the fifth correction coefficient corresponding to the first temperature and target flow velocity parameters.
[0097] In some optional implementations, the second calculation submodule calculates a sixth correction factor corresponding to the second temperature and the target flow rate parameter based on the third correction factor, the fourth correction factor, the first temperature, the second temperature, and the target flow rate parameter, using the following formula: Y2´ = (Y22 - Y12) / (V2 - V1)×(V´ - V1)+Y12 Where Y12 is the third correction coefficient, Y22 is the fourth correction coefficient, V1 is the first flow velocity, V2 is the second flow velocity, V´ is the target flow velocity parameter, and Y2´ is the sixth correction coefficient corresponding to the second temperature and the target flow velocity parameter.
[0098] In some optional implementations, the third calculation submodule calculates a seventh correction factor corresponding to the target temperature parameter and the target flow rate parameter based on the fifth correction factor, the sixth correction factor, the first temperature, the second temperature, and the target temperature parameter, using the following formula: Y´´= (Y2´ - Y1´) / (T2 – T1)×(T´ - T1)+Y1´ Where Y1´ is the fifth correction coefficient, Y2´ is the sixth correction coefficient, T1 is the first temperature, T2 is the second temperature, T´ is the target temperature parameter, and Y´´ is the seventh correction coefficient corresponding to the target temperature parameter and the target flow rate parameter.
[0099] In some optional implementations, the interval division module 502 is further configured to: Determine the target segmented metering interval to which the target temperature parameter belongs; Determine whether there is an error between the target temperature parameter and the preset temperature parameter; If so, the target temperature parameters are corrected using a two-dimensional linear interpolation model; If not, the target temperature parameter is confirmed to be normal.
[0100] In some optional implementations, the interval division module 502 is further configured to: Determine the target segment metering interval to which the target flow velocity parameter belongs; Determine whether there is an error between the target flow velocity parameters and the preset flow velocity parameters; If so, the target flow velocity parameters are corrected using a two-dimensional linear interpolation model; If not, the target flow rate parameter is confirmed to be normal.
[0101] The segmented metering parameter correction device for ultrasonic flowmeters provided in this embodiment of the invention can execute the segmented metering parameter correction method for ultrasonic flowmeters provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.
[0102] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0103] The following is a detailed reference. Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0104] The following is a detailed reference. Figure 6This diagram illustrates a suitable structural design for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of the electronic device. The processor 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0105] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0106] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the segmented metering parameter correction method for the ultrasonic flowmeter according to embodiments of the present invention.
[0107] Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0108] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the segmented metering parameter correction method for the ultrasonic flowmeter shown in the above embodiments is implemented.
[0109] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0110] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for correcting segmented metering parameters of an ultrasonic flowmeter, characterized in that, The method includes: The target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter are obtained, wherein the target metering parameters include target temperature parameters and target flow velocity parameters; Based on the target Reynolds coefficient, multiple segmented measurement intervals of the target measurement parameter are determined, wherein determining multiple segmented measurement intervals of the target measurement parameter based on the target Reynolds coefficient includes: When the target fluid is determined to be in a laminar state or a transitional state between laminar and turbulent flow based on the target Reynolds coefficient, the target measurement parameter is divided into a first number of segmented measurement intervals, and the first number is used as the threshold number of dense intervals. When the target fluid is determined to be in a turbulent state based on the target Reynolds coefficient, the target measurement parameter is divided into a second number of segmented measurement intervals, the second number being less than the first number, and the second number serving as the threshold number for the sparse interval. The target segmented measurement interval to which the target measurement parameter belongs is determined, and the target measurement parameter is corrected using a two-dimensional linear interpolation model. The two-dimensional linear interpolation model is constructed in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval.
2. The method according to claim 1, characterized in that, The two-dimensional linear interpolation model is constructed through the following steps: A two-dimensional coordinate system is constructed with the flow velocity parameter as the abscissa and the temperature parameter as the ordinate, and the measurement parameters in the target segmented measurement interval are mapped to the two-dimensional coordinate system; Select the target temperature parameter, the target flow rate parameter, the first temperature, the second temperature, the first flow rate, and the second flow rate from the two-dimensional coordinate system; Obtain a first correction coefficient corresponding to the first temperature and the first flow rate, a second correction coefficient corresponding to the first temperature and the second flow rate, a third correction coefficient corresponding to the second temperature and the first flow rate, and a fourth correction coefficient corresponding to the second temperature and the second flow rate. Based on the first correction coefficient, the second correction coefficient, the first flow velocity, the second flow velocity, and the target flow velocity parameter, calculate the fifth correction coefficient corresponding to the first temperature and the target flow velocity parameter; Based on the third correction factor, the fourth correction factor, the first flow velocity, the second flow velocity, and the target flow velocity parameter, calculate the sixth correction factor corresponding to the second temperature and the target flow velocity parameter; Based on the fifth correction factor, the sixth correction factor, the first temperature, the second temperature, and the target temperature parameter, calculate the seventh correction factor corresponding to the target temperature parameter and the target flow rate parameter; The first correction coefficient, the second correction coefficient, the third correction coefficient, the fourth correction coefficient, the fifth correction coefficient, the sixth correction coefficient, and the seventh correction coefficient are labeled at the corresponding coordinate points in the two-dimensional coordinate system to obtain the two-dimensional linear interpolation model.
3. The method according to claim 2, characterized in that, Based on the first correction coefficient, the second correction coefficient, the first flow velocity, the second flow velocity, and the target flow velocity parameter, calculate the fifth correction coefficient corresponding to the first temperature and the target flow velocity parameter using the following formula: Y1´ = (Y21 - Y11) / (V2 - V1)×(V´ - V1)+Y11 Wherein, Y11 is the first correction coefficient, Y21 is the second correction coefficient, V2 is the second flow velocity, V1 is the first flow velocity, V´ is the target flow velocity, and Y1´ is the fifth correction coefficient corresponding to the first temperature and the target flow velocity parameters.
4. The method according to claim 2, characterized in that, Based on the third correction coefficient, the fourth correction coefficient, the first temperature, the second temperature, and the target flow rate parameter, the sixth correction coefficient corresponding to the second temperature and the target flow rate parameter is calculated using the following formula: Y2´ = (Y22 - Y12) / (V2 - V1)×(V´ - V1)+Y12 Wherein, Y12 is the third correction coefficient, Y22 is the fourth correction coefficient, V1 is the first flow velocity, V2 is the second flow velocity, V´ is the target flow velocity parameter, and Y2´ is the sixth correction coefficient corresponding to the second temperature and the target flow velocity parameter.
5. The method according to claim 2, characterized in that, Based on the fifth correction factor, the sixth correction factor, the first temperature, the second temperature, and the target temperature parameter, the seventh correction factor corresponding to the target temperature parameter and the target flow velocity parameter is calculated using the following formula: Y´´= (Y2´ - Y1´) / (T2 – T1)×(T´ - T1)+Y1´ Wherein, Y1´ is the fifth correction coefficient, Y2´ is the sixth correction coefficient, T1 is the first temperature, T2 is the second temperature, T´ is the target temperature parameter, and Y´´ is the seventh correction coefficient corresponding to the target temperature parameter and the target flow rate parameter.
6. The method according to claim 1, characterized in that, When the target measurement parameter is the target temperature parameter, determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model includes: Determine the target segmented metering interval to which the target temperature parameter belongs; Determine whether the target temperature parameter has an error compared to the preset temperature parameter; If so, the target temperature parameter is corrected using the two-dimensional linear interpolation model. If not, the target temperature parameter is confirmed to be normal.
7. The method according to claim 1, characterized in that, When the target measurement parameter is the target flow velocity parameter, determining the target segmented measurement interval to which the target measurement parameter belongs, and correcting the target measurement parameter using a two-dimensional linear interpolation model includes: Determine the target segmented metering interval to which the target flow velocity parameter belongs; Determine whether the target flow velocity parameter has an error compared to the preset flow velocity parameter; If so, the target flow velocity parameters are corrected using the two-dimensional linear interpolation model. If not, the target flow rate parameter is confirmed to be normal.
8. A device for correcting segmented metering parameters of an ultrasonic flowmeter, characterized in that, The device includes: The parameter acquisition module is used to acquire the target Reynolds coefficient and target metering parameters of the target fluid detected by the ultrasonic flow meter, wherein the target metering parameters include target temperature parameters and target flow velocity parameters. The interval division module is used to determine multiple segmented measurement intervals of the target measurement parameter based on the target Reynolds coefficient, wherein the parameter measurement module is further used for: When the target fluid is determined to be in a laminar state or a transitional state between laminar and turbulent flow based on the target Reynolds coefficient, the target measurement parameter is divided into a first number of segmented measurement intervals, and the first number is used as the threshold number of dense intervals. When the target fluid is determined to be in a turbulent state based on the target Reynolds coefficient, the target measurement parameter is divided into a second number of segmented measurement intervals, the second number being less than the first number, and the second number serving as the threshold number for the sparse interval. The parameter correction module is used to determine the target segmented measurement interval to which the target measurement parameter belongs, and to correct the target measurement parameter using a two-dimensional linear interpolation model. The two-dimensional linear interpolation model is constructed in a two-dimensional coordinate system using the measurement parameters in the target segmented measurement interval.
9. An electronic device, characterized in that, include: The device includes a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the method for correcting the segmented metering parameters of the ultrasonic flowmeter according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform a method for correcting the segmented metering parameters of the ultrasonic flowmeter according to any one of claims 1 to 7.
Citation Information
Patent Citations
Flowmeter metering temperature compensation method and ultrasonic flowmeter
CN110906993A
Ultrasonic water meter flow error correction method based on pipeline inlet Reynolds number
CN114877975A
Software correction method and apparatus for a variable orifice flow meter
US20050284236A1