Two-phase metering operation method and system based on flow pattern discrimination

Through a two-phase metering method based on flow type discrimination, a metering model adapted to different flow types is established, which solves the metering accuracy of the two-phase flowmeter under high liquid-gas ratio in the prior art, and realizes gas phase and liquid phase Accurate measurement and efficient calculation of flow.

CN119026492APending Publication Date: 2024-11-26CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310609204.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The metering accuracy of existing two-phase flowmeters is difficult to meet engineering requirements under high liquid-gas ratio conditions, and the differential pressure metering model does not consider the influence of flow patterns, resulting in inaccurate metering results.

Method used

Using a two-phase metrology method based on flow type discrimination, different flow type tests are carried out by setting up a metrology test calibration system, Lockheed parameters and optimal inflated operation model are established, and the gas phase and liquid phase metrology model is determined based on flow data to identify the actual flow and perform accurate calculations.

Benefits of technology

Accurate measurement of gas phase and liquid phase flow under high liquid-gas ratio is achieved, improving the accuracy and calculation speed of metering results, and simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026492A_ABST
    Figure CN119026492A_ABST
Patent Text Reader

Abstract

The invention provides a two-phase metering operation method and system based on flow pattern discrimination, and the method comprises the steps: setting a list of working conditions of different flow patterns, and carrying out a test according to the list through a metering test calibration system; calculating the gas phase density according to the dynamic test data of the test, and further determining a two-phase Rockwell-Markov parameter operation model in combination with the associated flow data; establishing an optimal virtual height operation model under different flow patterns according to the virtual height ratio and Loo-Marine parameter fitting; after the optimal virtual height ratio is calculated, a gas phase metering model is established based on the flow data and the optimal Rockwell-Markov parameters; and a liquid phase metering model is determined by combining the optimal virtual height ratio, a flow pattern is checked according to set solving logic, model parameters are optimized, and an accurate two-phase flow result is calculated. According to the scheme, the problem that influence factors in the prior art are not comprehensively considered is solved, the influence of the flow pattern on virtual height is considered, and reliable verification of the working condition flow pattern and accurate metering of the gas phase and the liquid phase are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy metering optimization, and in particular to a two-phase metering operation method and system based on flow type discrimination. Background Art

[0002] In recent years, the production enhancement and transformation technology of oil and gas fields has been continuously improved. While the production of volume fracturing transformation wells has been greatly improved, the return fluid and sand production of gas wells has also increased significantly. Wet gas flowmeters or two-phase flowmeters are widely used on site. According to the structural characteristics of the equipment and the metering principle, they can be roughly divided into two categories. The first type of flowmeter requires the installation of internal components related to metering. After 1-2 months of field application, the internal components will be damaged and the single well production cannot be accurately measured. The second type is based on the differential pressure metering principle. There are no structural parts inside, but its metering model does not consider the impact of different flow types in the metering section on the metering results. Under high liquid-gas ratio conditions, the accuracy of this two-phase metering method is difficult to meet the engineering metering needs.

[0003] The information disclosed in the background technology section of the present invention is only intended to deepen the understanding of the general background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art known to those skilled in the art. Summary of the invention

[0004] To solve the above problems, the present invention provides a two-phase metering operation method based on flow pattern discrimination. In one embodiment, the method includes:

[0005] Gas-liquid metering test steps: Use the set metering test calibration system to carry out metering tests under different flow patterns according to the preset flow pattern working condition list, and record the dynamic test data during the test;

[0006] Parameter operation model establishment step: based on the dynamic test data and the associated flow data, determine the Lockheed Martin parameter operation model and the optimal virtual height operation model corresponding to different flow types;

[0007] Metering model determination step: after using the optimal virtual height calculation model to calculate the optimal virtual height ratio corresponding to different flow types, determine the gas phase metering model of different flow types based on the combined flow data, and further establish the gas phase metering model of different flow types based on the gas phase flow rate and Lockheed Martin parameters;

[0008] Metering calculation steps: After calculating the on-site gas phase density according to the on-site preset flow pattern and test data, the on-site Lockheed Martin parameter calculation model is used to calculate the on-site Lockheed Martin parameters, and then the optimal virtual height ratio of the on-site is determined by the optimal virtual height calculation model, and then substituted into the gas phase metering model and the liquid phase metering model;

[0009] Optimization solution steps: Identify the actual flow pattern of the application pipe section based on the calculation results of the two-phase metering model. If the actual flow pattern is consistent with the current calculated flow pattern, the current metering calculation result will be used as the actual two-phase flow result; otherwise, recalculate the Loma parameters and virtual height ratio based on the actual flow pattern using the parameter calculation model, and then substitute them into the gas phase metering model and liquid phase metering model corresponding to the actual flow pattern to calculate and determine the target actual gas phase flow rate and liquid phase flow rate that match the flow pattern.

[0010] In a preferred embodiment, in the gas-liquid metering test step, the metering test calibration system adopts a gas-liquid two-phase metering test calibration system, including an air compressor, an air storage tank, a liquid storage tank, a test pipeline, a temperature control component, a gas-liquid mixer, a sensing component, a gas-liquid separator, a test data transmission system, and a data processing and controller; the test pipeline includes a first test pipeline, a second test pipeline, and a third test pipeline;

[0011] The first test pipeline and the second test pipeline are connected to the third test pipeline through a gas-liquid mixer; and the differential pressure flowmeter is arranged on the third test pipeline.

[0012] Furthermore, in one embodiment, the parameter operation model establishment step includes:

[0013] The Lockheed Martin parameter model determination step includes: calculating the gas phase density according to the dynamic test data of the metrological test, and then determining the Lockheed Martin parameter operation model based on the gas phase density and the associated flow data;

[0014] The steps of determining the virtual height model are as follows: the virtual height ratio is calculated according to the dynamic test data of the gas phase flow rate, and the optimal virtual height calculation model under different flow patterns is established according to the virtual height ratio and Lockheed Martin parameter fitting;

[0015] In an optional embodiment, the Lockheed Martin parameter determination step includes the following operations:

[0016] Gas phase density determination steps: Calculate gas phase density based on measured single-phase gas flow, pressure, temperature and liquid phase flow data;

[0017] Initial Lockheed Martin parameter calculation steps: Calculate the initial Lockheed Martin parameters based on the gas flow rate, the liquid flow rate and the gas phase density as the gas phase Lockheed Martin parameters;

[0018] The steps of determining the optimized Lockheed Martin parameters are as follows: the Lockheed Martin parameter relationship is obtained by fitting the pressure test data and the obtained initial Lockheed Martin parameter values; and then the optimized Lockheed Martin parameter operation model under different flow types is determined according to the initial Lockheed Martin parameters and the parameter relationship to calculate the liquid phase Lockheed Martin parameters.

[0019] Furthermore, in one embodiment, in the step of optimizing the Lockheed Martin parameters, the optimized Lockheed Martin parameter calculation model under different flow patterns is determined according to the following formula:

