Method, device, medium and equipment for obtaining flow meter density conversion coefficient

By constructing the finite element model and functional relationship of the flowmeter and combining the density conversion coefficient calculation formula, the density conversion coefficient of the flowmeter at different temperatures is quickly determined, which solves the problem of high acquisition cost in the existing technology and achieves efficient and accurate acquisition of the density conversion coefficient.

CN120196839BActive Publication Date: 2025-08-22BEIJING SINCERITY AUTOMATIC EQUIPMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510685550.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-08-22
Estimated Expiration
2045-05-27

AI Technical Summary

Technical Problem

The existing technology has high cost to obtain the density conversion coefficient of flowmeters, and it requires frequent measurement of fluid density with expensive experimental equipment, resulting in high costs.

Method used

By obtaining the actual geometric dimensions and material properties of the flowmeter, a finite element model is constructed, combining the functional relationship between elastic modulus and temperature, the density conversion coefficient calculation formula is used to quickly determine the density conversion coefficient, and error tests are performed to reduce the dependence on expensive equipment.

Benefits of technology

It realizes the rapid and accurate determination of density conversion coefficients at different temperatures, reduces acquisition costs, and improves measurement accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196839B_ABST
    Figure CN120196839B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, medium, and equipment for obtaining a density conversion coefficient of a flowmeter, and relates to the field of flow measurement technology. The method includes: obtaining the actual geometric dimensions, actual material properties, and reference elastic modulus of a target measuring tube at room temperature of a target flowmeter, where the target measuring tube is the measuring tube in the target flowmeter; determining a target finite element model corresponding to the target flowmeter based on the actual geometric dimensions and actual material properties; constructing a first functional relationship corresponding to the target measuring tube based on the reference elastic modulus, where the first functional relationship is a functional relationship between the elastic modulus of the target measuring tube and temperature; and determining a target density conversion coefficient corresponding to the target flowmeter at different target temperatures based on the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula. The present application has the effect of reducing the cost of obtaining the density conversion coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of flow measurement technology, and in particular to a method, device, medium and equipment for obtaining a density conversion coefficient of a flow meter. Background Art

[0002] A flowmeter is an instrument that indicates the measured flow rate and / or the total volume of a fluid within a selected time interval. Simply put, it is an instrument used to measure the flow rate of fluids in a pipeline. A flowmeter's density conversion factor converts the actual measured value to the corresponding value under standard or required density conditions, such as when measuring the flow of media with different densities. Flow measurement is crucial in many fields, including industrial production, energy transmission, and scientific research. As a key device for measuring fluid flow, the accuracy of a flowmeter is affected by a variety of factors, among which fluid density is a crucial variable. The density of the same fluid can also change under different operating conditions (such as temperature fluctuations). In actual production, to ensure that flowmeter readings accurately reflect actual flow, it is often necessary to use the density conversion factor to correct the measured value to the exact flow rate corresponding to standard or actual operating conditions. Therefore, obtaining the density conversion factor is crucial for flowmeter measurement.

[0003] At present, the method commonly used to obtain the density conversion coefficient is: using complex and expensive experimental equipment to measure the fluid density under different working conditions, and then combining the measured fluid density with the theoretical formula to calculate the corresponding density conversion coefficient. When actual measurement is carried out, frequent switching between different working conditions is required. This method requires multiple measurements of the fluid density using experimental equipment, resulting in a high cost for obtaining the density conversion coefficient. Summary of the Invention

[0004] In order to reduce the cost of obtaining the density conversion coefficient, the present application provides a method, device, medium and equipment for obtaining the density conversion coefficient of a flow meter.

[0005] In a first aspect of the present application, a method for obtaining a flow meter density conversion coefficient is provided, specifically comprising:

[0006] Acquiring actual geometric dimensions, actual material properties, and a reference elastic modulus of a target measuring tube at room temperature of a target flowmeter, wherein the target measuring tube is a measuring tube in the target flowmeter;

[0007] Determining a target finite element model corresponding to the target flowmeter based on the actual geometric dimensions and actual material properties;

[0008] constructing a first functional relationship corresponding to the target measuring tube according to the reference elastic modulus, where the first functional relationship is a functional relationship between the elastic modulus and temperature of the target measuring tube;

[0009] Determine, based on the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula, a target density conversion coefficient corresponding to the target flow meter at different target temperatures for the target fluid, where the target temperature is a temperature within an operating temperature range of the target flow meter;

[0010] Based on the target density conversion coefficient of the target fluid at a single target temperature, an error test is performed on the target flow meter to obtain a corresponding relative error value, and when the relative error value is lower than a preset error value threshold, the corresponding target density conversion coefficient is determined as the final density conversion coefficient that passes the test.

[0011] By adopting the above technical solution, after obtaining the actual geometric dimensions, actual material properties, and reference elastic modulus, a target finite element model is constructed based on this, facilitating subsequent simulation of the performance and behavior of the target flowmeter under different operating conditions. Simultaneously, a first functional relationship corresponding to the target measuring tube is determined, facilitating the subsequent rapid and accurate determination of the elastic modulus of the target measuring tube at different target temperatures. Furthermore, by combining the target finite element model, the first functional relationship, and the density conversion coefficient calculation formula, the density of the target fluid at different target temperatures is relatively quickly determined, and the corresponding target density conversion coefficient is determined accordingly. Finally, an error test is performed on the target flowmeter using a single target density conversion coefficient. If the relative error value is lower than a preset error value threshold, indicating that the corresponding target density conversion coefficient meets the test requirements, the final density conversion coefficient is then determined and can be directly used in subsequent flow measurement work without the need for expensive experimental equipment, thereby reducing the cost of obtaining the density conversion coefficient.

[0012] Optionally, determining the target density conversion coefficient corresponding to the target flowmeter at different target temperatures of the target fluid according to the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula specifically includes:

[0013] Obtaining a standard density value of a target fluid at a reference temperature from a preset database, and determining a target density value of the target fluid at a single target temperature based on the standard density value, wherein the database includes standard density values ​​of multiple industrial fluids at different temperatures;

[0014] determining a target elastic modulus of the target measuring tube at a single target temperature according to the first functional relationship;

[0015] Inputting the target elastic modulus into the target finite element model to obtain a corresponding target empty pipe resonance frequency and a target full pipe resonance frequency;

