Mass flow meter pipe diameter selection method, device, apparatus, medium, and program product
By setting flow velocity and Mach number constraints in the pipe diameter selection of Coriolis mass flow meters and combining multi-dimensional evaluation, the problem of metering accuracy and stability of compressible fluids under high flow velocity conditions is solved, and the optimal balance between stability and accuracy of the flow meter is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- PIPECHINA SOUTH CHINA CO
- Filing Date
- 2026-02-27
- Publication Date
- 2026-05-29
AI Technical Summary
In the process of selecting the pipe diameter for Coriolis mass flow meters under compressible fluid conditions, the existing technology often ignores the influence of aerodynamic noise and shock waves under high flow velocity conditions, resulting in fluctuations in measurement accuracy and instrument instability.
By setting strict flow velocity thresholds and Mach number constraints, the theoretical minimum pipe diameter is calculated, and a comprehensive evaluation is conducted by combining accuracy error, pressure loss, and aerodynamic noise to select a suitable target pipe diameter.
It effectively avoids shock wave and turbulence noise, ensures a high signal-to-noise ratio of sensor signals, and enables the Coriolis mass flow meter to operate stably under high-speed airflow, achieving the best balance between accuracy and energy efficiency.
Smart Images

Figure CN122108289A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fluid metering technology, and in particular to a method, apparatus, equipment, medium, and program product for selecting the pipe diameter of a mass flow meter. Background Technology
[0002] A Coriolis mass flow meter (CMF) is a precision instrument that directly measures the mass flow rate of a fluid by utilizing the Coriolis force generated when a fluid flows through a vibrating tube. In the field of fluid metering, the Coriolis mass flow meter is widely used in trade transactions and gas station metering due to its high measurement accuracy, lack of moving parts, and ability to directly measure mass flow rate (i.e., obtaining the mass flow rate value without temperature or pressure compensation).
[0003] In the selection of pipe diameter for Coriolis mass flow meters operating under compressible fluid conditions, existing methods largely rely on manual experience, often neglecting the unique physical effects of compressible fluids under high flow velocities. When the selected pipe diameter is too small, resulting in excessively high flow velocities within the pipe, the gas velocity easily approaches the speed of sound, generating strong aerodynamic noise and even localized shock waves. This severely interferes with the signal-to-noise ratio of the sensor signal, causing significant fluctuations in the measurement readings of the Coriolis mass flow meter. Therefore, proper pipe diameter selection is crucial for ensuring the accuracy of Coriolis mass flow meters for compressible fluids. Summary of the Invention
[0004] This invention provides a method, apparatus, equipment, medium, and program for selecting the pipe diameter of a mass flow meter, which improves the rationality of the pipe diameter matching of the Coriolis mass flow meter for compressible fluids and the accuracy of the Coriolis mass flow meter.
[0005] According to one aspect of the present invention, a method for selecting the pipe diameter of a mass flow meter is provided, the method comprising: Obtain the velocity constraints, operating parameters, and flow range of the compressible fluid, and calculate the operating density and gas velocity of the compressible fluid based on the operating parameters of the compressible fluid. Based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint, calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the flow velocity constraint; Filter the set of candidate pipe diameters that are greater than or equal to the theoretical minimum pipe diameter from the standard pipe diameter database; For a single candidate pipe diameter in the candidate pipe diameter set, the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid are obtained, and the accuracy error, the pressure loss, and the aerodynamic noise are combined to obtain a comprehensive score for the candidate pipe diameter. Based on the comprehensive score of each candidate pipe diameter in the candidate pipe diameter set, a target pipe diameter suitable for the mass flow meter is selected from each candidate pipe diameter.
[0006] According to another aspect of the present invention, a mass flow meter pipe diameter selection device is provided, the device comprising: The compressible fluid property calculation module is used to obtain the flow velocity constraints, operating parameters and flow range of the compressible fluid, and calculate the operating density and gas sound velocity of the compressible fluid based on the operating parameters of the compressible fluid. The theoretical minimum pipe diameter calculation module is used to calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the flow velocity constraint, based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint. The candidate pipe diameter set filtering module is used to filter the candidate pipe diameter set that is greater than or equal to the theoretical minimum pipe diameter in the standard pipe diameter database; The candidate pipe diameter comprehensive evaluation module is used to obtain the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid for a single candidate pipe diameter in the candidate pipe diameter set, and to integrate the accuracy error, the pressure loss, and the aerodynamic noise to obtain a comprehensive score for the candidate pipe diameter. The target pipe diameter screening module is used to screen the target pipe diameter that is suitable for the mass flow meter from the candidate pipe diameters in the candidate pipe diameter set based on the comprehensive score of each candidate pipe diameter.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the mass flow meter pipe diameter selection method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the mass flow meter pipe diameter selection method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the mass flow meter pipe diameter selection method according to any embodiment of the present invention.
[0010] The technical solution of this invention sets a strict flow velocity threshold as a hard constraint for the selection of Coriolis mass flow meter pipe diameter. This ensures that compressible fluids can stay away from the sound velocity range under different operating conditions, effectively avoiding the generation of shock waves and turbulent noise, guaranteeing a high signal-to-noise ratio of the sensor signal, and enabling the instrument to operate stably under high-speed airflow. This eliminates the risk of aerodynamic noise at the source and improves the stability of Coriolis mass flow meter operation. At the same time, by comprehensively evaluating each candidate pipe diameter from three dimensions—accuracy error, pressure loss, and aerodynamic noise—the selection of Coriolis mass flow meter pipe diameter is no longer a simple "either / or" choice. Instead, it prioritizes pipe diameters with moderate flow velocity, strong Coriolis force signal, and the highest measurement accuracy, while meeting pressure loss limits. This solves the problem of compressible fluids requiring both low pressure loss and accurate measurement (i.e., high precision), achieving the best balance between accuracy and energy efficiency. This improves the rationality of the pipe diameter matching for Coriolis mass flow meters of compressible fluids, the metrological economy of Coriolis mass flow meters, and the accuracy of Coriolis mass flow meters.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a flowchart of a method for selecting the pipe diameter of a mass flow meter according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of a method for selecting the pipe diameter of a mass flow meter according to Embodiment 2 of the present invention; Figure 3 This is a flowchart of a mass flow meter pipe diameter selection method according to Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the comprehensive scoring curve of the candidate pipe diameter set provided in Embodiment 3 of the present invention; Figure 5 This is a schematic diagram of a mass flow meter pipe diameter selection device according to Embodiment 4 of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device that implements the mass flow meter pipe diameter selection method of the present invention. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] Example 1 Figure 1 This is a flowchart illustrating a method for selecting the pipe diameter of a mass flow meter according to Embodiment 1 of the present invention. This embodiment of the invention is applicable to the pipe diameter selection of Coriolis mass flow meters. The method can be executed by a mass flow meter pipe diameter selection device, which can be implemented in hardware and / or software. This mass flow meter pipe diameter selection device can be configured in an electronic device that performs the mass flow meter pipe diameter selection function.
[0017] See Figure 1 The mass flow meter pipe diameter selection method shown includes: S101. Obtain the velocity constraints, operating parameters, and flow range of the compressible fluid, and calculate the operating density and gas velocity of the compressible fluid based on the operating parameters of the compressible fluid.
[0018] Unlike liquids, the operating density of compressible fluids varies significantly with operating pressure and temperature, and the velocity of sound in gases is relatively low. During the selection of pipe diameter for Coriolis mass flow meters operating under compressible fluid conditions, if the selected pipe diameter is too small, resulting in excessively high flow velocities, the flow velocity of the compressible fluid inside the pipe will approach the velocity of sound in a gas. Under high flow velocity conditions, the compressible fluid will exhibit a compressibility effect, leading to a sharp increase in compression, which in turn increases aerodynamic noise and may even cause local shock waves, affecting the stability of the vibrating tube of the Coriolis mass flow meter. Examples of compressible fluids include natural gas, hydrogen, ethylene, or supercritical carbon dioxide.
[0019] Flow velocity constraints are used to limit the maximum permissible flow velocity of compressible fluid within a pipe. For example, a flow velocity constraint can be a flow velocity not exceeding a flow velocity threshold. The flow velocity threshold is the maximum permissible flow velocity within the flow velocity constraint.
[0020] In an optional embodiment of the present invention, obtaining the flow velocity constraint of a compressible fluid includes: detecting the fluid medium type of the compressible fluid; and determining the flow velocity constraint of the compressible fluid based on the fluid medium type.
[0021] Fluid medium type is used to characterize the liquid content of a compressible fluid. For example, fluid medium types include dry gas and wet gas. Dry gas is a compressible fluid with a simple composition, weak intermolecular interactions, and near-ideal gas behavior. Wet gas is a compressible fluid with a complex composition, strong intermolecular interactions, and a tendency to undergo phase transitions. Comparatively, when the fluid medium type is wet gas, the compressible fluid can cause severe erosion and wear on the measuring tube wall under high-speed conditions, thereby shortening the lifespan of the Coriolis mass flow meter and causing permanent measurement errors.
[0022] The dry gas velocity constraint is a velocity constraint for compressible fluids when the flow medium is dry gas. The wet gas velocity constraint is a velocity constraint for compressible fluids when the flow medium is wet gas. The velocity threshold for the dry gas velocity constraint is greater than the velocity threshold for the wet gas velocity constraint. For example, the velocity threshold for the dry gas velocity constraint is 60 m / s; the velocity threshold for the wet gas velocity constraint is 30 m / s.
[0023] Specifically, a sensor can be used to detect the liquid content of the compressible fluid. When the liquid content of the compressible fluid is less than a preset liquid content threshold, the fluid medium type is determined to be dry gas; when the liquid content of the compressible fluid is greater than or equal to the preset liquid content threshold, the fluid medium type is determined to be wet gas. When the fluid medium type is dry gas, the flow rate constraint of the compressible fluid is determined to be a dry gas flow rate constraint; when the fluid medium type is wet gas, the flow rate constraint of the compressible fluid is determined to be a wet gas flow rate constraint. The preset liquid content threshold is used to determine whether the compressible fluid is dry or wet gas. For example, the preset liquid content threshold can be 1%.
[0024] This solution detects the fluid medium type of the compressible fluid, determines the fluid constraint based on the fluid medium type, and sets the flow rate threshold for dry gas flow rate constraint to be greater than that for wet gas flow rate constraint. By applying stricter flow rate constraints to the wet gas, the erosion and wear of the measuring tube wall by the compressible fluid with the flow rate medium type of wet gas can be avoided, thereby ensuring the service life and measurement accuracy of the Coriolis mass flow meter.
[0025] Operating parameters are used to characterize the operating conditions of a compressible fluid. For example, operating parameters may include operating pressure, operating temperature, and operating composition. Operating pressure is the pressure of the compressible fluid. Operating temperature is the temperature at which the compressible fluid is located. Operating composition refers to the composition of the compressible fluid.
[0026] A flow range is used to characterize the range of flow rates required for a compressible fluid. For example, a flow range includes a minimum mass flow rate and a maximum mass flow rate. The minimum mass flow rate is the lower limit of the flow range. The maximum mass flow rate is also the lower limit of the flow range.
[0027] Operating density refers to the density of a compressible fluid under actual operating conditions (i.e., non-standard conditions). Operating density is a key parameter for calculating the mass flow rate of a compressible fluid. The velocity of sound in a gas is the speed at which sound waves propagate in a compressible fluid.
[0028] Specifically, it acquires the flow velocity constraints and flow range of the compressible fluid input by the user. The operating parameters of the compressible fluid are detected using sensors.
[0029] Specifically, the following formula can be used to calculate the operating density of a compressible fluid based on its operating parameters: ; In the formula, ρ is the operating density of the compressible fluid; P is the operating pressure; M is the molar mass of natural gas, calculated based on the weighted average of the operating components; Z is the compressibility factor of natural gas; R is the universal gas constant; and T is the operating temperature.
[0030] Specifically, the following formula can be used to calculate the gas velocity of a compressible fluid based on its operating parameters: ; In the formula, c is the gas velocity of the compressible fluid; P is the operating pressure; and p is the gas density. and These are the specific heat capacity at constant pressure and the specific heat capacity at constant volume, respectively. The isothermal compressibility coefficient is derived from the real gas law. ρ is the operating density of the compressible fluid; T is the operating temperature.
[0031] For compressible fluids, the parameters of isobaric specific heat capacity and isovolumetric specific heat capacity are not fixed constants, but rather dynamic operating condition functions that vary with the environment. Changes in operating pressure and temperature alter the thermal motion and interactions of gas molecules, and different gas compositions (such as the ratio of methane to ethane) have different energy absorption efficiencies. Therefore, it is essential to calculate the operating pressure and temperature in real time. These parameters can be calculated in real time using high-precision real gas equations of state, based on the operating pressure and temperature. Examples of real gas equations of state include the AGA8 equation of state (equation for calculating the compressibility factor of gases) or the BWRS equation of state (Benedict-Weber-Rubin-Starling equation of state).
[0032] S102. Based on the maximum mass flow rate, operating density, gas sound velocity, and velocity threshold included in the flow rate range, calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the velocity constraint.
[0033] The theoretical minimum pipe diameter is the minimum pipe diameter that satisfies both the maximum mass and the flow velocity constraint.
[0034] Specifically, the continuity equation can be used to calculate the maximum flow rate. And the theoretical minimum inner diameter that satisfies the flow velocity constraint : ; In the formula, This is the theoretical minimum pipe diameter (mm). Maximum mass flow rate; The working density of the compressible fluid; For the maximum permissible flow rate, ;in, The flow velocity thresholds included in the flow velocity constraints.
[0035] In an optional embodiment of the present invention, while obtaining the flow velocity constraints, operating parameters, and flow range of the compressible fluid, the method further includes: obtaining the Mach number constraints of the compressible fluid; correspondingly, based on the maximum mass flow rate, operating density, gas sound velocity included in the flow range, and the flow velocity threshold included in the flow velocity constraints, the method calculates the theoretical minimum pipe diameter that satisfies the maximum mass flow rate and the flow velocity constraints, including: based on the maximum mass flow rate, operating density, gas sound velocity included in the flow range, and the flow velocity threshold included in the flow velocity constraints, the method calculates the theoretical minimum pipe diameter that satisfies the maximum mass flow rate, the flow velocity constraints, and the Mach number constraints.
[0036] The Mach number is the ratio between the flow velocity and the speed of sound in a gas. It measures the effect of the compressibility of a compressible fluid on its flow. For example, the Mach number can be expressed using the following formula: ; In the formula, Ma is the Mach number; ρ is the flow velocity; c is the speed of sound in the gas.
[0037] Mach number constraints are used to limit the maximum permissible Mach number of a compressible fluid within a pipe, thereby limiting the maximum permissible flow velocity of the compressible fluid within the pipe. For example, a Mach number constraint can be that the Mach number of the compressible fluid does not exceed a Mach number threshold. The Mach number threshold is the maximum value of the ratio between the permissible flow velocity and the speed of sound in the gas within the Mach number constraint. For example, the Mach number threshold can be 0.3.
[0038] Specifically, while obtaining the velocity constraints, operating parameters, and flow range of the compressible fluid, the Mach number constraints of the compressible fluid input by the user can also be obtained.
[0039] Specifically, the continuity equation can be used to calculate the maximum flow rate. The theoretical minimum inner diameter that satisfies both flow velocity and Mach number constraints. : ; In the formula, This is the theoretical minimum pipe diameter (mm). Maximum mass flow rate (kg / s); The working density of the compressible fluid; For the maximum permissible flow rate, .
[0040] This solution, based on flow velocity constraints, further introduces Mach number constraints. By setting stricter Mach number and flow velocity constraints as hard constraints for the selection of Coriolis mass flow meter pipe diameter, it can ensure that compressible fluids are far from the sound velocity region under different operating conditions, effectively avoiding the generation of shock waves and turbulent noise, ensuring a high signal-to-noise ratio of sensor signals, enabling the instrument to operate stably under high-speed airflow, eliminating the risk of aerodynamic noise from the source, and improving operational stability.
[0041] Optionally, while obtaining the velocity constraints, operating parameters, and flow range of the compressible fluid, the method also includes: obtaining the dynamic pressure constraints of the compressible fluid; correspondingly, based on the maximum mass flow rate, operating density, gas velocity, and velocity threshold included in the flow range, the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the velocity constraints is calculated, including: based on the maximum mass flow rate, operating density, gas velocity, and velocity threshold included in the flow range, the theoretical minimum pipe diameter that satisfies the maximum mass flow rate, the velocity constraints, and the dynamic pressure constraints is calculated.
[0042] Dynamic pressure is the pressure increment that occurs when a fluid encounters resistance during flow. For example, the following formula can be used to calculate dynamic pressure: ; In the formula, q represents dynamic pressure; The working density of the compressible fluid; Flow rate.
[0043] Dynamic pressure constraints are used to limit the maximum permissible dynamic pressure of a compressible fluid within a pipe, thereby limiting the maximum permissible flow velocity of the compressible fluid within the pipe. For example, a dynamic pressure constraint can be that the dynamic pressure of the compressible fluid does not exceed a dynamic pressure threshold. The dynamic pressure threshold is the maximum permissible dynamic pressure within the dynamic pressure constraint.
[0044] Specifically, while obtaining the velocity constraints, operating parameters, and flow range of the compressible fluid, the dynamic pressure constraints of the compressible fluid input by the user can also be obtained.
[0045] Specifically, the continuity equation can be used to calculate the maximum flow rate. The theoretical minimum inner diameter that satisfies both flow velocity and dynamic pressure constraints. : ; In the formula, This is the theoretical minimum pipe diameter (mm). Maximum mass flow rate (kg / s); The operating density of natural gas; For the maximum permissible flow rate, ,in, The flow velocity thresholds included in the flow velocity constraints; The dynamic pressure thresholds included in the dynamic pressure constraint.
[0046] This solution, based on velocity constraints, further introduces dynamic pressure constraints. By setting stricter dynamic pressure and velocity constraints as hard constraints for the selection of Coriolis mass flow meter pipe diameter, it can ensure that compressible fluids are far from the sound velocity region under different operating conditions, effectively avoiding the generation of shock waves and turbulent noise, ensuring a high signal-to-noise ratio of sensor signals, enabling the instrument to operate stably under high-speed airflow, eliminating the risk of aerodynamic noise from the source, and improving operational stability.
[0047] S103. Select a set of candidate pipe diameters that are greater than or equal to the theoretical minimum pipe diameter from the standard pipe diameter database.
[0048] The standard pipe diameter database records the standard pipe diameters compatible with Coriolis mass flow meters. The candidate pipe diameter set is a collection of candidate pipe diameters that are greater than or equal to the theoretical minimum pipe diameter. Optionally, the number of candidate pipe diameters in the candidate pipe diameter set can be at least one. Candidate pipe diameters must be greater than or equal to the theoretical minimum pipe diameter, meaning that all candidate pipe diameters satisfy the flow velocity constraint and the maximum mass flow rate.
[0049] Specifically, each standard pipe diameter in the standard pipe diameter database is compared with the theoretical minimum pipe diameter, and candidate pipe diameters that are greater than or equal to the theoretical minimum pipe diameter are selected to obtain a set of candidate pipe diameters.
[0050] S104. For a single candidate pipe diameter in the candidate pipe diameter set, obtain the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid, and combine the accuracy error, pressure loss, and aerodynamic noise to obtain a comprehensive score for the candidate pipe diameter.
[0051] Accuracy error characterizes how close the measured value of a mass flow meter is to the true value. Accuracy error provides feedback on the magnitude of the mass flow meter's error. For example, accuracy error may include both systematic and random errors of the mass flow meter.
[0052] Pressure loss is the pressure drop caused by viscous friction, local resistance, or acceleration / deceleration when a compressible fluid flows in a pipe or equipment. Pressure loss is used to characterize the energy dissipation of a compressible fluid.
[0053] Aerodynamic noise is the sound wave generated by pressure fluctuations or turbulence in a compressible fluid during flow. It is the result of energy being released in the form of sound waves. Aerodynamic noise is a type of aerodynamic noise.
[0054] The comprehensive score is used to evaluate candidate pipe diameters from three dimensions: accuracy, pressure loss, and noise.
[0055] Specifically, for a single candidate pipe diameter in the candidate pipe diameter set, an accuracy prediction model is used to calculate the accuracy error of the mass flow meter based on the candidate pipe diameter, operating parameters, and flow range; a flow resistance calculation model is used to calculate the pressure loss of the compressible fluid based on the candidate pipe diameter, operating parameters, and flow range; and an acoustic evaluation model is used to calculate the aerodynamic noise of the compressible fluid based on the candidate pipe diameter, operating parameters, and flow range. The accuracy error, pressure loss, and aerodynamic noise are then weighted and summed to obtain a comprehensive score for the candidate pipe diameter.
[0056] In an optional embodiment of the present invention, a comprehensive score for the candidate pipe diameter is obtained by integrating accuracy error, pressure loss, and aerodynamic noise, including: obtaining a first weighting coefficient, a second weighting coefficient, a third weighting coefficient, an upper limit value for accuracy error, an upper limit value for pressure loss, and an upper limit value for aerodynamic noise; normalizing the accuracy error, pressure loss, and aerodynamic noise based on the upper limit values for accuracy error, pressure loss, and aerodynamic noise to obtain normalized accuracy error, normalized pressure loss, and normalized aerodynamic noise; and weighting and summing the normalized accuracy error, normalized pressure loss, and normalized aerodynamic noise based on the first weighting coefficient, the second weighting coefficient, and the third weighting coefficient to obtain a comprehensive score for the candidate pipe diameter.
[0057] The first weighting factor is for accuracy error. The second weighting factor is for pressure loss. The third weighting factor is for aerodynamic noise. The upper limit for accuracy error is the maximum value of the accuracy error. The upper limit for pressure loss is the maximum value of the pressure loss. The upper limit for aerodynamic noise is the maximum value of the aerodynamic noise.
[0058] Specifically, it obtains the user-preset first weighting coefficient, second weighting coefficient, and third weighting coefficient. It also obtains the pre-measured upper limits for accuracy error, pressure loss, and aerodynamic noise.
[0059] Specifically, the following formula can be used: based on the upper limits of accuracy error, pressure loss, and aerodynamic noise, normalize the accuracy error, pressure loss, and aerodynamic noise to obtain normalized accuracy error, normalized pressure loss, and normalized aerodynamic noise. Then, based on the first, second, and third weighting coefficients, perform a weighted sum of the normalized accuracy error, normalized pressure loss, and normalized aerodynamic noise to obtain a comprehensive score for the candidate pipe diameter. ; In the formula, The comprehensive score for the i-th candidate pipe diameter; The first, second, and third weighting coefficients are respectively (e.g., 0.5, 0.3, 0.2), satisfying... ; This refers to the accuracy error of the mass flow meter. This refers to the pressure loss of compressible fluids. Aerodynamic noise of compressible fluids; This represents the upper limit of the accuracy error. This is the upper limit of pressure loss; This is the upper limit for aerodynamic noise; This is for normalized accuracy error; Normalized pressure loss; This is normalized aerodynamic noise.
[0060] This scheme introduces upper limits for accuracy error, pressure loss, and aerodynamic noise, which can reduce the magnitude difference between accuracy error, pressure loss, and aerodynamic noise, thereby improving the accuracy of the comprehensive score for candidate pipe diameters.
[0061] S105. Based on the comprehensive score of each candidate pipe diameter in the candidate pipe diameter set, select the target pipe diameter that is suitable for the mass flow meter from each candidate pipe diameter.
[0062] The target pipe diameter is the candidate pipe diameter for the best fit mass flow meter, determined based on a comprehensive score.
[0063] Specifically, the comprehensive scores of each candidate pipe diameter in the candidate pipe diameter set can be compared. The candidate pipe diameter corresponding to the minimum comprehensive score is determined as the target pipe diameter for the adapted mass flow meter.
[0064] The technical solution of this invention sets a strict flow velocity threshold as a hard constraint for the selection of Coriolis mass flow meter pipe diameter. This ensures that compressible fluids can stay away from the sound velocity range under different operating conditions, effectively avoiding the generation of shock waves and turbulent noise, guaranteeing a high signal-to-noise ratio of the sensor signal, and enabling the instrument to operate stably under high-speed airflow. This eliminates the risk of aerodynamic noise at its source and improves the stability of the Coriolis mass flow meter operation. Simultaneously, each candidate pipe diameter is comprehensively evaluated from three dimensions: accuracy error, pressure loss, and aerodynamic noise. This makes the pipe diameter selection for Coriolis mass flow meters no longer a simple "either / or" choice. Instead, it prioritizes pipe diameters with moderate flow velocity, strong Coriolis force (i.e., Coriolis force) signal, and the highest measurement accuracy, while meeting pressure loss limits. This solves the problem of compressible fluids requiring both low pressure loss and accurate measurement (i.e., high precision), achieving the best balance between accuracy and energy efficiency. It improves the rationality of the pipe diameter matching for Coriolis mass flow meters of compressible fluids, the metrological economy of Coriolis mass flow meters, and the accuracy of Coriolis mass flow meters.
[0065] Example 2 Figure 2This is a flowchart of a mass flow meter pipe diameter selection method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment of the present invention specifies the process of "obtaining the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid for a single candidate pipe diameter in the candidate pipe diameter set" as follows: "Obtain the basic error of the mass flow meter, and for a single candidate pipe diameter in the candidate pipe diameter set, determine the accuracy error of the mass flow meter based on the basic error; for a single candidate pipe diameter, obtain the geometric drag loss coefficient, Reynolds number, and estimated flow velocity, and calculate the pressure loss of the compressible fluid based on the geometric drag loss coefficient, operating density, estimated flow velocity, and Reynolds number; obtain the reference noise constant and reference flow velocity, and for a single candidate pipe diameter, combine the ratio between the estimated flow velocity and the reference flow velocity with the reference noise constant to obtain the aerodynamic noise of the compressible fluid." This improves the calculation efficiency of accuracy error, pressure loss, and aerodynamic noise, and enhances the accuracy of pressure loss and aerodynamic noise. It should be noted that parts not detailed in this embodiment of the present invention can be found in the descriptions of other embodiments.
[0066] See Figure 2 The mass flow meter pipe diameter selection method shown includes: S201. Obtain the velocity constraints, operating parameters, and flow range of the compressible fluid, and calculate the operating density and gas velocity of the compressible fluid based on the operating parameters.
[0067] S202. Based on the maximum mass flow rate, operating density, gas sound velocity, and velocity threshold included in the flow rate range, calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the velocity constraint.
[0068] S203. Select a set of candidate pipe diameters that are greater than or equal to the theoretical minimum pipe diameter from the standard pipe diameter database.
[0069] S204. Obtain the basic error of the mass flow meter, and for a single candidate pipe diameter in the candidate pipe diameter set, determine the accuracy error of the mass flow meter based on the basic error.
[0070] The fundamental error characterizes the inherent error of a Coriolis mass flow meter under standard conditions. Exemplary standard conditions include constant temperature, vibration-free operation, and ideal installation. The fundamental error is typically determined by factors such as the mass flow meter's manufacturing process and sensor accuracy.
[0071] Specifically, the basic error of the mass flow meter is obtained in advance, and for a single candidate pipe diameter in the candidate pipe diameter set, the basic error is determined as the accuracy error of the mass flow meter.
[0072] In an optional embodiment of the present invention, while determining the accuracy error of the mass flow meter based on the basic error for a single candidate pipe diameter in the candidate pipe diameter set, the method further includes: obtaining the zero-point stability value of the mass flow meter; correspondingly, determining the accuracy error of the mass flow meter based on the basic error for a single candidate pipe diameter in the candidate pipe diameter set includes: for a single candidate pipe diameter in the candidate pipe diameter set, combining the ratio between the zero-point stability value and the minimum mass flow rate included in the flow range with the basic error to obtain the accuracy error of the mass flow meter.
[0073] Zero-point stability is the long-term drift of a Coriolis mass flow meter's output when there is no flow. Zero-point stability is typically caused by sensor zero-point drift and environmental disturbances. For example, environmental disturbances can be temperature variations. In this case, the accuracy error includes the effect of zero-point stability on the measurement of low-density gases.
[0074] Specifically, for a single candidate pipe diameter in the candidate pipe diameter set, the accuracy error of the mass flow meter is determined based on the basic error, while the zero-point stability value of the mass flow meter is obtained in advance.
[0075] Specifically, the following formula can be used to calculate the accuracy error of the mass flow meter by combining the ratio between the zero-point stability value and the minimum mass flow rate contained in the flow range for a single candidate pipe diameter in the candidate pipe diameter set, along with the fundamental error: ; In the formula, This refers to the accuracy error of the mass flow meter. ZS represents the basic accuracy of the mass flow meter; ZS represents the zero-point stability value of the mass flow meter. This represents the minimum mass flow rate.
[0076] This scheme introduces a zero-point stability value on top of the basic error, reflecting the impact of zero-point stability on the measurement of low-density gases, and further improving the accuracy of the mass flow meter's precision error.
[0077] S205. For a single candidate pipe diameter, obtain the geometrical drag loss coefficient, Reynolds number, and estimated flow velocity, and calculate the pressure loss of the compressible fluid based on the geometrical drag loss coefficient, operating density, estimated flow velocity, and Reynolds number.
[0078] Coriolis mass flow meters have various measuring tube shapes, such as U-shaped, straight, or triangular. The geometrical resistance loss coefficient reflects the local resistance characteristics of the measuring tube structure to the flow of compressible fluids. This coefficient can be pre-stored as a known constant in the instrument parameter library. The Reynolds number is used to determine the flow state of the compressible fluid. The estimated velocity is derived from the candidate pipe diameter.
[0079] Specifically, for a single candidate pipe diameter, the pre-determined geometric resistance loss coefficient can be obtained from the instrument parameter library.
[0080] Specifically, for a single candidate pipe diameter, based on the maximum mass flow rate and operating density, combined with the cross-sectional area corresponding to the candidate pipe diameter, the theoretical flow velocity of the compressible fluid in the pipe can be deduced if the mass flow meter uses the candidate pipe diameter.
[0081] Specifically, based on fluid mechanics formulas and the operating parameters of natural gas, the dynamic viscosity of the compressible fluid is calculated in real time. Then, using the following formula, combined with the operating density, estimated flow velocity, candidate pipe diameter, and dynamic viscosity, the Reynolds number corresponding to the candidate pipe diameter is calculated: ; In the formula, Re is the Reynolds number; The working density of the compressible fluid; To estimate flow rate; Let i be the i-th candidate pipe diameter; This refers to dynamic viscosity.
[0082] Specifically, the pressure loss of a compressible fluid can be calculated using the following formula, based on the geometric drag loss coefficient, operating density, estimated flow velocity, and Reynolds number: ; In the formula, K represents the pressure loss of the compressible fluid; K is the geometric drag coefficient. The working density of the compressible fluid; For estimated flow velocity; Re is the Reynolds number.
[0083] S206. Obtain the reference noise constant and reference flow velocity, and for a single candidate pipe diameter, combine the ratio between the estimated flow velocity and the reference flow velocity with the reference noise constant to obtain the aerodynamic noise of the compressible fluid.
[0084] The reference noise constant is the baseline corrected noise level for the Coriolis mass flow meter. It is used to adjust the reference sound level or compensate for other factors, such as background noise and propagation loss. The reference velocity is a reference value for the flow velocity. It is used to standardize the estimated flow velocity.
[0085] Specifically, the pre-determined baseline noise constant and reference flow velocity are obtained. The following formula can be used to combine the ratio between the estimated flow velocity and the reference flow velocity with the baseline noise constant for a single candidate pipe diameter to obtain the aerodynamic noise of the compressible fluid: ; In the formula, Aerodynamic noise of compressible fluids; To estimate flow rate; For reference flow rate; The reference noise constant is given by the formula, which shows that aerodynamic noise is proportional to the sixth power of the velocity ratio.
[0086] S207. For a single candidate pipe diameter in the candidate pipe diameter set, the accuracy error, pressure loss and aerodynamic noise are comprehensively considered to obtain a comprehensive score for the candidate pipe diameter.
[0087] S208. Based on the comprehensive score of each candidate pipe diameter in the candidate pipe diameter set, select the target pipe diameter that is suitable for the mass flow meter from each candidate pipe diameter.
[0088] The technical solution of this invention improves the calculation efficiency of accuracy error by determining the accuracy error of the mass flow meter based on the basic error for a single candidate pipe diameter in the candidate pipe diameter set; it also improves the calculation efficiency and accuracy of pressure loss by calculating the pressure loss of the compressible fluid based on the geometric resistance loss coefficient, operating density, estimated flow velocity, and Reynolds number for a single candidate pipe diameter, taking into account the local resistance characteristics of the mass flow meter's measuring pipe structure on the compressible fluid, the estimated flow velocity corresponding to the candidate pipe diameter, and the flow state; and further improves the calculation efficiency and accuracy of aerodynamic noise by comprehensively considering the ratio between the estimated flow velocity and the reference flow velocity and the reference noise constant for a single candidate pipe diameter, taking into account the influence of the reference noise and the estimated flow velocity on the aerodynamic noise.
[0089] Example 3 A Coriolis mass flow meter (CMF) is a precision instrument that directly measures the mass flow rate of a fluid by utilizing the Coriolis force generated when fluid flows through a vibrating tube. Its core working principle is as follows: when fluid flows through two or one U-shaped (or straight) measuring tubes, the tubes vibrate at their natural frequency under the action of a actuator; the Coriolis force generated by the fluid causes a phase difference between the inlet and outlet sides of the measuring tubes, and this phase difference is proportional to the mass flow rate. In the field of natural gas metering, Coriolis mass flow meters are widely used in trade transactions and gas station metering due to their high measurement accuracy (typically 0.1%–0.5%), lack of moving parts, and ability to directly measure mass flow rate (without temperature or pressure compensation).
[0090] Unlike liquids, natural gas is a compressible fluid whose density varies significantly with operating pressure and temperature, and it has a relatively low velocity of sound. When designing and selecting the pipe diameter for a Coriolis mass flow meter, the flow velocity of the compressible fluid within the pipe is not only limited by the maximum allowable flow rate but also strictly restricted by the Mach number (the ratio of flow velocity to the velocity of sound). When the Mach number is too high (usually exceeding 0.3), a compressibility effect occurs within the pipe, leading to a sharp increase in pressure loss, increased aerodynamic noise, and even affecting the operational stability of the vibrating tube. Furthermore, natural gas flows often carry trace amounts of liquid droplets (moisture) or solid impurities, which can cause severe erosion and wear on the pipe wall at high speeds. Therefore, appropriate pipe diameter selection is crucial for ensuring the long-term accuracy and lifespan of the natural gas Coriolis mass flow meter.
[0091] Currently, in the selection of pipe diameter for Coriolis mass flow meters, existing technologies typically employ a semi-automatic selection method combining "flow range lookup table method" and "single pressure loss verification." The specific implementation steps are as follows: S301. Determine the flow range.
[0092] Specifically, designers first determine the maximum mass flow rate under natural gas operating conditions based on the process requirements of the natural gas pipeline. ) and minimum mass flow rate ( ).
[0093] S302, Initial matching of pipe diameter.
[0094] Specifically, designers, at the known maximum mass flow rate ( ) and operating density ( In the case of ), the following physical relationship is used to estimate the volumetric flow rate ( ): ; In the formula, Volumetric flow rate; Maximum mass flow rate; This refers to the operating density. Since natural gas is a compressible fluid, the operating density... The density will vary significantly with operating pressure and temperature, so it is necessary to determine the accurate operating density in advance based on the operating parameters.
[0095] Specifically, after determining the volumetric flow rate, designers will use the following formula, combined with a rated flow range provided by the instrument manufacturer (e.g., a recommended gas flow velocity of 20–30 m / s), to calculate the required theoretical cross-sectional area (A): ; In the formula, A is the theoretical cross-sectional area; Volumetric flow rate; This is the rated flow rate.
[0096] Specifically, the theoretical pipe diameter (D) is determined using the following formula, based on the theoretical cross-sectional area: ; D is the theoretical pipe diameter; A is the theoretical cross-sectional area.
[0097] Specifically, designers compare the calculated theoretical pipe diameter with the flow-diameter comparison table in the instrument manufacturer's selection manual or selection software. The pipe diameter closest to the theoretical value is selected, and its rated flow range fully covers the user's recommended flow range. arrive "One or more" standard pipe diameters (such as DN25 and DN50, etc.).
[0098] In existing technology processes, some standard pipe diameters, while covering the maximum mass flow rate, may not perform well in terms of accuracy at the minimum mass flow rate; or some standard pipe diameters may have excessively high flow velocities when handling the maximum mass flow rate. Therefore, to achieve coverage verification, one or more standard pipe diameters are selected. Moreover, designers need to perform "pressure loss checks" on these different standard pipe diameters separately. If the selected standard pipe diameter is too small, the pressure loss may exceed the limit; if the selected standard pipe diameter is too large, although the pressure loss is small, the cost is high or the accuracy at low flow rates is insufficient. For subsequent verification needs, one or more candidate standard pipe diameters are selected. Thus, in the final step, designers can make subjective trade-offs between "low cost (selecting a small pipe diameter)" and "low noise / low pressure loss (selecting a large pipe diameter)" based on their experience.
[0099] S303, Pressure loss verification calculation.
[0100] Specifically, for a selected standard pipe diameter, the maximum mass flow rate is calculated using simple fluid dynamics formulas (such as Darcy's formula or manufacturer's empirical formula). Pressure loss below ( ).
[0101] S304, Human decision-making.
[0102] Specifically, the designers compare the calculated pressure loss with the maximum allowable pressure loss of the process. If the calculated pressure loss is less than the allowable value, the pipe diameter is considered qualified; if the calculated pressure loss exceeds the limit, a larger standard pipe diameter is selected for recalculation; if multiple standard pipe diameters meet the pressure loss requirements, the designers usually choose the smaller pipe diameter based on experience to reduce costs, or choose the larger pipe diameter to reduce noise.
[0103] In the selection of pipe diameter for Coriolis mass flow meters under natural gas conditions, existing technologies often overlook the unique physical effects of natural gas as a compressible fluid under high flow velocity conditions, and lack strict constraints on Mach number limits and aerodynamic noise. When the selected pipe diameter is too small, resulting in excessively high flow velocities, the gas velocity inside the pipe easily approaches the speed of sound, leading to strong aerodynamic noise and even local shock waves. This not only severely interferes with the signal-to-noise ratio of the sensor signal, causing significant fluctuations in the metering reading, but also, under conditions of humid or impure natural gas, the high-speed fluid can cause severe erosion and wear on the measuring pipe wall, thereby shortening the equipment's service life and causing permanent metering errors.
[0104] Moreover, existing selection methods mostly rely on manual experience or single flow range matching, lacking a systematic approach to quantitatively assess and balance multiple conflicting objectives. In natural gas trading and high-pressure transmission scenarios, simply pursuing low pressure loss to reduce transmission energy consumption often leads to excessively low flow velocities and weak Coriolis force signals, thus sacrificing measurement accuracy; while simply pursuing high accuracy can easily result in excessive pressure loss or flow velocity exceeding limits. Existing technologies struggle to automatically find the optimal pipe diameter solution that simultaneously balances high accuracy, low pressure loss, and low noise under strict fluid dynamic safety constraints.
[0105] Specifically, firstly, existing technologies lack hard constraints on flow velocity or Mach number. This can be understood as focusing only on whether pressure loss exceeds limits, often ignoring the sensitivity of natural gas as a compressible fluid to Mach number. Even if pressure loss meets requirements, excessively high flow velocities (i.e., high Mach numbers) can still generate severe aerodynamic noise and the risk of resonance in the measuring tube. Secondly, existing technologies lack a multi-objective balancing mechanism. This can be understood as the selection process for existing Coriolis mass flow meters being linear and trial-and-error, unable to simultaneously quantitatively assess the three conflicting indicators of "accuracy," "pressure loss," and "noise." For example, while selecting a larger pipe diameter may result in lower pressure loss and noise, for low-density natural gas, it increases the weight of zero-point drift on the measurement results, significantly reducing accuracy. Existing methods cannot calculate this "optimal balance point." Finally, existing technologies cannot handle the risk of moisture. This can be understood as the lack of a specific flow velocity limiting algorithm for liquefied natural gas conditions, making it prone to pipe wall erosion due to excessively high flow velocities.
[0106] The existing Coriolis mass flow meter pipe diameter selection method, which mainly adopts "flow range lookup table matching + single pressure loss verification", has the following logical and causal defects: 1) Cause (lack of consideration for the sound velocity characteristics of compressible fluids) → Effect (leading to "hidden" flow velocity exceeding the limit).
[0107] Current Coriolis mass flow meter pipe diameter selection methods only focus on whether the mass flow rate is within the range and whether the pressure loss meets the standard, without incorporating Mach number as a core constraint. A further consequence is that the velocity of sound changes when natural gas pressure changes from high to low. While the pipe diameter selection of the Coriolis mass flow meter may appear to meet the flow velocity requirements, under certain operating conditions, the actual velocity may be close to the velocity of sound (high Mach number). This ultimately leads to strong aerodynamic noise or even shock waves within the measuring tube, significantly reducing the signal-to-noise ratio, causing fluctuations in the measurement reading, and potentially inducing resonance in the measuring tube, rendering the instrument malfunction.
[0108] 2) Cause (lack of a mathematical model for multi-objective collaborative optimization) → Effect (leading to one-sidedness in selection decisions).
[0109] Current Coriolis mass flow meter technology typically employs a trial-and-error approach for pipe diameter selection. If pressure loss is too high, a larger diameter is chosen; if cost is too high, a smaller diameter is selected. This method fails to quantitatively balance the nonlinear contradictions between accuracy, pressure loss, and noise. A further consequence is that for low-density natural gas, blindly choosing a large diameter to reduce pressure loss leads to excessively low fluid velocity and weak Coriolis force signals. Ultimately, this results in a significantly increased proportion of zero-point drift error in the total flow rate, causing a severe decrease in measurement accuracy at low flow rates, failing to meet the stringent requirements of high accuracy across the entire flow range for natural gas trade transactions.
[0110] 3) Cause (ignoring the risk of erosion under humid conditions) → Effect (leading to a shortened equipment lifespan).
[0111] Existing Coriolis mass flow meters do not use pipe diameter selection methods that specify specific flow velocity limits for natural gas containing liquids or impurities. A further consequence is that under humid conditions, if the pipe diameter is too small, resulting in excessively high flow velocities, entrained droplets or particles will impact the measuring pipe wall with extremely high kinetic energy. This ultimately causes erosion and wear on the measuring pipe wall, leading to thinning of the wall, changes in stiffness, and consequently, permanent drift in the instrument coefficient, severely shortening the equipment's lifespan.
[0112] To address the aforementioned problems, this invention aims to provide a multi-objective optimization method for pipe diameter selection of natural gas Coriolis mass flow meters based on flow velocity constraints. This method constructs a multi-dimensional evaluation model incorporating accuracy, pressure loss, and noise by introducing gas sound velocity calculation and Mach number constraints. An optimization algorithm is then used to automatically find the optimal pipe diameter scheme that balances safety, accuracy, and economy.
[0113] Figure 3 This is a flowchart of a mass flow meter pipe diameter selection method provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment of the present invention is a preferred embodiment of a mass flow meter pipe diameter selection method.
[0114] See Figure 3 The mass flow meter pipe diameter selection method shown includes: S401, Obtain input parameters.
[0115] Specifically, it receives the operating parameters of natural gas (including operating pressure, operating temperature, and operating composition) and flow range input by the user.
[0116] Optionally, although the embodiments of the present invention are directed at "natural gas", the method is equally applicable to "hydrogen" and "supercritical carbon dioxide". "Ethylene" or other high-pressure compressible fluids. These high-pressure compressible fluids also have the characteristics of low sound velocity, large density variation and sensitivity to Mach number, and the principle of using this method is exactly the same.
[0117] S402, Calculation of natural gas physical properties.
[0118] Specifically, the physical properties of natural gas (including operating sound velocity and operating density) can be calculated in real time using real gas state methods, lookup table interpolation methods, or simplified empirical formulas. For example, the lookup table interpolation method can pre-store sound velocity tables for different operating pressures and temperatures.
[0119] For example, the operating density of natural gas can be calculated using the real gas equation of state, based on the operating pressure P, operating components, and operating temperature T included in the operating parameters of natural gas. : ; In the formula, The operating density of natural gas, in units of: P represents the absolute pressure under operating conditions, in units of: M represents the molar mass of natural gas, in units of: (Calculated by weighting based on gas composition (i.e., operating condition composition); Z is the natural gas compressibility factor (dimensionless); R is the universal gas constant, with a value of... T represents the operating thermodynamic temperature, in K (i.e., K). ).
[0120] For example, the velocity of sound c of natural gas can be calculated using the real gas equation of state, based on the operating pressure P and operating temperature T included in the operating parameters of natural gas: ; In the formula, c is the speed of sound in the gas, in units of... P represents the absolute pressure under operating conditions, in units of: p is the gas density ( ); and These are the specific heat capacity at constant pressure and the specific heat capacity at constant volume, respectively. The isothermal compressibility coefficient is derived from the real gas law. The operating density of natural gas, in units of: T represents the operating thermodynamic temperature, in K (i.e., K). ).
[0121] In compressible fluids like natural gas, the parameters of isobaric specific heat capacity and isovolumetric specific heat capacity are not fixed constants, but rather dynamic functions of operating conditions that vary with the environment. Changes in operating pressure and temperature alter the thermal motion and interactions of gas molecules, and different gas compositions (such as the ratio of methane to ethane) have different energy absorption efficiencies; therefore, real-time calculations are essential. These parameters can be obtained in real-time through high-precision real gas law equations.
[0122] S403, Dual Constraint Setting.
[0123] Specifically, the upper limit of flow rate (i.e., flow rate threshold) is dynamically set. And the upper limit of Mach number (i.e., the Mach number threshold). This serves as a "safety red line" for subsequent mass flow meter pipe diameter selection.
[0124] For example, the Mach number constraint is Among them, a Mach number threshold is set. The Mach number is required. Optionally, the "Mach number (Ma)" constraint can be replaced with the "Dynamic Pressure" constraint.
[0125] For example, the flow rate constraint is If the gas is dry, then the absolute threshold for flow rate is set to... If it is moisture, then set the absolute threshold for flow rate as follows: Optionally, the flow rate threshold can be automatically set based on the input liquid content of the compressible fluid or the fluid medium type. (For example, take the higher value for dry air and the lower value for humid air).
[0126] S404. Calculate the minimum pipe diameter and construct a set of candidate pipe diameters.
[0127] Specifically, based on the fluid continuity equation, the theoretical minimum pipe diameter that satisfies the maximum mass flow rate without exceeding the velocity threshold is calculated in reverse. .
[0128] For example, using the continuity equation, the maximum flow rate can be calculated. The theoretical minimum inner diameter that satisfies both flow velocity and Mach number constraints. : ; In the formula, This is the theoretical minimum pipe diameter (mm). For maximum mass flow rate ( ); The operating density of natural gas; For the maximum permissible flow rate, .
[0129] Specifically, based on a pre-set database of standard pipe diameters, all pipes with an inner diameter greater than or equal to... Based on the specifications, a "candidate pipe diameter set" is constructed, which is a single candidate pipe diameter in the candidate pipe diameter set. This step ensures that all candidate pipe diameters advancing to the next round of calculations are physically safe.
[0130] S405, Multiphysics Calculation.
[0131] Specifically, for each candidate pipe diameter in the candidate pipe diameter set, an accuracy prediction model, a flow resistance prediction model, and an acoustic evaluation model are used to calculate the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the acoustic noise, respectively. Specifically, the accuracy prediction model can be used to calculate the impact of zero-point stability on low-flow accuracy, thus obtaining the accuracy error of the mass flow meter; the flow resistance calculation model can be used to calculate the pressure loss of the compressible fluid at high flow rates; and the acoustic evaluation model can be used to estimate the aerodynamic noise of the compressible fluid caused by airflow. This step transforms qualitative pipe diameter differences into quantitative performance data.
[0132] For example, for each candidate pipe diameter in the candidate pipe diameter set The following three metrics are computed in parallel: A. Calculation accuracy error ( ): Consider the effect of the zero-point stability value ZS on the measurement of low-density gases: ; In the formula, This refers to the accuracy error of the mass flow meter, including the effect of the zero-point stability value ZS on the measurement of low-density gases. ZS represents the basic accuracy of the mass flow meter; ZS represents the zero-point stability value of the mass flow meter. ); This represents the minimum mass flow rate.
[0133] Precision error for which protection is requested The calculation formula includes a zero-point stability term, i.e. This is to reflect consideration of the measurement characteristics of low-density gases.
[0134] B. Calculate pressure loss ( ): Pressure loss is calculated based on a turbulence model: ; In the formula, The pressure loss of natural gas is represented by K, which is the geometric drag coefficient. The operating density of natural gas; For estimated flow velocity; Re is the Reynolds number.
[0135] C. Estimation of aerodynamic noise ( ): Sound power level estimation based on Lighthill acoustic analogy theory: ; In the formula, The aerodynamic noise of natural gas; To estimate flow rate; For reference flow rate; The reference noise constant is given by the formula, which shows that aerodynamic noise is proportional to the sixth power of the velocity ratio.
[0136] S406. Finding optimal solutions for multi-objective functions.
[0137] Specifically, using a weighted evaluation function, for a single candidate pipe diameter, the performance indicators of the above three dimensions are normalized and synthesized into a comprehensive score for the candidate pipe diameter.
[0138] For example, in order to balance the contradiction between "low accuracy of large-diameter pipes" and "high noise of small-diameter pipes", a normalized weighted evaluation function is constructed. : ; In the formula, Let be a normalized weighted evaluation function, representing the comprehensive score of the i-th candidate pipe diameter; For the weighting coefficients (e.g., 0.5, 0.3, 0.2), satisfying... ; This refers to the accuracy error of the mass flow meter. This refers to the pressure loss of compressible fluids. Aerodynamic noise of compressible fluids; The upper limit value set for users is used for normalization.
[0139] S407, Output optimal pipe diameter and performance report.
[0140] Specifically, the system searches for the candidate pipe diameter with the best overall score (usually the lowest overall score) from the candidate pipe diameter set, performs a final constraint check, and finally outputs the target pipe diameter and its performance prediction report. For example, Figure 4This is a schematic diagram of the comprehensive scoring curve for the candidate pipe diameter set. (Example) Figure 4 As shown, a comprehensive scoring curve is obtained by finding the candidate pipe diameter set. The lowest point is automatically determined to establish the optimal pipe diameter (i.e., the target pipe diameter). This figure visually illustrates the trends of various conflict indicators with pipe diameter and the principle behind the generation of the optimal solution. Among these, the comprehensive score is the overall rating; the measurement error is the accuracy error; the pressure loss is the pressure drop; the noise is the aerodynamic noise; and the optimal pipe diameter solution is the target pipe diameter.
[0141] The technical solution of this invention is executed by computer software or an embedded processor, and can automatically combine natural gas physical properties to provide the pipe diameter specification with optimal overall performance under strict hydrodynamic constraints; by setting a strict upper limit for the Mach number (e.g. As a rigid constraint for the selection of Coriolis mass flow meter pipe diameter, it ensures that natural gas is far from the sound velocity range under different operating conditions, effectively avoiding the generation of shock waves and turbulent noise, guaranteeing a high signal-to-noise ratio of the sensor signal, and enabling the instrument to operate stably under high-speed airflow. This eliminates the risk of aerodynamic noise at its source and improves operational stability. Simultaneously, by utilizing a multi-objective optimization model, the selection of Coriolis mass flow meter pipe diameter is no longer a simple "either / or" choice, but rather a quantitative calculation of the comprehensive score of each candidate pipe diameter, prioritizing the recommended diameter while meeting pressure loss limits. With a pipe diameter that offers moderate flow rate, strong Coriolis force signal, and the highest measurement accuracy, this system solves the challenge of achieving both low pressure loss and high accuracy in natural gas trade metering. It achieves the best balance between accuracy and energy efficiency, improving metering economy. It can automatically adjust the maximum allowable flow rate threshold based on the input natural gas composition (such as whether it contains moisture). By limiting the flow rate, it significantly reduces the kinetic energy impact of droplets or impurities on the pipe wall, effectively mitigating pipe wall erosion, reducing erosion risk, ensuring the long-term reliability of the flow meter and the stability of the instrument coefficient, and extending the equipment's lifespan under humid conditions.
[0142] Example 4 Figure 5 This is a schematic diagram of a mass flow meter pipe diameter selection device provided in Embodiment 4 of the present invention. This embodiment of the invention is applicable to the pipe diameter selection of Coriolis mass flow meters. The device can execute a mass flow meter pipe diameter selection method. The device can be implemented in hardware and / or software, and can be configured in an electronic device that performs the mass flow meter pipe diameter selection function.
[0143] See Figure 5The mass flow meter pipe diameter selection device shown includes: a compressible fluid property calculation module 501, a theoretical minimum pipe diameter calculation module 502, a candidate pipe diameter set screening module 503, a candidate pipe diameter comprehensive evaluation module 504, and a target pipe diameter screening module 505. Specifically, the compressible fluid property calculation module 501 is used to obtain the flow velocity constraints, operating parameters, and flow range of the compressible fluid, and calculate the operating density and gas velocity of the compressible fluid based on the operating parameters; the theoretical minimum pipe diameter calculation module 502 is used to calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the flow velocity constraints, based on the maximum mass flow rate included in the flow range, the operating density, the gas velocity, and the flow velocity threshold included in the flow velocity constraints; the candidate pipe diameter set screening module 503 is used to screen pipe diameters larger than a certain value from a standard pipe diameter database. The set of candidate pipe diameters equal to the theoretical minimum pipe diameter; the candidate pipe diameter comprehensive evaluation module 504 is used to obtain the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid for a single candidate pipe diameter in the candidate pipe diameter set, and to comprehensively evaluate the accuracy error, the pressure loss, and the aerodynamic noise to obtain a comprehensive score for the candidate pipe diameter; the target pipe diameter screening module 505 is used to screen the target pipe diameter that is suitable for the mass flow meter from each of the candidate pipe diameters according to the comprehensive score of each candidate pipe diameter in the candidate pipe diameter set.
[0144] The technical solution of this invention sets a strict flow velocity threshold as a hard constraint for the selection of Coriolis mass flow meter pipe diameter. This ensures that compressible fluids can stay away from the sound velocity range under different operating conditions, effectively avoiding the generation of shock waves and turbulent noise, guaranteeing a high signal-to-noise ratio of the sensor signal, and enabling the instrument to operate stably under high-speed airflow. This eliminates the risk of aerodynamic noise at the source and improves the stability of Coriolis mass flow meter operation. At the same time, by comprehensively evaluating each candidate pipe diameter from three dimensions—accuracy error, pressure loss, and aerodynamic noise—the selection of Coriolis mass flow meter pipe diameter is no longer a simple "either / or" choice. Instead, it prioritizes pipe diameters with moderate flow velocity, strong Coriolis force signal, and the highest measurement accuracy, while meeting pressure loss limits. This solves the problem of compressible fluids requiring both low pressure loss and accurate measurement (i.e., high precision), achieving the best balance between accuracy and energy efficiency. This improves the rationality of the pipe diameter matching for Coriolis mass flow meters of compressible fluids, the metrological economy of Coriolis mass flow meters, and the accuracy of Coriolis mass flow meters.
[0145] In an optional embodiment of the present invention, the candidate pipe diameter comprehensive evaluation module 504 includes: an accuracy error calculation unit, used to obtain the basic error of the mass flow meter, and for a single candidate pipe diameter in the candidate pipe diameter set, determine the accuracy error of the mass flow meter based on the basic error; a pressure loss calculation unit, used to calculate the pressure loss of the compressible fluid for a single candidate pipe diameter based on the operating density and the estimated flow velocity; and an aerodynamic noise calculation unit, used to obtain a reference noise constant and a reference flow velocity, and for a single candidate pipe diameter, combine the ratio between the estimated flow velocity and the reference flow velocity with the reference noise constant to obtain the aerodynamic noise of the compressible fluid.
[0146] In an optional embodiment of the present invention, the accuracy error calculation unit further includes: a zero-point stability value acquisition subunit, used to acquire the zero-point stability value of the mass flow meter; and an accuracy error calculation subunit, used to, for a single candidate pipe diameter in the candidate pipe diameter set, combine the ratio between the zero-point stability value and the minimum mass flow rate included in the flow range with the basic error to obtain the accuracy error of the mass flow meter.
[0147] In an optional embodiment of the present invention, the compressible fluid property calculation module 501 includes: a fluid medium type detection unit for detecting the fluid medium type of the compressible fluid; wherein the fluid medium type includes dry gas and wet gas; and a flow velocity constraint determination unit for determining the flow velocity constraint of the compressible fluid according to the fluid medium type; wherein the flow velocity threshold of the dry gas flow velocity constraint is greater than the flow velocity threshold of the wet gas flow velocity constraint.
[0148] In an optional embodiment of the present invention, the apparatus further includes: a Mach number constraint acquisition module, configured to acquire the Mach number constraint of the compressible fluid while acquiring the flow velocity constraint, operating parameters, and flow range of the compressible fluid; correspondingly, the theoretical minimum pipe diameter calculation module 502 includes: a theoretical minimum pipe diameter calculation unit, configured to calculate the theoretical minimum pipe diameter that satisfies the maximum mass flow rate, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint, based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint.
[0149] In an optional embodiment of the present invention, the candidate pipe diameter comprehensive evaluation module 504 includes: a weighting coefficient acquisition unit, used to acquire a first weighting coefficient, a second weighting coefficient, a third weighting coefficient, an upper limit value for accuracy error, an upper limit value for pressure loss, and an upper limit value for aerodynamic noise; a normalization unit, used to normalize the accuracy error, the pressure loss, and the aerodynamic noise based on the upper limit value for accuracy error, the upper limit value for pressure loss, and the upper limit value for aerodynamic noise, to obtain normalized accuracy error, normalized pressure loss, and normalized aerodynamic noise; and a candidate pipe diameter comprehensive evaluation unit, used to perform a weighted summation of the normalized accuracy error, the normalized pressure loss, and the normalized aerodynamic noise based on the first weighting coefficient, the second weighting coefficient, and the third weighting coefficient, to obtain a comprehensive score for the candidate pipe diameter.
[0150] The mass flow meter pipe diameter selection device provided in this embodiment of the invention can execute the mass flow meter pipe diameter selection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0151] In the technical solutions of this invention, the acquisition, storage, and application of the flow velocity constraints, Mach number constraints, operating parameters, flow range, basic error of the mass flow meter, zero-point stability value, accuracy error, reference noise constant, reference flow velocity, pressure loss of the compressible fluid, and aerodynamic noise of the compressible fluid all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0152] Example 4 Figure 6 A schematic diagram of an electronic device 600 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0153] like Figure 6As shown, the electronic device 600 includes at least one processor 601 and a memory, such as a read-only memory (ROM) 602 or a random access memory (RAM) 603, communicatively connected to the at least one processor 601. The memory stores computer programs executable by the at least one processor. The processor 601 can perform various appropriate actions and processes based on the computer program stored in the ROM 602 or loaded into the RAM 603 from storage unit 608. The RAM 603 may also store various programs and data required for the operation of the electronic device 600. 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.
[0154] Multiple components in electronic device 600 are connected to I / O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of displays, speakers, etc.; storage unit 608, such as disk, optical disk, etc.; and communication unit 609, such as network card, modem, wireless transceiver, etc. Communication unit 609 allows electronic device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0155] Processor 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 601 performs the various methods and processes described above, such as the mass flow meter pipe diameter selection method.
[0156] In some embodiments, the mass flow meter diameter selection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded into and / or mounted on electronic device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by processor 601, one or more steps of the mass flow meter diameter selection method described above may be performed. Alternatively, in other embodiments, processor 601 may be configured to perform the mass flow meter diameter selection method by any other suitable means (e.g., by means of firmware).
[0157] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0158] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0159] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0160] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0161] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0162] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and VPS (Virtual Private Server) services, such as high management difficulty and weak business scalability.
[0163] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0164] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for selecting the pipe diameter of a mass flow meter, characterized in that, The method includes: Obtain the velocity constraints, operating parameters, and flow range of the compressible fluid, and calculate the operating density and gas velocity of the compressible fluid based on the operating parameters of the compressible fluid. Based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint, calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the flow velocity constraint. Filter the set of candidate pipe diameters that are greater than or equal to the theoretical minimum pipe diameter from the standard pipe diameter database; For a single candidate pipe diameter in the candidate pipe diameter set, the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid are obtained, and the accuracy error, the pressure loss, and the aerodynamic noise are combined to obtain a comprehensive score for the candidate pipe diameter. Based on the comprehensive score of each candidate pipe diameter in the candidate pipe diameter set, a target pipe diameter suitable for the mass flow meter is selected from each candidate pipe diameter.
2. The method according to claim 1, characterized in that, The step of obtaining the mass flow meter's accuracy error, the compressible fluid's pressure loss, and the compressible fluid's aerodynamic noise for a single candidate pipe diameter in the candidate pipe diameter set includes: The basic error of the mass flow meter is obtained, and for a single candidate pipe diameter in the candidate pipe diameter set, the accuracy error of the mass flow meter is determined based on the basic error. For a single candidate pipe diameter, the geometric drag loss coefficient, Reynolds number, and estimated flow velocity are obtained, and the pressure loss of the compressible fluid is calculated based on the geometric drag loss coefficient, the operating density, the estimated flow velocity, and the Reynolds number. A reference noise constant and a reference flow velocity are obtained, and for a single candidate pipe diameter, the ratio between the estimated flow velocity and the reference flow velocity and the reference noise constant are combined to obtain the aerodynamic noise of the compressible fluid.
3. The method according to claim 2, characterized in that, In addition to determining the accuracy error of the mass flow meter based on the fundamental error for a single candidate pipe diameter in the candidate pipe diameter set, the method also includes: Obtain the zero-point stability value of the mass flow meter; Accordingly, determining the accuracy error of the mass flow meter for a single candidate pipe diameter in the candidate pipe diameter set, based on the fundamental error, includes: For a single candidate pipe diameter in the candidate pipe diameter set, the accuracy error of the mass flow meter is obtained by combining the ratio between the zero-point stability value and the minimum mass flow rate included in the flow range with the basic error.
4. The method according to claim 1, characterized in that, The process of obtaining the flow velocity constraint of the compressible fluid includes: Detecting the fluid medium type of a compressible fluid; wherein, the fluid medium type includes dry gas and wet gas; Based on the fluid medium type, the flow velocity constraint of the compressible fluid is determined; wherein the flow velocity threshold of the dry flow velocity constraint is greater than the flow velocity threshold of the wet flow velocity constraint.
5. The method according to claim 1, characterized in that, In addition to obtaining the velocity constraints, operating parameters, and flow range of the compressible fluid, the method also includes: Obtain Mach number constraints for compressible fluids; Accordingly, the step of calculating the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the flow velocity constraint based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint includes: Based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint, calculate the theoretical minimum pipe diameter that satisfies the maximum mass flow rate, the flow velocity constraint, and the Mach number constraint.
6. The method according to claim 1, characterized in that, The comprehensive score for the candidate pipe diameter is obtained by integrating the accuracy error, the pressure loss, and the aerodynamic noise, including: Obtain the first weighting coefficient, the second weighting coefficient, the third weighting coefficient, the upper limit of accuracy error, the upper limit of pressure loss, and the upper limit of aerodynamic noise; Based on the upper limit of the accuracy error, the upper limit of the pressure loss, and the upper limit of the aerodynamic noise, the accuracy error, the pressure loss, and the aerodynamic noise are normalized to obtain normalized accuracy error, normalized pressure loss, and normalized aerodynamic noise. Based on the first weighting coefficient, the second weighting coefficient, and the third weighting coefficient, the normalized accuracy error, the normalized pressure loss, and the normalized aerodynamic noise are weighted and summed to obtain a comprehensive score for the candidate pipe diameter.
7. A mass flow meter pipe diameter selection device, characterized in that, The device includes: The compressible fluid property calculation module is used to obtain the flow velocity constraints, operating parameters and flow range of the compressible fluid, and calculate the operating density and gas sound velocity of the compressible fluid based on the operating parameters of the compressible fluid. The theoretical minimum pipe diameter calculation module is used to calculate the theoretical minimum pipe diameter that satisfies both the maximum mass flow rate and the flow velocity constraint, based on the maximum mass flow rate included in the flow range, the operating density, the gas sound velocity, and the flow velocity threshold included in the flow velocity constraint. The candidate pipe diameter set filtering module is used to filter the candidate pipe diameter set that is greater than or equal to the theoretical minimum pipe diameter in the standard pipe diameter database; The candidate pipe diameter comprehensive evaluation module is used to obtain the accuracy error of the mass flow meter, the pressure loss of the compressible fluid, and the aerodynamic noise of the compressible fluid for a single candidate pipe diameter in the candidate pipe diameter set, and to integrate the accuracy error, the pressure loss, and the aerodynamic noise to obtain a comprehensive score for the candidate pipe diameter. The target pipe diameter screening module is used to screen the target pipe diameter that is suitable for the mass flow meter from the candidate pipe diameters in the candidate pipe diameter set based on the comprehensive score of each candidate pipe diameter.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the mass flow meter pipe diameter selection method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the mass flow meter pipe diameter selection method according to any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the mass flow meter pipe diameter selection method according to any one of claims 1-6.