[0020] min(X' i -X) 2

[0021]

[0022] Where m1 and m2 are weight coefficients; X i ' is the calculated value of Lockheed Martin parameters under the required flow pattern, i = 1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow, respectively, X is the initial Lockheed Martin parameter, A, B, C are fitting coefficients.

[0023] Optionally, in one embodiment, in the step of determining the virtual high ratio, the virtual high ratio is calculated according to the single-phase gas flow rate and the gas flow rate test data; and the virtual high ratio and the Lockheed Martin parameter relationship are fitted according to the following formula:

[0024] Φ=D1+E1·X

[0025]

[0026] Where Φ is the false height ratio, X is the Lockheed Martin parameter, D1, E1, E2, n1, n2 are fitting coefficients, ρ l , g are the densities of the liquid and gas phases, respectively.

[0027] In a preferred embodiment, an optimal virtual height calculation model described in the following formula is established:

[0028]

[0029]

[0030] In the formula, Q g * It is based on the differential pressure flowmeter test flow Q g 'Compute with virtual high ratio, Q g It is a vortex flowmeter that tests single-phase gas flow. i It is the ratio of virtual height under different flow types, i=1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow respectively, and k1 and k2 are the virtual height weight coefficients.

[0031] Furthermore, in one embodiment, the optimization solution step includes:

[0032] After substituting the preset flow pattern into the two-phase metering model to solve the two-phase flow, the actual flow pattern in the test pipe section is judged according to the solved gas-liquid flow and the pressure of the test pipe section to determine whether the actual flow pattern is consistent with the preset flow pattern in the calculation. If they are consistent, the two-phase flow data calculated based on the preset flow pattern is used as the final result; if they are inconsistent, the corresponding gas phase metering model and liquid phase metering model are used based on the actual flow pattern to calculate and determine the final two-phase flow.

[0033] Based on other aspects of the method described in any one or more of the above embodiments, the present invention further provides a storage medium storing program codes that can implement the method described in any one or more of the above embodiments.

[0034] Based on the application aspects of the method described in any one or more of the above embodiments, the present invention further provides a two-phase metering operation system based on flow type discrimination, which executes the method described in any one or more of the above embodiments.

[0035] Compared with the closest prior art, the present invention also has the following beneficial effects:

[0036] The present invention provides a two-phase metering operation method and system based on flow pattern discrimination. The method determines a list of working conditions of different flow patterns according to the flow pattern discrimination conditions of multiphase flow in a horizontal pipe section, connects a differential pressure flow meter to a metering test and calibration system, and conducts a test according to the working condition list; the metering test and calibration system is used to simulate engineering parameters of different flow pattern working conditions with high quality, ensure the authenticity of dynamic test data, and provide accurate data support for the establishment of subsequent multi-level operation models;

[0037] Then, the gas phase density is calculated according to the dynamic test data, and then the two-phase Lockheed Martin parameter operation model is determined based on it and the related flow data; the virtual height ratio is calculated according to the dynamic test data and combined with the Lockheed Martin parameter fitting to establish the optimal virtual height operation model under different flow types; the gas phase metering model of different flow types is determined by using the model to calculate the optimal virtual height ratio and combined with the flow data, and the gas phase metering model is established in combination with the calculated Lockheed Martin parameters; when applied, the gas phase density is directly calculated according to the on-site flow type and test data, and the Lockheed Martin parameter operation model, the optimal virtual height operation model, the gas phase metering model and the gas phase metering model are used to realize the calculation. This solution constructs a two-phase metering model based on the flow type discrimination basis and dynamic test data, takes into account the influence of the flow type on the metering virtual height, and introduces the flow type verification strategy in the solution process to achieve accurate calculation of gas and liquid phase flow rates. When applied, the operation is simple, the calculation speed is fast, and the accuracy of the calculation results can be improved.

[0038] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0040] Figure 1 It is a flow chart of a two-phase metering calculation method based on flow pattern discrimination provided by one embodiment of the present invention;

[0041] Figure 2 It is a structural schematic diagram of a metering test and calibration system used in a two-phase metering calculation method based on flow type discrimination provided in an embodiment of the present invention;

[0042] Figure 3 It is a simplified schematic diagram of the flow model structure of the metering test calibration system of the two-phase metering calculation method based on flow type discrimination provided in an embodiment of the present invention;

[0043] Figure 4 It is a schematic diagram of setting pressure value points of a differential pressure flow meter of a two-phase metering calculation method based on flow type discrimination provided in an embodiment of the present invention;

[0044] Figure 5 It is a structural schematic diagram of a two-phase metering operation system based on flow type discrimination provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will describe the implementation methods of the present invention in detail in conjunction with the accompanying drawings and embodiments, so that the implementers of the present invention can fully understand how the present invention applies technical means to solve technical problems and achieve the implementation process of technical effects and implement the present invention specifically according to the above implementation process. It should be noted that as long as there is no conflict, the various embodiments and various features of the embodiments in the present invention can be combined with each other, and the technical solutions formed are all within the protection scope of the present invention.

[0046] Although the flowcharts describe the operations as sequential processes, many of the operations may be performed in parallel, concurrently, or simultaneously. The order of the operations may be rearranged. A process may be terminated when its operations are completed, but may also have additional steps not included in the accompanying drawings. A process may correspond to a method, function, procedure, subroutine, subprogram, etc.

[0047] Computer devices include user devices and network devices. Among them, user devices or clients include but are not limited to computers, smart phones, PDAs, etc.; network devices include but are not limited to a single network server, a server group consisting of multiple network servers, or a cloud composed of a large number of computers or network servers based on cloud computing. Computer devices can be operated alone to implement the present invention, or they can be connected to the network and implement the present invention through interactive operations with other computer devices in the network. The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, VPN network, etc.

[0048] The terms "first", "second", etc. may be used herein to describe various units, but these units should not be limited by these terms, and these terms are used only to distinguish one unit from another unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items. When a unit is referred to as being "connected" or "coupled" to another unit, it can be directly connected or coupled to the other unit, or there can be intermediate units.

[0049] The terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments. Unless the context clearly indicates otherwise, the singular forms "one", "one" and "item" used herein are also intended to include plural numbers. It should also be understood that the terms "include" and / or "comprise" used herein specify the existence of stated features, integers, steps, operations, units and / or components, without excluding the existence or addition of one or more other features, integers, steps, operations, units, components and / or combinations thereof.

[0050] With the continuous development of oil and gas field production enhancement and transformation technology, while the output of volume fracturing transformation wells has been greatly improved, the amount of sand produced by gas wells has also increased significantly. The wet gas flowmeter or two-phase flowmeter is more commonly used on site. The former requires the setting of internal components related to metering. After 1-2 months of field application, the internal components will be damaged and accurate measurement of single well production cannot be achieved. The latter is a flowmeter based on the differential pressure metering principle. There are no structural parts inside, but its metering model does not consider the impact of different flow types in the metering section on the metering results. Under high liquid-gas ratio conditions, the accuracy of this two-phase metering method is difficult to meet the engineering metering needs.

[0051] In order to solve the above problems, based on the consideration of sand protection needs, the flow meter related to the differential pressure metering principle was taken as the research object, and a new two-phase metering model construction method based on flow type discrimination was proposed. The influence of flow type on the false high metering was taken into account, and then combined with the two-phase metering model solution method based on flow type discrimination to achieve accurate gas-liquid two-phase metering.

[0052] Next, the detailed process of the method of the embodiment of the present invention is described in detail based on the accompanying drawings. The steps shown in the flowchart of the accompanying drawings can be executed in a computer system including a set of computer executable instructions. Although the logical order of each step is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0053] Embodiment 1

[0054] Figure 1 The schematic diagram of the flow chart of the two-phase metering operation method based on flow type discrimination provided by the first embodiment of the present invention is shown. Figure 1 It can be seen that the method includes the following steps.

[0055] Gas-liquid metering test steps: Use the set metering test calibration system to carry out metering tests under different flow patterns according to the preset flow pattern working condition list, and record the dynamic test data during the test;

[0056] Steps for establishing parameter operation model: using the dynamic data of measurement test and the associated flow data to fit and determine the Lockheed Martin parameter operation model and the optimal virtual height operation model corresponding to different flow patterns;

[0057] Metering model determination step: after using the optimal virtual height calculation model to calculate the optimal virtual height ratio corresponding to different flow types, determine the gas phase metering model of different flow types based on the combined flow data, and further establish the gas phase metering model of different flow types based on the gas phase flow rate and Lockheed Martin parameters;

[0058] Metering calculation steps: determine the initial flow pattern on site based on the field pressure difference data and flow pattern discrimination condition data, calculate the gas phase density on site according to the initial flow pattern on site and the test data, calculate the Lockheed Martin parameters on site using the Lockheed Martin parameter calculation model, and then use the optimal virtual height calculation model to determine the optimal virtual height ratio on site, and then substitute it into the gas phase metering model and the liquid phase metering model;

[0059] Optimization solution steps: Identify the actual flow pattern of the application pipe section based on the calculation results of the two-phase metering model. If the actual flow pattern is consistent with the current calculated flow pattern, the current metering calculation result will be used as the actual two-phase flow result; otherwise, recalculate the Loma parameters and virtual height ratio based on the actual flow pattern using the parameter calculation model, and then substitute them into the gas phase metering model and liquid phase metering model corresponding to the actual flow pattern to calculate and determine the target actual two-phase flow matching the flow pattern.

[0060] In actual application, before the gas-liquid metering test step, the test flow pattern can be set according to the needs through the flow pattern working condition setting step, and the gas-liquid flow working condition range of the metering pipe section corresponding to the test flow pattern can be determined according to the flow pattern discrimination condition data of the multiphase flow in the horizontal pipe section to form a flow pattern working condition list;