[0016] Substitute the target empty tube resonant frequency, the target full tube resonant frequency, and the target density of the target fluid of the target measuring tube at the same target temperature into a preset density conversion coefficient calculation formula to obtain the corresponding target density conversion coefficient. The density conversion coefficient calculation formula is:

[0017] ;

[0018] Where, represents the target density conversion coefficient, represents the target density value, Indicates the target air pipe resonance frequency, Indicates the target full-tube resonant frequency.

[0019] By employing the above technical solution, after determining the target density value of the target fluid at a single target temperature, the target density value is substituted into the first functional relationship to determine the target elastic modulus of the target measuring tube at the corresponding target temperature. This target elastic modulus is then input into the target finite element model for simulation analysis to determine the target empty pipe resonant frequency and target full pipe resonant frequency corresponding to the target measuring tube. Finally, the target empty pipe resonant frequency, target full pipe resonant frequency, and target density value at the same target temperature are substituted into the density conversion coefficient calculation formula to quickly determine the density conversion coefficient of the target flowmeter at different temperatures.

[0020] Optionally, determining the target density value of the target fluid at a single target temperature based on the standard density value includes:

[0021] Substitute the standard density value into the preset temperature change calculation formula to obtain the target density value of the target fluid at a single target temperature. The temperature change calculation formula is:

[0022] ;

[0023] Where, Indicates the target density value at a single target temperature. Indicates the standard density value, represents the expansion coefficient of the target fluid, represents the target temperature of the target fluid, Indicates the reference temperature of the target fluid.

[0024] By adopting the above technical solution, the standard density value of the target fluid at the reference temperature is substituted into the temperature change calculation formula, and the expansion coefficient of the target fluid itself is comprehensively considered, so as to more accurately determine the target density value of the target fluid after changing from the reference temperature to the target temperature.

[0025] Optionally, the method further includes:

[0026] Obtaining historical temperature intervals in which a target error occurs in a flow meter of the same type as the target flow meter, counting the number of first occurrences of each of the historical temperature intervals, and selecting a first number of historical temperature intervals from each of the historical temperature intervals in descending order of the number of first occurrences as key temperature intervals, where the target error is a measurement error that exceeds a maximum allowable error;

[0027] Obtaining historical fluids that have experienced target errors in a single key temperature interval, counting the second occurrence count of each of the historical fluids, and selecting a second number of historical fluids from each of the historical fluids in descending order of the second occurrence counts as key fluids for the corresponding key temperature interval;

[0028] Determining a first weight for each of the key temperature intervals, and determining a second weight for each of the key fluids corresponding to each of the key temperature intervals, wherein the first weight is a ratio of a first occurrence count for each key temperature interval to a sum of first occurrence counts for all key temperature intervals, and the second weight is a ratio of a second occurrence count for a single key fluid corresponding to a key temperature interval to a sum of second occurrence counts for all corresponding key fluids;

[0029] An error value threshold of an error test of the target flow meter for the target fluid at a single target temperature is determined according to the first weight and the corresponding second weights.

[0030] By employing this technical solution, the greater the number of first occurrences, the more likely the target flowmeter of this type will experience measurement errors within the corresponding historical temperature range, thereby determining the key temperature range. The greater the number of second occurrences, the more likely the corresponding historical fluid will experience large errors when measuring, thereby determining the key fluid. Finally, combining the first weight and the corresponding second weight, the probability of error incurred by the target flowmeter during error testing of the target fluid at different target temperatures is analyzed, thereby rationally determining the corresponding error threshold.

[0031] Optionally, determining, based on the first weight and the corresponding second weights, an error value threshold of an error test of the target flow meter for the target fluid at a single target temperature specifically includes:

[0032] Calculating a first product of a first weight of each of the key temperature intervals and a second weight of each corresponding key fluid;

[0033] Summing the first products corresponding to the same key fluid to obtain the corresponding sum of the first products, and determining the correction coefficient of the corresponding key fluid based on the sum of the first products, wherein the larger the sum of the first products, the smaller the corresponding correction coefficient;

[0034] If the target temperature is within the key temperature interval, the corresponding key temperature interval is determined as an important temperature interval;

[0035] If the key fluid corresponding to the important temperature interval is the target fluid, a second product of the first weight of the important temperature interval and the second weight of the corresponding target fluid is calculated, and an initial error value threshold of the target fluid at the corresponding target temperature is determined based on the second product. The larger the second product, the smaller the corresponding initial error value threshold.

[0036] The initial error value threshold is multiplied by a correction coefficient corresponding to the target fluid to obtain a corresponding error value threshold.

[0037] By adopting the above technical solution, the larger the sum of the first products, the more likely the target flow meter will have a large measurement error when measuring the corresponding key fluid, and the smaller the corresponding correction coefficient. Calculate the second product of the first weight of this important temperature interval and the second weight of the corresponding target fluid. The larger the second product, the greater the possibility of a large error when measuring this target fluid at the target temperature within the important temperature interval. When the target flow meter is subsequently tested for error using the corresponding target density conversion coefficient, the error value threshold needs to be lower, thereby making the measurement accuracy of the target flow meter higher. Finally, multiply this initial error value threshold by the correction coefficient to obtain the error value threshold of the target fluid at the corresponding target temperature, thereby achieving subsequent accurate testing of the target density conversion coefficient.

[0038] Optionally, the method further includes:

[0039] Fitting each final density conversion coefficient of the target flow meter and the corresponding target temperature to obtain a corresponding second functional relationship, where the second functional relationship is a functional relationship between the final density conversion coefficient of the target flow meter and the corresponding target temperature for the target fluid;

[0040] When the actual target fluid is measured by the target flow meter, the actual density conversion coefficient corresponding to the target flow meter is determined according to the second functional relationship and the actual temperature corresponding to the actual target fluid.

[0041] By adopting the above technical solution, when the actual target fluid is subsequently measured through the target flow meter, the actual density conversion coefficient corresponding to the target flow meter can be quickly and accurately determined based on the second functional relationship corresponding to the actual target fluid and the corresponding actual temperature, thereby achieving more accurate flow measurement.

[0042] Optionally, the method further includes:

[0043] Calculating a third product of the first weight of each key temperature interval and the second weight of each corresponding key fluid, and summing each of the third products to obtain a sum of the second products of the corresponding key temperature intervals;

[0044] If the sum of the second products is less than a preset product sum threshold, the corresponding key temperature interval is determined as a reference temperature interval; if the target temperature is within the reference temperature interval, the corresponding target temperature is determined as a reference temperature;