[0061] Further, in an optional embodiment, the flow pattern discrimination condition data of the multiphase flow in the horizontal pipe section is determined by the following operations:

[0062] Step A1. Use multiphase flow simulation software to establish a flow calculation model that meets the set requirements as a flow model for the metrology test calibration system;

[0063] In a preferred embodiment, in step A1, the process of establishing a flow model of a metrology test and calibration system using multiphase flow simulation software includes:

[0064] Furthermore, in order to ensure the accuracy of the calculation results of the flow model of the metrology test calibration system, in a preferred embodiment, in step A1, the process of establishing the flow model of the metrology test calibration system using the multiphase flow simulation software also includes:

[0065] Step A11. Set the operating parameters of different flow types according to the calculation data of the flow model of the constructed metrology test and calibration system, conduct experiments using the set metrology test and calibration system, and correct the flow model of the constructed metrology test and calibration system according to the pressure difference data and temperature data obtained from the experiment, so that the error between the simulation calculation data and the experimental data is controlled within the set range.

[0066] Step A2. Based on the gas volume parameters and liquid volume parameters that meet the simulation requirements, the values ​​are equally divided. For each gas volume parameter value, different liquid volume parameter values ​​are applied to perform simulation calculations using the flow model of the metering test calibration system to obtain the corresponding test pipe section pressure difference and flow pattern;

[0067] Step A3. Select the gas volume parameter range for flow pattern transformation according to the obtained pressure difference and flow pattern, further adopt the dichotomy method to split the values, and for each gas volume parameter value after splitting, apply different liquid volume parameter values ​​to perform simulation calculation using the flow model of the metering test calibration system to obtain the corresponding test pipe section pressure difference and flow pattern;

[0068] Step A4. Select the liquid volume parameter range for flow pattern transformation, use the dichotomy method to split the value, and further use the flow model of the measurement test calibration system to perform simulation calculations to obtain the corresponding test pipe section pressure difference and flow pattern;

[0069] Step A5. Determine whether the change value of the previous simulated pressure difference and the current simulated pressure difference in the pressure difference monitoring pipe section and the ratio of the previous simulated pressure difference meet the set requirements. If so, record the gas volume parameter and liquid volume parameter range of each current flow pattern transition, the test pipe section pressure difference and flow pattern as flow pattern discrimination condition data;

[0070] If not, step A4 is executed again until the ratio of the change between the previous simulated pressure difference and the current simulated pressure difference in the pressure differential monitoring pipe section and the previous simulated pressure difference meets the set requirement.

[0071] Based on this, the test flow pattern can be set according to needs in the flow pattern working condition setting step, and the range of gas-liquid flow working conditions of the metering pipe section corresponding to the test flow pattern can be determined according to the flow pattern discrimination condition data of the multiphase flow in the horizontal pipe section to form a list of flow pattern working conditions.

[0072] In actual application, before calculating the on-site gas phase density according to the on-site flow pattern and test data, in an optional embodiment, the initial on-site flow pattern can be determined according to the following operations: using experimental test data and multiphase flow simulation software to establish a flow calculation model that meets the set requirements as a flow model for the metrology test calibration system;

[0073] The process of establishing the flow model of the metrology test calibration system using experimental test data and multiphase flow simulation software includes:

[0074] Step B1, simplify the measurement test calibration system according to the key flow pipe elements. In an optional embodiment, the air intake boost unit is simplified to the air source air intake point, the water intake boost unit is simplified to the water source water intake point, the gas-liquid outflow separation unit is simplified to the gas-liquid outflow point, and the flowmeters on the first and third test pipes are simplified to throttling elements;

[0075] Step B2: Use the pipeline module and throttling module of the multiphase flow simulation software to build a simplified basic framework of the flow model of the metering test calibration system, such as Figure 2 As shown;

[0076] It should be noted that the flow meter in the second test pipeline is not simplified as a throttling element because an electromagnetic flow meter is used in the second test pipeline. The pipe diameter at the flow meter position does not change and there is no throttling effect, which is the same as the general pipe flow.

[0077] After simplification, the pressures at the gas source inlet point and the water source inlet point are both the pressures after pressurization, and the pressure at the gas-liquid outflow point is the pressure after the flow meter on the third test pipeline.

[0078] Step B3, according to the structural parameters of the actual metrology test and calibration system established in the experiment, determine the input structural parameters of the flow model of the metrology test and calibration system, which may optionally include the pipe material, pipe diameter, wall thickness, heat transfer coefficient of the fluid in the pipe, heat transfer coefficient of the environment outside the pipe, thermal conductivity of the pipe, ambient temperature and diameter of the throttling element in the model, and complete the construction of the simplified flow model of the metrology test and calibration system.

[0079] In a preferred embodiment, it also includes: model calibration and correction based on the pressure and temperature data collected in the experiment, so as to control the error between the simulation calculation data and the experimental data within 5%, ensure the accuracy of the flow model calculation results of the measurement test calibration system, and provide a reliable basis for the subsequent calculation simulation of different operating parameters.

[0080] Step C1, according to the corresponding test parameters under the four flow patterns, the flow rate of the gas source inlet point, the flow rate of the water source inlet point, the pressure and temperature of the gas-liquid outflow point are respectively input into the software, and the multiphase flow simulation software is run to calculate the pressure of the gas source inlet point, the pressure of the water source inlet point, and the pressure after throttling of the throttling element on the first and third test pipelines by using the pipeline model and the throttling model;

[0081] Step C2, extracting the calculation results after the calculation is completed, the results include: the pressure at the air inlet point of the gas source, the pressure at the water inlet point of the water source, and the pressure after throttling of the throttling element on the first and third test pipelines;

[0082] Step C3, based on the extracted calculation results, the pressure data collected before the flow meter on the first test pipeline, before the flow meter on the third test pipeline, after the flow meter on the first test pipeline, and after the flow meter on the third test pipeline are respectively compared. If the error is controlled within 5%, it means that the calculation data of the flow model of the constructed measurement test calibration system is basically consistent with the data obtained in the test;

[0083] If the error exceeds 5%, the flow model of the measurement test calibration system needs to be corrected. The correction operation mainly adjusts the roughness of the inner wall of the tube, the heat transfer coefficient of the fluid in the tube, the heat transfer coefficient of the environment outside the tube, the thermal conductivity of the tube, the ambient temperature, and the friction coefficient between gas and liquid in the model;

[0084] Step C4, after the flow model of the metrological test calibration system is corrected, run the software again to calculate the parameters in step (2) and determine the error between the calculated data and the test data. If the error exceeds 5%, continue to correct the model. If the calculation results under the four flow patterns all have errors controlled within 5%, the model correction is completed.

[0085] Among them, the pressure drop and temperature drop in the pipeline model in the optional embodiment are calculated using the following equations:

[0086]

[0087] Where Q h It represents the heat dissipation from unit mass of fluid to the environment, kJ / kg; k represents the heat transfer coefficient, W / (m 2 ·℃); D represents the diameter of the pipeline, m; T represents the temperature of the pipeline fluid, ℃; T0 represents the ambient temperature, ℃; M represents the gas-liquid mass flow rate, kg / s; l represents the length of the pipeline, m;

[0088] In the differential equation for calculating pipeline pressure drop, p represents pipeline pressure, MPa; ρ represents density, kg / m 3 ; λ is the friction coefficient; v is the fluid velocity, m / s; g is the gravitational acceleration, m / s 2 ; h represents the pipeline elevation, m.

[0089] The pressure drop and temperature calculation equations in the throttling model,

[0090]

[0091] Where q represents the gas flow rate, 10 4 m 3 / d;p j , T j , Z j Respectively represent the pressure, temperature and compression coefficient at the inlet of the throttling element; p z , T z 、v z They represent the pressure, temperature and flow rate at the outlet of the throttling element respectively; k' represents the natural gas insulation coefficient; d represents the inner diameter of the pipeline, m; R represents the gas constant, 8.314 J / (mol·K); and γ represents the relative density of the gas.

[0092] This link of the embodiment of the present invention adopts the above-mentioned pressure difference flow type identification method, which can quickly make a preliminary judgment on the flow type without the need for repeated iterative calculations, thereby reducing the calculation workload and quickly identifying the flow type.