[0045] Fitting each of the reference temperatures and the corresponding final density conversion coefficients to obtain a corresponding third functional relationship;

[0046] A curve fitting is performed between the second functional relationship and the third functional relationship corresponding to the target fluid to obtain a fitting rate. If the fitting rate exceeds a preset fitting rate threshold, it is determined that the second functional relationship is correctly verified.

[0047] By adopting the above technical solution, the larger the sum of the second products, the higher the probability that the target flowmeter will make a large error when measuring flow in the corresponding key temperature range. If the sum of the second products is less than the product sum threshold, it indicates that the target flowmeter is less likely to make a large error when measuring flow in the corresponding key temperature range, thereby determining that the final density conversion coefficient of the target flowmeter is highly accurate when the target fluid is at the reference temperature. If the fit rate exceeds the preset fit rate threshold, it indicates that the curve corresponding to the second functional relationship and the curve corresponding to the third functional relationship are highly similar, and the second functional relationship is verified to be correct.

[0048] In a second aspect of the present application, a device for obtaining a flow meter density conversion coefficient is provided, specifically comprising:

[0049] an information acquisition module, configured to acquire actual geometric dimensions and actual material properties of a target flowmeter and a reference elastic modulus of a target measuring tube at room temperature, wherein the target measuring tube is a measuring tube in the target flowmeter;

[0050] A model building module, configured to determine a target finite element model corresponding to the target flowmeter based on the actual geometric dimensions and actual material properties;

[0051] a function determination module, configured to construct a first functional relationship corresponding to the target measuring tube according to the reference elastic modulus, wherein the first functional relationship is a functional relationship between the elastic modulus and temperature of the target measuring tube;

[0052] a coefficient determination module, configured to determine, based on the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula, a target density conversion coefficient corresponding to the target flow meter at different target temperatures for the target fluid, wherein the target temperature is a temperature within an operating temperature range of the target flow meter;

[0053] The coefficient testing module is used to perform an error test on the target flow meter based on the target density conversion coefficient of the target fluid at a single target temperature, obtain a corresponding relative error value, and when the relative error value is lower than a preset error value threshold, determine the corresponding target density conversion coefficient as the final density conversion coefficient that passes the test.

[0054] By adopting the above technical solution, the information acquisition module obtains the actual geometric dimensions, actual material properties and reference elastic modulus. Then, the model construction module determines the target finite element model corresponding to the target flowmeter based on the actual geometric dimensions and actual material properties. The function determination module then constructs the first functional relationship corresponding to the target measuring tube. Then, the coefficient determination module determines the target density conversion coefficient corresponding to the target flowmeter. Finally, the coefficient testing module performs an error test on the target flowmeter to obtain the final density conversion coefficient that passes the test.

[0055] In a third aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps as described in any one of the first aspects are performed.

[0056] In a fourth aspect of the present application, an electronic device is provided, specifically comprising:

[0057] A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the processor is used to load and execute the computer program stored in the memory so that the electronic device performs the method as described in any one of the first aspects.

[0058] In summary, the present application includes at least one of the following beneficial technical effects: after obtaining the actual geometric dimensions, actual material properties and reference elastic modulus, a target finite element model is constructed based on this, which facilitates the subsequent simulation of the performance and behavior of the target flowmeter under different working conditions; at the same time, the first functional relationship corresponding to the target measuring tube is determined, which facilitates the subsequent rapid and accurate determination of the elastic modulus of the target measuring tube at different target temperatures. Furthermore, by combining the target finite element model, the first functional relationship and the density conversion coefficient calculation formula, the density of the target fluid at different target temperatures is determined relatively quickly and the corresponding target density conversion coefficient is determined accordingly. Finally, an error test is performed on the target flowmeter using a single target density conversion coefficient. If the relative error value is lower than the preset error value threshold, it means that the corresponding target density conversion coefficient meets the test requirements. Then, the final density conversion coefficient is determined to be directly used in subsequent flow measurement work without the need for expensive experimental equipment, thereby reducing the cost of obtaining the density conversion coefficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 1 is a flow chart of a method for obtaining a density conversion coefficient of a flow meter provided in an embodiment of the present application;

[0060] Figure 2 This is a flow chart of another method for obtaining a flow meter density conversion coefficient provided in an embodiment of the present application;

[0061] Figure 3 1 is a schematic structural diagram of a device for obtaining a density conversion coefficient of a flow meter provided in an embodiment of the present application;

[0062] Figure 4 It is a structural schematic diagram of another device for obtaining a flow meter density conversion coefficient provided in an embodiment of the present application.

[0063] Explanation of the accompanying drawings: 11. Information acquisition module; 12. Model construction module; 13. Function determination module; 14. Coefficient determination module; 15. Coefficient testing module; 16. Threshold determination module; 17. Coefficient switching module; 18. Function verification module. DETAILED DESCRIPTION

[0064] In order to enable people skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0065] In the description of the embodiments of this application, words such as "exemplarily," "for example," or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0066] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0067] See also Figure 1 The present invention discloses a flow chart of a method for obtaining a flow meter density conversion coefficient. The method can be implemented by a computer program or run on a device for obtaining a flow meter density conversion coefficient based on a von Neumann architecture. The computer program can be integrated into an application or run as a standalone tool application, specifically including:

[0068] S101: Acquire actual geometric dimensions, actual material properties, and a reference elastic modulus of a target measuring tube at room temperature of a target flowmeter.

[0069] Specifically, a target flowmeter is one that is in the product testing phase and requires a density conversion coefficient. The target measuring tube is the measuring tube within the target flowmeter and is a crucial component. The measuring tube plays a crucial role in the flowmeter, serving not only as a channel for fluid flow but also directly impacting the flowmeter's performance and accuracy. Actual geometric dimensions include, but are not limited to, parameters such as the length, diameter, and acoustic channel angle of the target measuring tube. Actual material properties refer to the physical and chemical properties of the materials comprising the target flowmeter, such as density and Poisson's ratio. In the design and analysis of flowmeters, geometric dimensions and material properties form the basis for constructing finite element models. Finite element models are mathematical models constructed using finite element analysis methods and are used to simulate and analyze the performance and behavior of flowmeters under various operating conditions. Furthermore, the reference elastic modulus is the ratio of stress to strain in the target measuring tube at room temperature when subjected to an external force. It is a key indicator for evaluating the deformation and elastic properties of the target measuring tube. Room temperature is the internationally accepted standard of 20 degrees Celsius.