[0093] Based on this, the gas volume parameter range and liquid volume parameter range of the experimental input working condition designed according to the requirements are equally divided into values, the gas volume parameter range is equally divided into an even number of parts, for example, 2N equal parts, and the liquid volume parameter range is equally divided into M equal parts;

[0094] The limit values ​​of each gas volume parameter sub-range obtained based on equal division are respectively used as gas volume parameter values, the gas volume parameter remains unchanged, the liquid volume parameter is changed, and the pressure difference and flow pattern in the pressure difference monitoring pipe section under each gas volume parameter are calculated using the flow model of the metering test calibration system;

[0095] In actual application, while maintaining the gas volume Q gn Under the same conditions, the liquid volume changes from Q w1 , Q w2 ...Q wm Increase in sequence, simulate and calculate the pressure difference and flow pattern in the pressure difference monitoring pipe section 215 under different working conditions;

[0096] According to the calculated pressure difference and flow pattern, a parameter range of working condition for flow pattern transformation is selected, and the gas volume parameter sub-range is further split by dichotomy. The liquid volume parameter is changed based on the limit value of each gas volume parameter sub-range after splitting, and the pressure difference and flow pattern in the pressure difference monitoring pipe section under the corresponding gas volume parameter are calculated by using the flow model of the metering test calibration system;

[0097] Optionally, the gas volume value can be split by dichotomy, according to Q gn / 2 , Q g2n , Q g3n / 4 , Q gn / 4 , Qg5n / 4 , Q g7n / 4 ...sequence, simulate and calculate the liquid volume from Q to w1 , Q w2 ...Q wm Increase in sequence, simulate and calculate the pressure difference and flow pattern in the pressure difference monitoring pipe section 215 under different working conditions;

[0098] Simulate and calculate the liquid volume from Q to w1 , Q w2 ...Q wm The pressure difference and flow pattern in the pressure difference monitoring pipe section 215 under different working conditions are simulated and calculated.

[0099] Furthermore, according to the calculated pressure difference and flow pattern, the working condition parameters of the flow pattern transformation are selected, the liquid volume is split by binary division, the working conditions after the splitting are simulated, and under the condition of keeping the gas volume parameters unchanged, based on the limit values ​​of the liquid volume parameter range after each splitting, the flow model of the metering test calibration system is used to calculate the pressure difference and flow pattern in the pressure difference monitoring pipe section under the corresponding liquid volume parameters;

[0100] Determine whether the change value between the previous simulated pressure difference and the current simulated pressure difference in the pressure differential monitoring pipe section and the ratio of the previous simulated pressure difference meet the set requirements. If so, determine that the pressure difference value obtained under the current operating parameters is the critical pressure difference for flow pattern transition; if not, further use the binary division method to split the liquid volume, and under the condition of keeping the gas volume parameters unchanged, based on the limit values ​​of the liquid volume parameter range after each splitting, use the flow model of the metering test calibration system to calculate the pressure difference and flow pattern in the pressure differential monitoring pipe section under the corresponding liquid volume parameters, until the change value between the previous simulated pressure difference and the current simulated pressure difference in the pressure differential monitoring pipe section and the ratio of the previous simulated pressure difference meet the set requirements, and record the corresponding pressure difference value as the critical pressure difference for flow pattern transition.

[0101] In actual application, the operating condition parameters of the flow pattern transformation are first selected, the liquid volume is split by dichotomy, the operating conditions after splitting are simulated, the operating condition parameters of the flow pattern transformation after splitting are selected, the liquid volume is split by dichotomy again, and the operating conditions after the simulation of splitting are refined; until the ratio of the change value of the previous simulated pressure difference and the current simulated pressure difference in the pressure differential monitoring pipe section to the previous simulated pressure difference is less than 0.1, then the pressure difference value at this operating point is determined to be the effective critical pressure difference for flow pattern transformation and is recorded.

[0102] In a preferred embodiment, since the subsequent process needs to test the parameters related to metering by changing the operating conditions based on the actual test system, in advance in the flow type condition setting step, the flow type discrimination conditions of the multiphase flow in the horizontal pipe section are used to determine the range of gas-liquid flow conditions in the metering pipe section under four test flow types: stratified flow, bubbly flow, annular mist flow, and plug flow. Among them, the number and types of test flow types can be set according to the needs of actual engineering applications.

[0103] Next, execute the gas-liquid metering test steps, use the set metering test calibration system, carry out metering tests under different flow types according to the flow type working condition list, and record the dynamic test data during the test.

[0104] In an optional embodiment, in the gas-liquid metering test step, the differential pressure flowmeter is connected to the gas-liquid two-phase metering test calibration system. Based on this, the gas-liquid two-phase metering test calibration system includes a vortex flowmeter for testing single-phase gas flow, a pressure sensor for testing pressure, a temperature sensor for testing temperature, and a current flowmeter for testing liquid phase flow.

[0105] The gas-liquid two-phase metering test calibration system includes an air compressor 101, an air storage tank 102, a liquid storage tank 104, a test pipeline, a gas-liquid mixer 106, a sensing component, a temperature control component 216, a gas-liquid separator 301, a test data transmission system, and a data processing and controller 404; the test pipeline includes a first test pipeline 201, a second test pipeline 202 and a third test pipeline 203.

[0106] The first test pipeline and the second test pipeline are connected to the third test pipeline through a gas-liquid mixer;

[0107] The air compressor 101 is connected to the first test pipeline 201 through a gas phase pipeline 107, and a gas storage tank 102 is provided on the gas phase pipeline 107;

[0108] The first test pipeline 201 is provided with a first pressure sensor 211, a first temperature sensor 212, a vortex flowmeter 241, a second pressure sensor 213, and a test reserved section 214 in sequence;

[0109] The liquid storage tank 104 is connected to the second test pipeline 202 through the liquid phase pipeline 108, and the second test pipeline 202 is provided with an electromagnetic flowmeter 243 and a fifth pressure sensor 217;

[0110] The first test pipeline 201 and the second test pipeline 202 are connected to the third test pipeline 203 via the gas-liquid mixer 106;

[0111] The third test pipeline 203 is provided with a third pressure sensor 221, a second temperature sensor 222, a second flow meter 242, a fourth pressure sensor 223, and a gas-liquid separator 301 in sequence; the second flow meter is a differential pressure flow meter.

[0112] A differential pressure monitoring pipe section is provided in front of the third pressure sensor. The differential pressure monitoring pipe section is provided with a differential pressure sensor. The differential pressure sensor is connected to a data processing and control system.

[0113] The third test pipeline is connected to the gas-liquid separator through a test pipeline.

[0114] The data processing and controller 404 is connected to the sensing component and the temperature control component 216 via the test data transmission system 401 .

[0115] The system further includes a gas phase vent pipe 302 , which is connected to the top of the gas-liquid separator 301 .

[0116] The liquid storage tank 104 is connected to the bottom of the gas-liquid separator 301 through a liquid phase reflux pipe 303. Figure 3 shown.

[0117] The length of the test reserved section 214 is the same as that of the third test pipeline, and the position of the test reserved section can be exchanged with that of the third test pipeline.

[0118] The first pressure sensor 211, the first temperature sensor 212, the precession vortex flowmeter 241, and the second pressure sensor 213 are connected to the controller 404 via the first test data transmission system 401 and the data processing system 404.

[0119] In actual application, the first test data transmission system 401 obtains the real-time monitoring pressure data of the first test pipeline 201 through the first pressure sensor 211 and the second pressure sensor 213, collects the real-time monitoring temperature of the first test pipeline 201 through the first temperature sensor 212, and obtains the real-time monitoring gas flow of the first test pipeline 201 through the vortex flowmeter 241.

[0120] The electromagnetic flowmeter 243 is connected to the data processing and controller 404 through the second test data transmission system 402. Based on this, the second test data transmission system 402 transmits the monitoring liquid phase flow of the second test pipeline 202 through the electromagnetic flowmeter 243.

[0121] The third pressure sensor 221, the second temperature sensor 222, the differential pressure flowmeter 242, and the fourth pressure sensor 223 are connected to the data processing and controller 404 through the third test data transmission system 403. Based on this, the third test data transmission system 403 transmits the monitoring pressure of the third test pipeline 203 through the third pressure sensor 221 and the fourth pressure sensor 223, transmits the monitoring temperature of the third test pipeline 203 through the second temperature sensor 222, and transmits the monitoring gas phase flow of the third test pipeline 203 through the differential pressure flowmeter 242.