[0070] The embodiment of the present application discloses a method for obtaining a density conversion coefficient of a flow meter, the execution subject of which is a server, and the server is wirelessly connected to a terminal, and the terminal is a personal computer or a tablet computer. A client related to obtaining the density conversion coefficient is installed in the terminal, and the server is a background server of the client, specifically an independent physical server, or a server cluster composed of multiple physical servers. Furthermore, a feasible way to obtain actual geometric dimensions, actual material properties and reference elastic modulus is that a person sends the actual geometric dimensions, actual material properties and reference elastic modulus collected in advance to the server through the client in the terminal.

[0071] S102: Determine a target finite element model corresponding to the target flowmeter based on actual geometric dimensions and actual material properties.

[0072] Specifically, after obtaining the actual geometric dimensions and actual material properties, a three-dimensional geometric model of the target flow meter is created based on the actual geometric dimensions using a preset three-dimensional modeling tool. The three-dimensional modeling tool can be CAD software or SolidWorks software. The three-dimensional geometric model and actual material properties are then imported into a preset finite element analysis software for meshing. After the meshing process is completed, the imposed boundary conditions are manually set according to the actual working conditions, and the solver parameters, such as the solution type or convergence criterion, are configured. Finally, the finite element analysis software is started for simulation calculation to obtain the target finite element model corresponding to the target flow meter. This is prior art and will not be described in detail here. In an embodiment of the present application, the stress distribution and resonant frequency of the overall structure of the target flow meter can be accurately analyzed by the target finite element model. It should be noted that the finite element analysis software can be ANSYS software, and in other embodiments, it can also be COMSOL Multiphysics software.

[0073] S103: Constructing a first functional relationship corresponding to the target measurement tube according to the reference elastic modulus.

[0074] Specifically, the first functional relationship is the functional relationship between the elastic modulus and temperature of the target measuring tube. After the target finite element model is determined, the first functional relationship corresponding to the target measuring tube is determined based on the reference elastic modulus. One feasible determination method is to substitute the reference elastic modulus into a preset elastic modulus calculation formula to obtain the first functional relationship, where the elastic modulus calculation formula is: ;

[0075] Where E represents the actual elastic modulus of the target measuring tube, E0 represents the reference elastic modulus of the target measuring tube, and T represents the operating temperature of the target flowmeter. It should be noted that the elastic modulus of the target measuring tube at different temperatures can be determined using this first functional relationship.

[0076] S104: Determine a target density conversion coefficient corresponding to the target flow meter at different target temperatures for the target fluid according to the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula.

[0077] Specifically, in an embodiment of the present application, the target fluid is one of the industrial fluids involved in the actual measurement scenario of the target flow meter, and the industrial fluids involved include but are not limited to water, oil, gasoline, etc. The target temperature is the temperature within the operating temperature range of the target flow meter. The standard density value of the target fluid at the reference temperature is matched from a preset database. For example, if the target fluid is water, then its reference temperature is 4 degrees Celsius, and the standard density value is the density value of water at 4 degrees Celsius. Among them, the database includes standard density values ​​of multiple industrial fluids at different temperatures. Furthermore, based on this standard density value, the target density value of the target fluid at a single target temperature is determined. A feasible determination method is: substitute the standard density value into the preset temperature change calculation formula to obtain the target density value of the target fluid at a single target temperature. The temperature change calculation formula is: ;

[0078] Where, Indicates the target density value at a single target temperature. Indicates the standard density value, represents the expansion coefficient of the target fluid, represents the target temperature of the target fluid, Indicates the reference temperature of the target fluid. For example, if the target fluid is water, the single target temperature is a temperature between 20 degrees Celsius and 100 degrees Celsius, and the value is 26 degrees Celsius. is 4 degrees Celsius, is the volume expansion coefficient of water, which is 0.00021 / ℃. Finally, according to the temperature change calculation formula, the target density value of water at 26 degrees Celsius can be determined.

[0079] Furthermore, based on the first functional relationship, the target elastic modulus of the target measuring tube at a single target temperature is calculated. At the same time, the target elastic modulus at a single target temperature is input into the target finite element model to obtain the target empty tube resonant frequency and the target full tube resonant frequency of the target measuring tube at the corresponding target temperature. The target empty tube resonant frequency refers to the specific frequency at which the pipe itself, as a structure, resonates under external excitation when no fluid medium passes through the target measuring tube. The target full tube resonant frequency refers to the specific frequency at which the entire pipe and the internal fluid, as a coupled system, resonate under external excitation when the target measuring tube is filled with fluid medium.

[0080] Finally, the target empty tube resonant frequency, target full tube resonant frequency, and target density of the target fluid under the same target temperature are substituted into the preset density conversion coefficient calculation formula to obtain the corresponding target density conversion coefficient. The density conversion coefficient calculation formula is:

[0081] ;

[0082] Where, represents the target density conversion coefficient, represents the target density value, Indicates the target air pipe resonance frequency, Indicates the target full-tube resonant frequency.

[0083] S105: Based on the target density conversion coefficient of the target fluid at a single target temperature, an error test is performed on the target flow meter to obtain a corresponding relative error value. When the relative error value is lower than a preset error value threshold, the corresponding target density conversion coefficient is determined as the final density conversion coefficient that passes the test.

[0084] Specifically, the target flow meter is subjected to an error test using a single target density conversion coefficient, that is, the target flow meter under a single target density conversion coefficient is used to measure the flow of the target fluid at the corresponding target temperature to obtain a measured value of the flow rate, and then the total volume of the target fluid flowing within a preset time period is counted, and the total volume is divided by the preset time period to obtain the true value of the flow rate, and then the ratio of the absolute value of the difference between the true value and the measured value to the true value is determined as the relative error value. Furthermore, if the relative error value is lower than the preset error value threshold, it means that the target flow meter has a high measurement accuracy when measuring with the corresponding target density conversion coefficient at the target temperature, and then the corresponding target density conversion coefficient is determined as the final density conversion coefficient that passes the test. This is a prior art and will not be elaborated on here.

[0085] See also Figure 2 The present application discloses a flowchart of another method for obtaining a flow meter density conversion coefficient. This method can be implemented using a computer program or run on a device for obtaining a flow meter density conversion coefficient based on a von Neumann architecture. The computer program can be integrated into an application or run as a standalone tool application, specifically including:

[0086] S201: Acquire actual geometric dimensions, actual material properties, and a reference elastic modulus of a target measuring tube at room temperature of a target flow meter.

[0087] S202: Determine a target finite element model corresponding to the target flowmeter based on actual geometric dimensions and actual material properties.

[0088] S203: Constructing a first functional relationship corresponding to the target measurement tube according to the reference elastic modulus.

[0089] S204: Determine a target density conversion coefficient corresponding to the target flow meter at different target temperatures for the target fluid according to the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula.

[0090] For details, please refer to steps S101-S104, which will not be described in detail here.

[0091] S205: Obtain the historical temperature intervals in which the target flow meter and the same type flow meter have target errors, count the first occurrence times of each historical temperature interval, and select the first number of historical temperature intervals from each historical temperature interval in descending order of the first occurrence times to determine as key temperature intervals.

[0092] S206: Obtain historical fluids that have measured target errors within a single key temperature interval, count the second occurrence times of each historical fluid, and select a second number of historical fluids from each historical fluid in descending order of the second occurrence times to determine them as key fluids for the corresponding key temperature interval.

[0093] Specifically, in an embodiment of the present application, historical error statistical records are retrieved, and the historical error statistical records include the temperature intervals in which different types of flow meters have target errors and the fluids measured, wherein the target error is a measurement error that exceeds the maximum allowable error, which can be understood as follows: when the flow meter measures the flow of industrial fluids, the absolute value of the difference between the measured value and the true flow value exceeds the maximum allowable error, indicating that the measured flow error is too large. Based on this historical error statistical record, the historical temperature intervals in which the same type of flow meter has target errors are obtained, and the first number of occurrences of each historical temperature interval is counted. The larger the first number of occurrences, the more likely the target flow meter type is to have measurement errors in the corresponding historical temperature interval. According to the order of the first number of occurrences from large to small, the first number of historical temperature intervals are selected from each historical temperature interval to be determined as the key temperature interval, that is, the temperature interval in which measurement errors are likely to occur. Furthermore, based on the above-mentioned historical error statistical records, historical fluids in which the target error occurred when measured by the same type of flow meter within a single key temperature range are obtained, and the second occurrence number of each historical fluid is counted. The larger the second occurrence number, the more likely the corresponding historical fluid is to have a large error during measurement. Then, in descending order of the second occurrence number, a second number of historical fluids are selected from each historical fluid to be determined as the key fluids corresponding to the key temperature range, that is, industrial fluids that are prone to large errors when measuring flow.

[0094] S207: Determine a first weight for each key temperature interval, and determine a second weight for each key fluid corresponding to each key temperature interval.

[0095] S208: Determine an error value threshold of an error test of the target flow meter for the target fluid at a single target temperature according to the first weight and the corresponding second weights.

[0096] Specifically, a first weight is determined for each key temperature interval. The first weight is the ratio of the first occurrence count of each key temperature interval to the sum of the first occurrence counts of all key temperature intervals. A second weight is then determined for each key fluid corresponding to each key temperature interval. The second weight is the ratio of the second occurrence count of the individual key fluid corresponding to the key temperature interval to the sum of the second occurrence counts of all key fluids corresponding to the key temperature interval.

[0097] Furthermore, the first product of the first weight of each key temperature interval and the second weight of each corresponding key fluid is calculated. The larger the first product is, the more likely it is that a large measurement error will occur when the target flow meter measures the corresponding key fluid and the temperature is within the key temperature interval. Then, the first products corresponding to the same key fluid are summed to obtain the corresponding sum of the first products. The larger the sum of the first products is, the more likely it is that a large measurement error will occur when the target flow meter measures the corresponding key fluid. Then, based on the sum of the first products, the correction coefficient of the corresponding key fluid is determined. The larger the sum of the first products is, the smaller the corresponding correction coefficient is. A feasible way to determine the correction coefficient is to match the correction coefficient corresponding to the sum of the first products from a preset coefficient matching table. The coefficient matching table includes but is not limited to different sums of first products and corresponding correction coefficients, all of which are set based on human experience. Furthermore, if the target temperature is within the key temperature interval, the corresponding key temperature interval is determined as an important temperature interval. Next, when the key fluid corresponding to the important temperature interval is the target fluid, the second product of the first weight of the important temperature interval and the second weight of the corresponding target fluid is calculated. The larger the second product, the greater the possibility of a large error when measuring the target fluid at the target temperature within the important temperature interval. When the target flowmeter is subsequently tested for error using the corresponding target density conversion coefficient, the error value threshold needs to be lower, thereby achieving higher measurement accuracy for the target flowmeter. It should be noted that the correction coefficient is a positive number less than 1.

[0098] Furthermore, based on the second product, an initial error threshold for the target fluid at the corresponding target temperature, i.e., a target temperature within the critical temperature range, is determined. A larger second product indicates a smaller initial error threshold. Finally, this initial error threshold is multiplied by a correction factor to obtain the error threshold for the target fluid at the corresponding target temperature.

[0099] S209: Based on the target density conversion coefficient of the target fluid at a single target temperature, an error test is performed on the target flow meter to obtain a corresponding relative error value, and when the relative error value is lower than a preset error value threshold, the corresponding target density conversion coefficient is determined as the final density conversion coefficient that passes the test.

[0100] For details, please refer to step S105, which will not be described in detail here.

[0101] In other embodiments, after obtaining the final density conversion coefficient of the target flow meter at each target temperature, that is, a relatively accurate density conversion coefficient, each final density conversion coefficient and the corresponding target temperature are fitted using a preset MATLAB tool to obtain a corresponding second functional relationship, which is a functional relationship between the final density conversion coefficient of the target flow meter and the corresponding target temperature for the target fluid. Furthermore, when the target flow meter subsequently measures the actual target fluid, the actual density conversion coefficient corresponding to the target flow meter can be quickly and accurately determined based on the second functional relationship corresponding to the actual target fluid and the corresponding actual temperature, thereby achieving relatively accurate flow measurement.