[0122] Preferably, in one embodiment, a flow regulating valve 103 , a first pressure regulating valve 206 and a first stop valve 204 are sequentially provided on the gas phase pipeline 107 ; the flow regulating valve 103 is connected to the output gas path of the gas storage tank 102 .

[0123] In actual application, the pressure of the gas entering the first test pipeline 201 is controlled by adjusting the first pressure regulating valve 206, and the flow rate of the gas entering the first test pipeline 201 is controlled by adjusting the flow regulating valve 103;

[0124] The liquid phase pipeline 108 is provided with a booster pump 105 , a second pressure regulating valve 207 and a second stop valve 205 in sequence.

[0125] Control the pressure of water entering the second test pipe 202 by adjusting the second pressure regulating valve 207;

[0126] The third test pipeline is provided with a differential pressure monitoring pipe section 215 in front of the third pressure sensor, and the length of the pipe section is more than 0.5 m.

[0127] A differential pressure sensor 218 is provided in the differential pressure monitoring pipe section, which is connected to the data processing and control system. The starting point and the end point of the differential pressure monitoring pipe section are the pressure taking points of the differential pressure sensor. Pressure taking points are set at four positions of 0°, 90°, 180°, and 270° on the same section of the test pipeline (1, 2, 3, or 4 positions can be selected from the four positions as pressure taking points).

[0128] The test reserved section provided in the embodiment of the present invention can be used to calibrate a natural gas single-phase metering flow meter and a gas-liquid two-phase flow meter;

[0129] (1) The exchange test reserved section 214 and the third test pipeline position can be used to calibrate the natural gas single-phase metering flow meter. The following formula is used to fit and calculate the corrected actual flow rate Q of the single-phase flow meter to be calibrated. gs , the flowmeters on the first test pipeline and the third test pipeline may be different, and may be orifice flowmeter, swirl flowmeter, V-cone flowmeter, or conical orifice flowmeter;

[0130]

[0131] (2) The test reserved section 214 and the third test pipeline are not exchanged, and can be used to calibrate the gas-liquid two-phase flowmeter. The flowmeters on the first test pipeline and the third test pipeline can be of the same or different models and types. In actual application, orifice flowmeters, swirl flowmeters, V-cone flowmeters, and conical orifice flowmeters can be used.

[0132] In an optional embodiment, the temperature control assembly includes a heating element and a thermal insulation sleeve;

[0133] The heating element is spirally wound around the pipe along the pipe wall and is encapsulated on the pipe by a thermal insulation sleeve;

[0134] The heating element adopts a temperature-controllable electric heating wrapping belt, and the insulation pipe sleeves that can be used include: polyurethane foam insulation pipe sleeves, rubber-plastic insulation pipe sleeves and glass wool insulation pipe sleeves.

[0135] Furthermore, in a preferred embodiment, the third pressure sensor 221 sets one or more pressure points at different positions on the same cross section of the test pipeline, and the pressure points of the second temperature sensor 222 and the fourth pressure sensor 223 are set in the same manner as the third pressure sensor 221.

[0136] In an optional embodiment, the third pressure sensor (221) sets pressure points at four positions of 0°, 90°, 180°, and 270° on the same cross-section of the test pipeline (one, two, three, or four of the four positions can be selected as pressure points).

[0137] The first pressure sensor 211, the first temperature sensor 212, the first flow meter 241, and the second pressure sensor 213 are connected to the data processing and controller 404 through the first test data transmission system 401. In actual application, the first test data transmission system 401 obtains the real-time monitoring pressure data of the first test pipeline 201 through the first pressure sensor 211 and the second pressure sensor 213, collects the real-time monitoring temperature of the first test pipeline 201 through the first temperature sensor 212, and obtains the real-time monitoring gas phase flow of the first test pipeline 201 through the first flow meter 241.

[0138] The data processing and controller is connected to the second pressure regulating valve via the test data transmission system. The data processing and controller compares the pressures transmitted by the first pressure sensor and the fifth pressure sensor tests, controls the opening size of the second pressure regulating valve, and finally achieves the test pressure of the first pressure sensor being equal to the test pressure of the fifth pressure sensor.

[0139] Setting up a test reserved section in the gas-liquid metering test and calibration system can realize flexible calibration of natural gas single-phase metering flowmeters and gas-liquid two-phase flowmeters, and automatically realize precise temperature and pressure regulation control by real-time monitoring of temperature control data and pressure status in the pipeline through data processing and controller.

[0140] In actual application, the gas-liquid metering test and calibration system is used to perform experiments and obtain test data. The specific experimental process includes the following operations:

[0141] S11, start the air compressor 101, fully open the first pressure regulating valve 206, then open the flow regulating valve 103 and the first stop valve 204 in sequence, after the gas is pressurized by the first pressure regulating valve, the gas passes through the first test pipeline 201 and enters the third test pipeline 203.

[0142] S12, open the second stop valve 205, fully open the second pressure regulating valve 207, start the booster pump 105, and the water in the liquid storage tank 104 is pressurized by the booster pump and then enters the third test pipeline 203 through the second test pipeline 202.

[0143] S13, the gas from the first test pipeline 201 and the water from the second test pipeline 202 are mixed in the gas-liquid mixer 106 and enter the third test pipeline 203 for metering test, and are separated in the gas-liquid separator 301 after the test; during the experiment, the gas separated by the gas-liquid separator 301 is discharged through the gas phase vent pipe 302, and the water enters the liquid storage tank 104 through the liquid phase reflux pipe 303 for recycling.

[0144] S14, the vortex flowmeter 241 measures the single-phase gas flow entering the first test pipeline 201, the electromagnetic flowmeter 243 measures the liquid phase flow entering the second test pipeline 202, and the differential pressure flowmeter 242 measures the wet gas flow entering the third test pipeline 203; during the experiment, the flow and pressure are adjusted to complete the metering test experiment simulating different working conditions.

[0145] S15, the first test data transmission system 401, the second test data transmission system 402, and the third test data transmission system 403 transmit the collected flow, pressure, and temperature data to the data processing and controller 404 respectively.

[0146] In actual application, based on the above two-phase metering test and calibration system, metering tests under four flow types are carried out respectively, and the test data are transmitted to the preset data processing system.

[0147] Next, the metering model determination step is executed. After the optimal virtual height ratio corresponding to different flow types is calculated using the optimal virtual height operation model, the gas phase metering model of different flow types is determined based on the flow data, and the gas phase metering model of different flow types is further established based on the gas phase flow rate and Lockheed Martin parameters.

[0148] In an optional embodiment, the parameter operation model establishment step includes:

[0149] The Lockheed Martin parameter model determination step includes: calculating the gas phase density according to the dynamic test data of the metrological test, and then determining the Lockheed Martin parameter operation model based on the gas phase density and the associated flow data;

[0150] Steps for determining the virtual height model: Calculate the virtual height ratio based on the dynamic test data of the gas phase flow rate, and establish the optimal virtual height calculation model under different flow types based on the virtual height ratio and Lockheed Martin parameter fitting.

[0151] The Lockheed Martin parameter model determination step includes the following operations:

[0152] Gas phase density determination steps: Calculate gas phase density based on measured single-phase gas flow, pressure, temperature and liquid phase flow data;

[0153] Initial Lockheed Martin parameter calculation steps: Calculate the initial Lockheed Martin parameters based on the gas flow rate, the liquid flow rate and the gas phase density as the gas phase Lockheed Martin parameters;

[0154] The steps of determining the optimized Lockheed Martin parameters are as follows: the Lockheed Martin parameter relationship is obtained by fitting the pressure test data and the obtained initial Lockheed Martin parameter values; and then the optimized Lockheed Martin parameter operation model under different flow types is determined according to the initial Lockheed Martin parameters and the parameter relationship to calculate the liquid phase Lockheed Martin parameters.

[0155] Among them, in the gas phase density determination step, the process of calculating the initial Lockheed Martin parameters based on the gas flow rate, liquid flow rate and gas phase density includes: testing the single-phase gas flow rate Q according to the vortex flowmeter g , the first pressure sensor tests the pressure, the first temperature sensor tests the temperature and the electromagnetic flowmeter tests the liquid phase flow Q l Calculate the gas phase density ρ g ; Then calculate the Lockheed Martin parameter X as follows:

[0156]