[0102] In another embodiment, the third product of the first weight of each key temperature interval and the second weight of each corresponding key fluid is calculated, and each third product is summed to obtain the sum of the second products of the corresponding key temperature interval. The larger the sum of the second products, the higher the possibility of a large error when the target flow meter measures the flow in the corresponding key temperature interval. The sum of each second product is then compared with a preset product sum threshold. If the sum of the second products is less than the product sum threshold, it means that the target flow meter is less likely to make a large error when measuring the flow in the corresponding key temperature interval. The corresponding key temperature interval is then determined as the reference temperature interval. If the target temperature is within the reference temperature interval, the corresponding target temperature is determined as the reference temperature. It is then determined that when the target fluid is within the reference temperature interval, the final density conversion coefficient of the target flow meter is more accurate, thereby achieving verification of the final density conversion coefficient. In addition, each reference temperature and the corresponding final density conversion coefficient are fitted through the preset MATLAB tool to obtain the third functional relationship, and finally the second functional relationship and the third functional relationship are curve fitted to obtain the fitting rate. If the fitting rate exceeds the preset fitting rate threshold, it means that the curve corresponding to the second functional relationship and the curve corresponding to the third functional relationship are highly similar, and the second functional relationship is verified to be correct; conversely, if the fitting rate does not exceed the preset fitting rate threshold, it means that the curve corresponding to the second functional relationship and the curve corresponding to the third functional relationship are less similar, and the actual density conversion coefficient of the target flow meter is determined according to the third functional relationship.

[0103] In one embodiment, the key temperature interval in which the target fluid exists in each corresponding key fluid is determined as the final temperature interval, and the product of the first weight of each final temperature interval and the second weight of the corresponding target fluid is calculated. According to the size of the product, the number of target temperatures selected from the corresponding final temperature interval is determined. The larger the product, the greater the possibility of measurement error, and the more target temperatures are selected.

[0104] The implementation principle of a method for obtaining a density conversion coefficient of a flowmeter in an embodiment of the present application is as follows: after obtaining the actual geometric dimensions, actual material properties, and reference elastic modulus, a target finite element model is constructed based on the obtained data, facilitating subsequent simulation of the performance and behavior of the target flowmeter under different working conditions; at the same time, a first functional relationship corresponding to the target measuring tube is determined, facilitating subsequent rapid and accurate determination of the elastic modulus of the target measuring tube at different target temperatures. Furthermore, by combining the target finite element model, the first functional relationship, and the density conversion coefficient calculation formula, the density of the target fluid at different target temperatures is determined relatively quickly and the corresponding target density conversion coefficient is determined accordingly. Finally, an error test is performed on the target flowmeter using a single target density conversion coefficient. If the relative error value is lower than a preset error value threshold, indicating that the corresponding target density conversion coefficient meets the test requirements, the final density conversion coefficient is determined to be directly usable in subsequent flow measurement work without the need for expensive experimental equipment, thereby reducing the cost of obtaining the density conversion coefficient.

[0105] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0106] See Figure 3 , which is a schematic diagram of the structure of an apparatus for obtaining a flowmeter density conversion coefficient according to an embodiment of the present application. The apparatus for obtaining a flowmeter density conversion coefficient can be implemented as all or part of the apparatus through software, hardware, or a combination of both. The apparatus includes an information acquisition module 11, a model construction module 12, a function determination module 13, a coefficient determination module 14, and a coefficient testing module 15.

[0107] An information acquisition module 11 is configured to acquire actual geometric dimensions, actual material properties, and a reference elastic modulus of a target measuring tube at room temperature of a target flow meter, where the target measuring tube is a measuring tube in the target flow meter;

[0108] A model building module 12 is used to determine a target finite element model corresponding to the target flow meter based on actual geometric dimensions and actual material properties;

[0109] A function determination module 13 is configured to construct a first functional relationship corresponding to the target measuring tube according to the reference elastic modulus, wherein the first functional relationship is a functional relationship between the elastic modulus and the temperature of the target measuring tube;

[0110] a coefficient determination module 14 for determining a target density conversion coefficient corresponding to a target flow meter at different target temperatures of the target fluid based on the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula, wherein the target temperature is a temperature within an operating temperature range of the target flow meter;

[0111] The coefficient testing module 15 is used to perform an error test on the target flow meter based on the target density conversion coefficient of the target fluid at a single target temperature, obtain a corresponding relative error value, and when the relative error value is lower than a preset error value threshold, determine the corresponding target density conversion coefficient as the final density conversion coefficient that passes the test.

[0112] Optionally, the coefficient determination module 14 is specifically configured to:

[0113] Obtaining a standard density value of the target fluid at a reference temperature from a preset database, and determining a target density value of the target fluid at a single target temperature based on the standard density value, wherein the database includes standard density values ​​of multiple industrial fluids at different temperatures;

[0114] determining a target elastic modulus of the target measuring tube at a single target temperature according to the first functional relationship;

[0115] The target elastic modulus is input into the target finite element model to obtain the corresponding target empty pipe resonance frequency and target full pipe resonance frequency;

[0116] Substitute the target empty tube resonant frequency, target full tube resonant frequency, and target density of the target fluid of the target measuring tube at the same target temperature into the preset density conversion coefficient calculation formula to obtain the corresponding target density conversion coefficient. The density conversion coefficient calculation formula is:

[0117] ;

[0118] Where, represents the target density conversion coefficient, represents the target density value, Indicates the target air pipe resonance frequency, Indicates the target full-tube resonant frequency.

[0119] Optionally, the coefficient determination module 14 is specifically configured to:

[0120] Substitute the standard density value into the preset temperature change calculation formula to obtain the target density value of the target fluid at a single target temperature. The temperature change calculation formula is:

[0121] ;

[0122] Where, Indicates the target density value at a single target temperature. Indicates the standard density value, represents the expansion coefficient of the target fluid, represents the target temperature of the target fluid, Indicates the reference temperature of the target fluid.

[0123] Optional, such as Figure 4 As shown, the device further includes a threshold determination module 16, which is specifically configured to:

[0124] Obtain historical temperature intervals in which a target error occurs for a flow meter of the same type as the target flow meter, count the number of first occurrences of each historical temperature interval, and select the first number of historical temperature intervals from each historical temperature interval in descending order of the number of first occurrences as key temperature intervals, with the target error being the measurement error that exceeds the maximum allowable error;

[0125] Obtain historical fluids that have experienced target errors in a single key temperature interval, count the number of second occurrences of each historical fluid, and select a second number of historical fluids from each historical fluid in descending order of the number of second occurrences to determine them as key fluids for the corresponding key temperature interval;