[0157] In the formula, Q g It is a vortex flowmeter that tests single-phase gas flow, Q l is the electromagnetic flowmeter testing liquid flow rate, ρ l , g are the densities of the liquid and gas phases, respectively.

[0158] Further, in an optional embodiment, in the step of optimizing the Lockheed Martin parameter determination, the Lockheed Martin parameter X relationship is fitted according to the following formula:

[0159]

[0160]

[0161] In the formula, △p1 is the difference between the pressure at point a and point b of the test pipe section, △p2 is the difference between the pressure at point b and point c of the test pipe section, and A, B, and C are fitting coefficients.

[0162] During the calculation process, the formula form of the Lockheed Martin parameter X in formula (2) and formula (3) is the same, but different coefficients A1 and A2 are used respectively because the values ​​of the variable x considered in the formula fitting are different. Formula (2) is the relationship between the throttling pressure difference Δp1 between the throttling device inside the flow meter before throttling and the throttling device throat, and the throttling pressure difference Δp2 between the throttling device throat and after throttling, the ratio of the two pressure differences and the Lockheed Martin parameter. Formula (3) is the relationship between the difference of the two pressure differences and the ratio of the throttling pressure difference between the throttling device throat and after throttling and the Lockheed Martin parameter.

[0163] At present, some scholars have proposed a linear relationship between the ratio of the two pressure differences and the Lockheed Martin parameter as shown in the following formula (a), and a linear relationship between the difference of the two pressure differences and the ratio of the throttling pressure difference between the throat of the throttling device and the throttling pressure difference after throttling and the Lockheed Martin parameter as shown in formula (b). However, in flow states such as slug flow and bubbly flow, the pressure difference ratio and the Lockheed Martin parameter are no longer linearly related, resulting in inaccurate calculation of the Lockheed Martin parameter X, making it impossible to accurately calculate the liquid phase flow rate in the two-phase flow, resulting in large errors in the gas and liquid phase flow rates measured by the flowmeter.

[0164]

[0165]

[0166] To this end, taking into account the complexity of flow conditions, the relationship between the pressure difference ratio and the Lockheed Martin parameter polynomial is proposed on the basis of existing research. At the same time, the two relationships are applicable to different working conditions, which reduces the problem of large errors and poor adaptability to working conditions caused by using one formula for calculation. The Lockheed Martin parameter Xi' model is used to calculate the Lockheed Martin parameters, and the calculation results can adapt to any flow type under different working conditions.

[0167] In a preferred embodiment, the distance from the test pipe section point a to the throat is set to be D (1 times the pipe diameter) or more, the test pipe section point b is in the middle of the throat, and the distance from the test pipe section point c to the throat is 2D or more. Figure 4 As shown;.

[0168] According to the test data and the initial Lockheed Martin parameter X calculated by formula (1), the Lockheed Martin parameter X relationship is fitted according to formula (2) and formula (3).

[0169] Furthermore, in one embodiment, in the step of determining the optimized Lockheed Martin parameters, according to the Lockheed Martin parameter X calculated by formula (1), the optimized Lockheed Martin parameter operation model under different flow patterns is determined as follows:

[0170] min(X' i -X) 2

[0171]

[0172] Where m1 and m2 are weight coefficients; X i ' is the calculated value of Lockheed Martin parameters under the required flow pattern, i = 1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow, respectively, X is the initial Lockheed Martin parameter, A, B, C are fitting coefficients.

[0173] Furthermore, the virtual height model is determined through the following steps: the virtual height ratio is calculated according to the dynamic test data, and the optimal virtual height calculation model under different flow types is established according to the virtual height ratio and Lockheed Martin parameter fitting.

[0174] In a preferred embodiment, in the step of determining the virtual high ratio, the virtual high ratio is calculated based on the single-phase gas flow rate and the gas flow rate test data; in actual application, the single-phase gas flow rate Q is tested by the vortex flowmeter. g , Differential pressure flowmeter test gas flow Q g ', calculate the virtual height ratio Φ according to the following formula:

[0175]

[0176] Furthermore, according to the virtual height ratio Φ and the Lockheed Martin parameter X calculated by formula (1), the relationship between the virtual height ratio Φ and the Lockheed Martin parameter X is fitted according to formula (6) and formula (7) respectively. In actual application, the relationship between the virtual height ratio and the Lockheed Martin parameter is fitted according to the following formula:

[0177] Φ1=D1+E1·X (6)

[0178]

[0179] Where Φ is the false height ratio, X is the Lockheed Martin parameter, D1, E1, E2, n1, n2 are fitting coefficients, ρ l , g are the densities of the liquid and gas phases, respectively.

[0180] Furthermore, in an optional embodiment, the following formula (8) is used to fit the optimal virtual height model according to the test parameters under different flow patterns:

[0181]

[0182]

[0183] In the formula, Q g * It is based on the differential pressure flowmeter test flow Q g 'Compute with virtual high ratio, Q g It is a vortex flowmeter that tests single-phase gas flow. iIt is the ratio of virtual height under different flow types. When i=1, 2, 3, and 4, they represent stratified flow, bubbly flow, annular mist flow, and slug flow respectively. k1 and k2 are the virtual height weight coefficients.

[0184] Next, the metering model determination step is performed. After the optimal virtual height ratio corresponding to different flow types is calculated using the optimal virtual height operation model, the gas phase metering model of different flow types is determined based on the flow data. Further, the gas phase metering model of different flow types is established based on the gas phase flow rate and Lockheed Martin parameters; they are used to calculate the gas phase flow data and liquid phase flow data respectively.

[0185] In the embodiment of the present invention, the gas phase flow rate is calculated according to the following formula based on the optimal virtual height ratio under different flow patterns. Specifically, in the optional embodiment, in the metering model determination step, the gas phase metering model is established as follows:

[0186]

[0187] in,

[0188] In the formula, is the gas phase flow rate, Q' g is the gas flow rate tested by the differential pressure flowmeter, Φ i The optimal virtual height ratio under the flow pattern corresponding to number i, C u is the outflow coefficient of the flowmeter, β is the throttling ratio of the flowmeter, D is the diameter of the pipe section before the throttling of the flowmeter, ρ g is the gas phase density and ε is the dimensionless gas phase expansion coefficient.

[0189] Further, the liquid flow rate is calculated based on the gas phase flow rate data and the optimized Lockheed Martin parameters under different flow patterns. In an optional embodiment, in the metering model determination step, a liquid phase metering model described in the following formula is established based on the gas phase flow rate and the optimized Lockheed Martin parameters:

[0190]

[0191] In the formula, Q l is the liquid phase flow rate value, X i ' is the calculated optimal Lockheed Martin parameter for the flow pattern corresponding to number i, is the gas phase flow rate corresponding to the flow pattern, ρ l is the liquid density, ρ g is the gas phase density.

[0192] Furthermore, when the project site has a gas or liquid phase metering requirement, the following metering calculation steps can be performed:

[0193] The on-site initial flow pattern is determined based on the on-site pressure difference data and flow pattern discrimination condition data. After the on-site gas phase density is calculated based on the on-site initial flow pattern and test data, the on-site two-phase Lockheed Martin parameters are calculated using the Lockheed Martin parameter calculation model. Then, the optimal virtual height ratio of the on-site is determined using the optimal virtual height calculation model, and then substituted into the gas phase metering model and the liquid phase metering model to determine the gas phase flow rate and liquid phase flow rate that match the flow pattern.

[0194] The two-phase metering calculation method based on flow type discrimination of the embodiment of the present invention is adopted to build a two-phase metering model based on the flow type discrimination basis and dynamic test data to realize the accurate calculation of gas phase and liquid phase flow rate. When applied, the operation is simple, the calculation speed is fast, and the accuracy of the calculation result can be improved.

[0195] In order to improve the matching of the two-phase flow rate with the actual situation and avoid the deviation of the two-phase flow rate calculation results due to inaccurate flow type application, the present invention further provides a set solution method based on the two-phase metering model from the perspective of flow type discrimination. In a preferred embodiment, the optimization solution step is performed: the actual flow type of the application pipe section is identified based on the calculation result of the two-phase metering model. If the actual flow type is consistent with the current calculated flow type, the current metering calculation result is used as the actual two-phase flow result; otherwise, the Loma parameters and the virtual height ratio are recalculated based on the actual flow type using the parameter calculation model, and then substituted into the gas phase metering model and liquid phase metering model corresponding to the actual flow type to calculate and determine the target actual two-phase flow rate matching the flow type.

[0196] Furthermore, in a preferred embodiment, the present invention further verifies the identified flow pattern, and in the optimization solution step, includes:

[0197] After substituting the preset flow pattern into the two-phase metering model to solve the two-phase flow, the actual flow pattern in the test pipe section is judged according to the solved gas-liquid flow and the pressure of the test pipe section to determine whether the actual flow pattern is consistent with the preset flow pattern in the calculation. If they are consistent, the two-phase flow data calculated based on the preset flow pattern is used as the final result; if they are inconsistent, the corresponding gas phase metering model and liquid phase metering model are used based on the actual flow pattern to calculate and determine the final two-phase flow.

[0198] In practical application, the optimization solution of the two-phase metering model can be realized through the following operations:

[0199] S1. Calculate the calculated value Q' of the virtual high gas phase flow rate of the metering pipe section according to formula (10) g ;

[0200]

[0201] S2, solve the two-phase metering model and determine the actual flow pattern of the measuring pipe section;

[0202] S21, according to the differential pressure data measured by the differential pressure sensor, based on the critical differential pressure information of the flow pattern transition in the flow pattern discrimination condition data, determine the flow pattern of the monitoring pipe section corresponding to the differential pressure, and assume that the flow pattern of the metering pipe section is consistent with the flow pattern of the pipe section;

[0203] S22. According to the flow pattern of the metering pipe section, calculate the Lockheed Martin parameter X as follows: i ' and virtual height ratio Φ i ;

[0204]

[0205]

[0206] Where m1 and m2 are weight coefficients; X i ' is the calculated value of the Lockheed Martin parameter under flow pattern i, Φ i is the virtual height ratio under flow type i, k1 and k2 are virtual height weight coefficients, i represents different flow types, i=1 represents stratified flow, i=2 represents bubbly flow, i=3 represents annular mist flow, and i=4 represents slug flow; among them, Φ1 and Φ2 are intermediate operation vectors of the virtual height ratio, and the formula forms of Φ1 and Φ2 are different. The variable X here is the calculated value using the optimized Lockheed Martin parameter operation model.

[0207] S23, calculate the gas phase flow rate Q after the virtual high ratio correction according to the following formula g * ;

[0208]

[0209] S24. According to the corrected gas flow rate, calculate the liquid phase flow rate Q in the test pipe section according to the following formula l ;

[0210]

[0211] S25, according to the gas-liquid flow rate and the test pipe section pressure calculated in steps S24 and S25, the flow pattern i' in the pipe under the test pipe section pressure is determined by using the Tettel flow pattern identification method;

[0212] S26. Determine whether the flow pattern i' is consistent with the flow pattern i. If so, the gas phase flow rate tested by the differential pressure flowmeter is Q g * , the liquid flow rate is Q l , otherwise if they are inconsistent, go to step S3;

[0213] S3, replace flow type i with flow type i', Q g * Replace Q g', return to step S22, and recalculate the gas phase flow rate result and the liquid phase flow rate result of the test pipe section based on the two-phase metering module corresponding to the flow type i'.

[0214] The embodiment of the present invention first adopts a method for preliminarily distinguishing flow types based on test data using a pressure difference, and then adopts another Tettel flow type distinguishing method for subsequent precise verification of the flow direction. The flow type can be quickly and preliminarily judged in the early stage, and the Tettel flow type distinguishing method is subsequently used for accurate flow type distinguishing, which can quickly identify the flow type and significantly improve the accuracy of the calculation results.

[0215] For the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0216] It should be pointed out that in other embodiments of the present invention, the method can also obtain a new two-phase metering operation method based on flow type discrimination by combining one or several of the above embodiments to achieve accurate optimization of engineering gas and liquid metering technology.