[0126] Determine a first weight for each key temperature interval and a second weight for each key fluid corresponding to each key temperature interval, wherein the first weight is the ratio of the first occurrence count of each key temperature interval to the sum of the first occurrence counts of all key temperature intervals, and the second weight is the ratio of the second occurrence count of a single key fluid corresponding to the key temperature interval to the sum of the second occurrence counts of all corresponding key fluids;

[0127] An error value threshold of an error test of the target flow meter for the target fluid at a single target temperature is determined according to the first weight and the corresponding second weights.

[0128] Optionally, the threshold determination module 16 is specifically configured to:

[0129] Calculate a first product of a first weight of each key temperature interval and a second weight of each corresponding key fluid;

[0130] The first products corresponding to the same key fluid are summed to obtain the corresponding sum of the first products, and the correction coefficient of the corresponding key fluid is determined according to the sum of the first products. The larger the sum of the first products, the smaller the corresponding correction coefficient;

[0131] If the target temperature is within the key temperature interval, the corresponding key temperature interval is determined as the important temperature interval;

[0132] If the key fluid corresponding to the important temperature interval is the target fluid, then the second product of the first weight of the important temperature interval and the second weight of the corresponding target fluid is calculated, and based on the second product, the initial error value threshold of the target fluid at the corresponding target temperature is determined. The larger the second product, the smaller the corresponding initial error value threshold;

[0133] Multiply the initial error value threshold by the correction coefficient corresponding to the target fluid to obtain the corresponding error value threshold.

[0134] Optionally, the device further includes a coefficient switching module 17, specifically configured to:

[0135] Fitting each final density conversion coefficient of the target flow meter and the corresponding target temperature to obtain a corresponding second functional relationship, where the second functional relationship is a functional relationship between the final density conversion coefficient of the target flow meter and the corresponding target temperature for the target fluid;

[0136] When the actual target fluid is measured by the target flow meter, the actual density conversion coefficient corresponding to the target flow meter is determined according to the second functional relationship and the actual temperature corresponding to the actual target fluid.

[0137] Optionally, the device further includes a function verification module 18, specifically configured to:

[0138] Calculating the third product of the first weight of each key temperature interval and the second weight of each corresponding key fluid, and summing each third product to obtain the sum of the second products of the corresponding key temperature interval;

[0139] If the sum of the second products is less than a preset product sum threshold, the corresponding key temperature interval is determined as the reference temperature interval; if the target temperature is within the reference temperature interval, the corresponding target temperature is determined as the reference temperature;

[0140] Fitting each reference temperature and the corresponding final density conversion coefficient to obtain the corresponding third functional relationship;

[0141] A curve fitting is performed between the second functional relationship and the third functional relationship corresponding to the target fluid to obtain a fitting rate. If the fitting rate exceeds a preset fitting rate threshold, it is determined that the second functional relationship is correctly verified.

[0142] It should be noted that the above-mentioned embodiment provides an apparatus for obtaining a flowmeter density conversion coefficient, and only uses the division of the above-mentioned functional modules as an example when executing the method for obtaining a flowmeter density conversion coefficient. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the above-mentioned embodiment provides an apparatus for obtaining a flowmeter density conversion coefficient and a method for obtaining a flowmeter density conversion coefficient, which are based on the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.

[0143] An embodiment of the present application further discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, a method for obtaining a flow meter density conversion coefficient according to the above embodiment is adopted.

[0144] Among them, the computer program can be stored in a computer-readable medium, the computer program includes computer program code, the computer program code can be in the form of source code, object code, executable file or certain middleware, etc. The computer-readable medium includes any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that computer-readable medium includes but is not limited to the above-mentioned components.

[0145] Among them, through this computer-readable storage medium, a method for obtaining a flow meter density conversion coefficient in the above embodiment is stored in a computer-readable storage medium, and is loaded and executed on a processor to facilitate the storage and application of the above method.

[0146] An embodiment of the present application further discloses an electronic device, wherein a computer program is stored in a computer-readable storage medium. When the computer program is loaded and executed by a processor, the above-mentioned method for obtaining the density conversion coefficient of the flow meter is adopted.

[0147] Among them, the electronic device can be an electronic device such as a desktop computer, a laptop computer or a cloud server, and the electronic device includes but is not limited to a processor and a memory. For example, the electronic device can also include input and output devices, network access devices and buses, etc.

[0148] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.

[0149] Among them, the memory can be an internal storage unit of the electronic device, such as the hard disk or memory of the electronic device, or it can be an external storage device of the electronic device, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD) or flash memory card (FC) equipped on the electronic device. In addition, the memory can also be a combination of an internal storage unit and an external storage device of the electronic device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or is to be output. This application does not impose any restrictions on this.

[0150] Among them, through this electronic device, a method for obtaining the density conversion coefficient of the flow meter in the above embodiment is stored in the memory of the electronic device, and is loaded and executed on the processor of the electronic device for easy use.

[0151] The above description is merely an exemplary embodiment of the present disclosure and is not intended to limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for obtaining a flow meter density conversion coefficient, characterized in that: The method comprises: Acquiring actual geometric dimensions, actual material properties, and a reference elastic modulus of a target measuring tube at room temperature of a target flowmeter, wherein the target measuring tube is a measuring tube in the target flowmeter; Determining a target finite element model corresponding to the target flowmeter based on the actual geometric dimensions and actual material properties; constructing a first functional relationship corresponding to the target measuring tube according to the reference elastic modulus, where the first functional relationship is a functional relationship between the elastic modulus and temperature of the target measuring tube; Determine, based on the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula, a target density conversion coefficient corresponding to the target flow meter at different target temperatures for the target fluid, where the target temperature is a temperature within an operating temperature range of the target flow meter; Based on the target density conversion coefficient of the target fluid at a single target temperature, an error test is performed on the target flow meter to obtain a corresponding relative error value, and when the relative error value is lower than a preset error value threshold, the corresponding target density conversion coefficient is determined as the final density conversion coefficient that passes the test.