[0217] It should be noted that, based on the method in any one or more of the above-mentioned embodiments of the present invention, the present invention also provides a storage medium, on which is stored a program code that can implement the method as described in any one or more of the above-mentioned embodiments, and when the code is executed by the operating system, it can implement the two-phase metering operation method based on flow type discrimination as described above.

[0218] Embodiment 2

[0219] The method is described in detail in the embodiments disclosed in the above invention. The method of the present invention can be implemented by various devices or systems. Therefore, based on other aspects of the method described in any one or more embodiments, the present invention also provides a two-phase metering operation system based on flow type discrimination, which is used to execute the two-phase metering operation method based on flow type discrimination described in any one or more embodiments. Specific embodiments are given below for detailed description.

[0220] Specifically, Figure 5 FIG. 4 shows a schematic diagram of the structure of a two-phase metering operation system based on flow pattern discrimination provided in an embodiment of the present invention. Figure 5 As shown, the system includes:

[0221] A gas-liquid metering test module, which is configured to use a set metering test calibration system to carry out metering tests under different flow patterns according to a preset flow pattern working condition list, and record dynamic test data during the test process;

[0222] A parameter operation model establishment module, which is configured to determine the Lockheed Martin parameter operation model and the optimal virtual height operation model corresponding to different flow types based on the dynamic test data and the associated flow data fitting;

[0223] A metering model determination module is configured to use an optimal virtual height calculation model to calculate the optimal virtual height ratio corresponding to different flow types, determine the gas phase metering model of different flow types based on the optimal virtual height calculation model combined with flow data, and further establish the gas phase metering model of different flow types based on the gas phase flow rate and Lockheed Martin parameters;

[0224] The metering operation module is configured to calculate the on-site gas phase density according to the on-site preset flow pattern and test data, calculate the on-site Lockheed Martin parameters using the Lockheed Martin parameter operation model, and then use the optimal virtual height operation model to determine the on-site optimal virtual height ratio, and then substitute it into the gas phase metering model and the liquid phase metering model;

[0225] The optimization solution module is configured to identify the actual flow pattern of the application pipe section based on the calculation results of the two-phase metering model. If the actual flow pattern is consistent with the current calculated flow pattern, the current metering calculation result is used as the actual two-phase flow result; otherwise, the Loma parameters and the virtual height ratio are recalculated based on the actual flow pattern using the parameter calculation model, and then substituted into the gas phase metering model and liquid phase metering model corresponding to the actual flow pattern to calculate and determine the target actual gas phase flow rate and liquid phase flow rate that match the flow pattern.

[0226] In a preferred embodiment, the metering test calibration system applied by the gas-liquid metering test module adopts a gas-liquid two-phase metering test calibration system, including an air compressor, an air storage tank, a liquid storage tank, a test pipeline, a temperature control component, a gas-liquid mixer, a sensing component, a gas-liquid separator, a test data transmission system, and a data processing and controller; the test pipeline includes a first test pipeline, a second test pipeline, and a third test pipeline;

[0227] The first test pipeline and the second test pipeline are connected to the third test pipeline through a gas-liquid mixer; and the differential pressure flowmeter is arranged on the third test pipeline.

[0228] Furthermore, in one embodiment, the parameter operation model building module is configured to perform the following operations:

[0229] The Lockheed Martin parameter model determination step includes: calculating the gas phase density according to the dynamic test data of the metrological test, and then determining the Lockheed Martin parameter operation model based on the gas phase density and the associated flow data;

[0230] The steps of determining the virtual height model are as follows: the virtual height ratio is calculated according to the dynamic test data of the gas phase flow rate, and the optimal virtual height calculation model under different flow patterns is established according to the virtual height ratio and Lockheed Martin parameter fitting;

[0231] In an optional embodiment, the Lockheed Martin parameter determination module is configured to perform the following operations:

[0232] Gas phase density determination steps: Calculate gas phase density based on measured single-phase gas flow, pressure, temperature and liquid phase flow data;

[0233] Initial Lockheed Martin parameter calculation steps: Calculate the initial Lockheed Martin parameters based on the gas flow rate, the liquid flow rate and the gas phase density as the gas phase Lockheed Martin parameters;

[0234] The steps of determining the optimized Lockheed Martin parameters are as follows: the Lockheed Martin parameter relationship is obtained by fitting the pressure test data and the obtained initial Lockheed Martin parameter values; and then the optimized Lockheed Martin parameter operation model under different flow types is determined according to the initial Lockheed Martin parameters and the parameter relationship to calculate the liquid phase Lockheed Martin parameters.