2. The method for obtaining the flowmeter density conversion coefficient according to claim 1, characterized in that: Determining the target density conversion coefficient corresponding to the target flowmeter at different target temperatures of the target fluid according to the target finite element model, the first functional relationship, and a preset density conversion coefficient calculation formula specifically includes: Obtaining a standard density value of a target fluid at a reference temperature from a preset database, and determining a target density value of the target fluid at a single target temperature based on the standard density value, wherein the database includes standard density values ​​of multiple industrial fluids at different temperatures; determining a target elastic modulus of the target measuring tube at a single target temperature according to the first functional relationship; Inputting the target elastic modulus into the target finite element model to obtain a corresponding target empty pipe resonance frequency and a target full pipe resonance frequency; Substitute the target empty tube resonant frequency, the target full tube resonant frequency, and the target density of the target fluid of the target measuring tube at the same target temperature into a preset density conversion coefficient calculation formula to obtain the corresponding target density conversion coefficient. The density conversion coefficient calculation formula is: ; Where, represents the target density conversion coefficient, represents the target density value, Indicates the target air pipe resonance frequency, Indicates the target full-tube resonant frequency.

3. The method for obtaining the flowmeter density conversion coefficient according to claim 2, characterized in that: Determining the target density value of the target fluid at a single target temperature based on the standard density value includes: Substitute the standard density value into the preset temperature change calculation formula to obtain the target density value of the target fluid at a single target temperature. The temperature change calculation formula is: ; Where, Indicates the target density value at a single target temperature. Indicates the standard density value, represents the expansion coefficient of the target fluid, represents the target temperature of the target fluid, Indicates the reference temperature of the target fluid.

4. The method for obtaining the flowmeter density conversion coefficient according to claim 1, characterized in that: The method further comprises: Obtaining historical temperature intervals in which a target error occurs in a flow meter of the same type as the target flow meter, counting the number of first occurrences of each of the historical temperature intervals, and selecting a first number of historical temperature intervals from each of the historical temperature intervals in descending order of the number of first occurrences as key temperature intervals, where the target error is a measurement error that exceeds a maximum allowable error; Obtaining historical fluids that have experienced target errors in a single key temperature interval, counting the second occurrence count of each of the historical fluids, and selecting a second number of historical fluids from each of the historical fluids in descending order of the second occurrence counts as key fluids for the corresponding key temperature interval; Determining a first weight for each of the key temperature intervals, and determining a second weight for each of the key fluids corresponding to each of the key temperature intervals, wherein the first weight is a ratio of a first occurrence count for each key temperature interval to a sum of first occurrence counts for all key temperature intervals, and the second weight is a ratio of a second occurrence count for a single key fluid corresponding to a key temperature interval to a sum of second occurrence counts for all corresponding key fluids; An error value threshold of an error test of the target flow meter for the target fluid at a single target temperature is determined according to the first weight and the corresponding second weights.

5. The method for obtaining the flowmeter density conversion coefficient according to claim 4, characterized in that: Determining, based on the first weight and the corresponding second weights, an error value threshold of an error test of the target flow meter for the target fluid at a single target temperature specifically includes: Calculating a first product of a first weight of each of the key temperature intervals and a second weight of each corresponding key fluid; Summing the first products corresponding to the same key fluid to obtain the corresponding sum of the first products, and determining the correction coefficient of the corresponding key fluid based on the sum of the first products, wherein the larger the sum of the first products, the smaller the corresponding correction coefficient; If the target temperature is within the key temperature interval, the corresponding key temperature interval is determined as an important temperature interval; If the key fluid corresponding to the important temperature interval is the target fluid, a second product of the first weight of the important temperature interval and the second weight of the corresponding target fluid is calculated, and an initial error value threshold of the target fluid at the corresponding target temperature is determined based on the second product. The larger the second product, the smaller the corresponding initial error value threshold. The initial error value threshold is multiplied by a correction coefficient corresponding to the target fluid to obtain a corresponding error value threshold.

6. The method for obtaining the flowmeter density conversion coefficient according to claim 4, characterized in that: The method further comprises: Fitting each final density conversion coefficient of the target flow meter and the corresponding target temperature to obtain a corresponding second functional relationship, where the second functional relationship is a functional relationship between the final density conversion coefficient of the target flow meter and the corresponding target temperature for the target fluid; When the actual target fluid is measured by the target flow meter, the actual density conversion coefficient corresponding to the target flow meter is determined according to the second functional relationship and the actual temperature corresponding to the actual target fluid.

7. The method for obtaining the flowmeter density conversion coefficient according to claim 6, characterized in that: The method further comprises: Calculating a third product of the first weight of each key temperature interval and the second weight of each corresponding key fluid, and summing each of the third products to obtain a sum of the second products of the corresponding key temperature intervals; If the sum of the second products is less than a preset product sum threshold, the corresponding key temperature interval is determined as a reference temperature interval; if the target temperature is within the reference temperature interval, the corresponding target temperature is determined as a reference temperature; Fitting each of the reference temperatures and the corresponding final density conversion coefficients to obtain a corresponding third functional relationship; A curve fitting is performed between the second functional relationship and the third functional relationship corresponding to the target fluid to obtain a fitting rate. If the fitting rate exceeds a preset fitting rate threshold, it is determined that the second functional relationship is correctly verified.

8. A device for obtaining a flowmeter density conversion coefficient, characterized in that: include: An information acquisition module (11) is used to acquire actual geometric dimensions, actual material properties, and a reference elastic modulus of a target measuring tube at room temperature of a target flow meter, wherein the target measuring tube is a measuring tube in the target flow meter; A model building module (12) is used to determine a target finite element model corresponding to the target flow meter based on the actual geometric dimensions and actual material properties; A function determination module (13) is used to construct a first functional relationship corresponding to the target measurement tube according to the reference elastic modulus, wherein the first functional relationship is a functional relationship between the elastic modulus and temperature of the target measurement tube; A coefficient determination module (14) is used to determine the target density conversion coefficient corresponding to the target flow meter at different target temperatures of the target fluid based on the target finite element model, the first functional relationship and a preset density conversion coefficient calculation formula, wherein the target temperature is a temperature within the operating temperature range of the target flow meter; A coefficient testing module (15) is used to perform an error test on the target flow meter based on the target density conversion coefficient of the target fluid at a single target temperature, obtain a corresponding relative error value, and when the relative error value is lower than a preset error value threshold, determine the corresponding target density conversion coefficient as a final density conversion coefficient that passes the test.

9. A computer-readable storage medium storing a computer program, wherein: When the computer program is loaded and executed by a processor, the method according to any one of claims 1 to 7 is adopted.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor loads and executes the computer program, the method according to any one of claims 1 to 7 is adopted.

Citation Information

Patent Citations

  • Method, device and equipment for acquiring dynamic constitutive relationship of material and storage medium

    CN116030923A

  • Venturi tube abrasion automatic compensation early warning method

    CN119227464A