[0235] Furthermore, in one embodiment, the optimized Lockheed Martin parameter determination module determines the optimized Lockheed Martin parameter calculation model under different flow patterns according to the following formula:

[0236] min(X' i -X) 2

[0237]

[0238] Where m1 and m2 are weight coefficients; X i ' is the calculated value of Lockheed Martin parameters under the required flow pattern, i = 1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow, respectively, X is the initial Lockheed Martin parameter, A, B, C are fitting coefficients.

[0239] Optionally, in one embodiment, the virtual high ratio determination module calculates the virtual high ratio according to the single-phase gas flow and the gas flow test data; and fits the virtual high ratio to the Lockheed Martin parameter relationship according to the following formula:

[0240] Φ=D1+E1·X

[0241]

[0242] Where Φ is the false height ratio, X is the Lockheed Martin parameter, D1, E1, E2, n1, n2 are fitting coefficients, ρ l , g are the densities of the liquid and gas phases, respectively.

[0243] In a preferred embodiment, the virtual height ratio determination module is configured to establish an optimal virtual height calculation model as described in the following formula:

[0244]

[0245]

[0246] In the formula, Q g * It is based on the differential pressure flowmeter test flow Q g 'Compute with virtual high ratio, Q g It is a vortex flowmeter that tests single-phase gas flow. i It is the ratio of virtual height under different flow types, i=1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow respectively, and k1 and k2 are the virtual height weight coefficients.

[0247] Furthermore, in one embodiment, the optimization solution module is configured as follows: after substituting the preset flow pattern into the two-phase metering model to solve the two-phase flow, the actual flow pattern in the test pipe section is judged according to the solved gas-liquid flow and the pressure of the test pipe section, and whether the actual flow pattern is consistent with the preset flow pattern in the calculation is judged. If they are consistent, the two-phase flow data calculated based on the preset flow pattern is used as the final result; if they are inconsistent, the final two-phase flow is calculated and determined based on the actual flow pattern using the corresponding gas phase metering model and liquid phase metering model.

[0248] In the two-phase metering operation system based on flow type discrimination provided by the embodiment of the present invention, each module or unit structure can operate independently or in combination according to the actual flow type setting requirements and data operation requirements to achieve corresponding technical effects.

[0249] It should be understood that the embodiments disclosed in the present invention are not limited to the specific structures, processing steps or materials disclosed herein, but should be extended to equivalent substitutions of these features understood by ordinary technicians in the relevant field. It should also be understood that the terms used herein are only used for the purpose of describing specific embodiments and are not meant to be limiting.

[0250] The "one embodiment" mentioned in the specification means that a particular feature, structure or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. Therefore, the phrase "one embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment.

[0251] Although the embodiments disclosed in the present invention are as above, the above contents are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.

Claims

1. A two-phase metering calculation method based on flow pattern discrimination, characterized in that: The method comprises: Gas-liquid metering test steps: Use the set metering test calibration system to carry out metering tests under different flow patterns according to the preset flow pattern working condition list, and record the dynamic test data during the test; Parameter operation model establishment step: based on the dynamic test data and the associated flow data, determine the Lockheed Martin parameter operation model and the optimal virtual height operation model corresponding to different flow types; Metering model determination step: after using the optimal virtual height calculation model to calculate the optimal virtual height ratio corresponding to different flow types, determine the gas phase metering model of different flow types based on the combined flow data, and further establish the gas phase metering model of different flow types based on the gas phase flow rate and Lockheed Martin parameters; Metering calculation steps: After calculating the on-site gas phase density according to the on-site preset flow pattern and test data, the on-site Lockheed Martin parameter calculation model is used to calculate the on-site Lockheed Martin parameters, and then the optimal virtual height ratio of the on-site is determined by the optimal virtual height calculation model, and then substituted into the gas phase metering model and the liquid phase metering model; Optimization solution steps: Identify the actual flow pattern of the application pipe section based on the calculation results of the two-phase metering model. If the actual flow pattern is consistent with the current calculated flow pattern, the current metering calculation result will be used as the actual two-phase flow result; otherwise, recalculate the Loma parameters and virtual height ratio based on the actual flow pattern using the parameter calculation model, and then substitute them into the gas phase metering model and liquid phase metering model corresponding to the actual flow pattern to calculate and determine the target actual gas phase flow rate and liquid phase flow rate that match the flow pattern.

2. The method according to claim 1, characterized in that In the gas-liquid metering test step, the metering test calibration system adopts a gas-liquid two-phase metering test calibration system, including an air compressor, an air storage tank, a liquid storage tank, a test pipeline, a temperature control component, a gas-liquid mixer, a sensing component, a gas-liquid separator, a test data transmission system, and a data processing and controller; the test pipeline includes a first test pipeline, a second test pipeline, and a third test pipeline; The first test pipeline and the second test pipeline are connected to the third test pipeline through a gas-liquid mixer; and the differential pressure flowmeter is arranged on the third test pipeline.

3. The method according to claim 1, characterized in that The parameter operation model establishment step comprises: The Lockheed Martin parameter model determination step includes: calculating the gas phase density according to the dynamic test data of the metrological test, and then determining the Lockheed Martin parameter operation model based on the gas phase density and the associated flow data; Steps for determining the virtual height model: Calculate the virtual height ratio based on the dynamic test data of the gas phase flow rate, and establish the optimal virtual height calculation model under different flow types based on the virtual height ratio and Lockheed Martin parameter fitting.

4. The method according to claim 1, characterized in that: The Lockheed Martin parameter determination steps include the following operations: Gas phase density determination steps: Calculate gas phase density based on measured single-phase gas flow, pressure, temperature and liquid phase flow data; Initial Lockheed Martin parameter calculation steps: Calculate the initial Lockheed Martin parameters based on the gas flow rate, the liquid flow rate and the gas phase density as the gas phase Lockheed Martin parameters; The steps of determining the optimized Lockheed Martin parameters are as follows: the Lockheed Martin parameter relationship is obtained by fitting the pressure test data and the obtained initial Lockheed Martin parameter values; and then the optimized Lockheed Martin parameter operation model under different flow types is determined according to the initial Lockheed Martin parameters and the parameter relationship to calculate the liquid phase Lockheed Martin parameters.

5. The method according to claim 1, characterized in that In the step of optimizing the Lockheed Martin parameters, the optimized Lockheed Martin parameter calculation model under different flow patterns is determined according to the following formula: min(X′ i -X) 2 Where m1 and m2 are weight coefficients; X i ' is the calculated value of Lockheed Martin parameters under the required flow pattern, i = 1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow, respectively, X is the initial Lockheed Martin parameter, A, B, C are fitting coefficients.

6. The method according to claim 1, characterized in that In the step of determining the virtual high ratio, the virtual high ratio is calculated according to the single-phase gas flow rate and the gas flow rate test data; the virtual high ratio and the Lockheed Martin parameter relationship are fitted according to the following formula: Φ=D1+E1·X Where Φ is the false height ratio, X is the Lockheed Martin parameter, D1, E1, E2, n1, n2 are fitting coefficients, ρ l , g are the densities of the liquid and gas phases, respectively.

7. The method according to claim 1, characterized in that The optimal virtual height calculation model described in the following formula is established: In the formula, Q g * It is based on the differential pressure flowmeter test flow Q g 'Compute with virtual high ratio, Q g It is a vortex flowmeter that tests single-phase gas flow. i It is the ratio of virtual height under different flow types, i=1, 2, 3, 4, representing stratified flow, bubbly flow, annular mist flow, and slug flow respectively, and k1 and k2 are the virtual height weight coefficients.

8. The method according to claim 1, characterized in that The optimization solution step includes: After substituting the preset flow pattern into the two-phase metering model to solve the two-phase flow, the actual flow pattern in the test pipe section is judged according to the solved gas-liquid flow and the pressure of the test pipe section to determine whether the actual flow pattern is consistent with the preset flow pattern in the calculation. If they are consistent, the two-phase flow data calculated based on the preset flow pattern is used as the final result; if they are inconsistent, the corresponding gas phase metering model and liquid phase metering model are used based on the actual flow pattern to calculate and determine the final two-phase flow.

9. A storage medium, characterized in that: The storage medium stores program codes that can implement the method as claimed in any one of claims 1 to 8.

10. A two-phase metering operation system based on flow pattern discrimination, characterized in that: The system executes the method according to any one of claims 1 to 8.