System and method for dynamic tracking and real-time calculation of natural gas components in natural gas pipeline network

By using the data acquisition and monitoring system and online transient simulation software in the natural gas pipeline network, combined with the component mass conservation linear formula and the hydraulic simulation module, the problem of calculating the dynamic changes of components in the long-distance natural gas pipeline network is solved, and the natural gas Accurate tracking and real-time calculation of components meet the needs of multi-gas source mixing and energy measurement.

CN113239645BActive Publication Date: 2024-10-18CNOOC GAS & POWER GRP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110571490.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2024-10-18
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

Existing technical methods are difficult to accurately calculate the dynamic changes and real-time distribution of natural gas components in long-distance natural gas pipeline networks, especially under conditions of mixed transmission from multiple gas sources and transient peak shaving conditions, resulting in inaccurate calculation results and difficulty in meeting natural gas energy measurement requirements. needs.

Method used

Using a system including a data acquisition and monitoring system, an intermediate production database interface machine, an online chromatographic analyzer and an online transient simulation software server, through real-time data collection and hydraulic simulation calculations, combined with the component tracking calculation module and data comparison module, the system is implemented For dynamic tracking and real-time calculation of natural gas components, the component mass conservation linear formula and the transient hydraulic simulation module are used for calculation, and the output error is within 3%.

Benefits of technology

It achieves accurate dynamic tracking and real-time calculation of natural gas components in the natural gas pipeline network, and can predict the location distribution and time change results of mixed natural gas along the pipeline. It is suitable for mixed gas transmission and energy measurement from multiple gas sources, and improves the accuracy and accuracy of calculations. Practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113239645B_ABST
    Figure CN113239645B_ABST
Patent Text Reader

Abstract

The present invention relates to a system and method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network, which comprises: a data acquisition and monitoring system, an intermediate production database interface machine, an online chromatographic analyzer and an online transient simulation software server; the data acquisition and monitoring system is used to obtain real-time data from a field SCADA server interface machine of a gas transmission pipeline network control center, and send the obtained real-time data to the online transient simulation software server through the intermediate production database interface machine; the online transient simulation software server synchronously performs real-time hydraulic simulation calculation and natural gas component tracking calculation of pipeline network natural gas flow according to the obtained real-time data, and compares the calculated natural gas component tracking calculation result with the calorific value data fed back by the online chromatographic analyzer, and outputs the natural gas component tracking calculation result when the error is less than a preset threshold. The present invention can be widely applied to the field of natural gas component calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a system and method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network, belonging to the technical field related to long-distance natural gas pipelines, natural gas pipeline network operation scheduling, multi-gas source mixed transmission, energy metering and value assignment. Background Art

[0002] With the interconnection and networking of domestic natural gas pipelines, natural gas with different qualities runs in the same natural gas pipeline network and is mixed in non-fixed proportions at different locations. Any gas source may change over time, especially when liquefied natural gas is one of the gas sources. Under the normal operation conditions of the natural gas pipeline network characterized by transient peak regulation, it is very necessary to accurately calculate the different components of the mixed natural gas as they change with different distances, distribution methods of different gas sources and download points, and time changes. Especially in the context of promoting the use of natural gas energy metering, it is more important to dynamically and accurately calculate the calorific value of the delivered natural gas at different delivery locations and different time periods.

[0003] Existing technical methods are generally divided into two categories. One is that for extremely short-distance gas pipelines (usually only a few hundred meters, at most a few thousand meters), a computer fluid dynamics method characterized by small grid division can be used for calculation. The results are very accurate, but the disadvantages are also very prominent. For example, the solution convergence speed is slow, often taking dozens of hours, and it is not suitable for calculations of gas pipelines over tens of kilometers in length, making it difficult to apply them in industry. The second is to use a method that assumes a static mixing interface and a static mixing ratio, combining hydraulic equations and thermodynamic equations for programming calculations. The disadvantage is that it is too simplified. The hydraulic equation calculation alone is difficult to meet the needs of long-distance natural gas pipelines, and the corresponding thermodynamic equation calculations are even more difficult to guarantee. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a system and method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network, which can accurately predict the real-time distribution of mixed natural gas along the pipeline after mixed transportation of natural gas with different qualities and its dynamic changes over time.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] The first aspect of the present invention is to provide a system for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network, which includes: a data acquisition and monitoring system, an intermediate production database interface machine, an online chromatograph analyzer and an online transient simulation software server; the data acquisition and monitoring system is used to obtain real-time data from an on-site SCADA server interface machine of a gas transmission pipeline network control center, and send the acquired real-time data to the online transient simulation software server through the intermediate production database interface machine; the online transient simulation software server synchronously performs real-time hydraulic simulation calculations and natural gas component tracking calculations of pipeline network natural gas flow according to the acquired real-time data, and compares the calculated natural gas component tracking calculation results with the calorific value data fed back by the online chromatograph analyzer, and outputs the natural gas component tracking calculation results when the error is less than a preset threshold.

[0007] Furthermore, an online transient simulation module is provided on the online transient simulation software server, and the online transient simulation module includes a component tracking calculation module, a transient hydraulic simulation calculation module and a data comparison module; the transient hydraulic simulation calculation module is used to perform real-time calculation of the hydraulics in the natural gas pipeline network according to the acquired real-time data, and obtain hydraulic simulation calculation results; the component tracking calculation module is used to perform real-time calculation of the natural gas components in the natural gas pipeline network according to the acquired real-time data and the hydraulic calculation simulation results, and obtain natural gas component tracking calculation results; the data comparison module is used to compare the calculated natural gas component tracking calculation results with the calorific value data fed back by the online chromatograph analyzer, and when the error is less than a preset threshold, the natural gas component tracking calculation results are output.

[0008] A second aspect of the present invention is to provide a method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network, which comprises the following steps:

[0009] 1) Obtain real-time data of the natural gas pipeline network from the gas pipeline network control center;

[0010] 2) An online transient simulation module is set on the online transient simulation software server, and the online transient simulation module synchronously and independently performs real-time hydraulic simulation calculation of natural gas flow in the pipeline network and natural gas component tracking calculation according to the acquired real-time data, and obtains hydraulic simulation calculation results and natural gas component tracking calculation result parameters;

[0011] 3) The online transient simulation software server will perform error analysis and deviation correction on the hydraulic simulation calculation results and natural gas component tracking calculation results obtained by the data acquisition and monitoring system together with the calorific value data fed back by several online chromatograph analyzers. When the error is lower than the set error threshold and converges, the natural gas component tracking calculation results are output.

[0012] Further, in the step 2), an online transient simulation module is set on the online transient simulation software server, and the online transient simulation module synchronously and independently performs real-time hydraulic simulation calculation and natural gas component tracking calculation of natural gas flow in the pipeline network according to the acquired real-time data, and the method for obtaining the hydraulic simulation calculation result and the natural gas component tracking calculation result parameters includes the following steps:

[0013] 2.1) Simplify the component mass balance theory formula dominated by conventional partial differential equations to obtain the component mass conservation linear formula, which is used to calculate the natural gas components in the natural gas pipeline network;

[0014] 2.2) The component mass conservation linear formula determined in step 2.1) is nested and written into the transient hydraulic simulation calculation module through the API interface;

[0015] 2.3) Set output parameters and charts;

[0016] 2.4) During the transient hydraulic calculation process, the built-in grid division and numerical solution methods in the hydraulic calculation are automatically adopted, and the calculation step size set in the transient hydraulic simulation calculation module is used as the time unit to synchronously solve the component mass conservation linear formula, and output the corresponding result parameters and charts according to the settings of step 2.3).

[0017] Further, in step 2.1), the linear formula for component mass conservation is determined as follows:

[0018] Δy k,n =T1+Δy 0,n T2

[0019] y mix =∑y i ·q i / ∑q i

[0020] In the formula, Δy k,n represents the change in the molar mass of a component in the mixed natural gas in the pipeline segment numbered k in one time step unit; T1 and T2 represent calculation constants; y 0,n is a known boundary condition; y mix Indicates the molar mass of a component in a mixed natural gas at a certain time point and location; i Represents the molar mass of a single component at a certain point in time and at a certain location, ∑y i represents the total molar mass of the mixed natural gas; q i It represents the volume flow rate of a component in the mixed natural gas at a certain time point and a certain location, ∑q i It represents the total volume flow of mixed natural gas at a certain point in time and at a certain location.

[0021] Furthermore, in the step 2.3), the set output parameters include the calorific value, density, C1-C4 component content and the content of other non-hydrocarbon components of each download point; the chart includes the distribution diagram of the output parameters of the entire pipeline of the set time length and the output parameter change diagram of the specific pipeline position over time.

[0022] Furthermore, in step 3), the error threshold is set to 3%.

[0023] Due to the adoption of the above technical scheme, the present invention has the following advantages: 1. The present invention proposes a real-time calculation method for dynamic tracking of natural gas components in a natural gas pipeline network and an implementation method in engineering applications, which can accurately predict the distribution mode and time changes of different components of mixed natural gas with different distances, different gas source points and download points for a multi-gas source gas transmission pipeline network under normal operation conditions of mixed transmission and transient peak regulation, and can be used for real-time tracking and calculation of any hydrocarbon components and non-hydrocarbon gas phase components in natural gas components, as well as energy metering substitution at the end user level. After comparison with the on-site calorific value metering results, the error is within 3%, and the practicality is significant. 2. The present invention is also suitable for offline calculations, such as the commissioning and access point arrangement of new natural gas sources, the access point arrangement of new gas users, and the impact of different access methods of new gas sources on the distribution changes of natural gas calorific values ​​in existing pipeline networks. Therefore, the present invention can be widely used in the field of natural gas component measurement in natural gas pipeline networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a structural diagram of the natural gas pipeline network component dynamic tracking system. DETAILED DESCRIPTION

[0025] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0026] like Figure 1 As shown, the present invention provides a natural gas component dynamic tracking and real-time calculation system in a natural gas pipeline network, which includes a data acquisition and monitoring system, an intermediate production database interface machine, an online chromatograph analyzer, and an online transient simulation software server. The data acquisition and monitoring system is used to obtain real-time data from the on-site SCADA server interface machine of the gas transmission pipeline network control center, and send the obtained real-time data to the online transient simulation software server through the intermediate production database interface machine; the online transient simulation software server synchronously performs real-time hydraulic simulation calculations and natural gas component tracking calculations of the pipeline network natural gas flow according to the obtained real-time data, and compares the calculated natural gas component tracking calculation results with the calorific value data fed back by the online chromatograph analyzer. When the error is less than the preset threshold, the natural gas component tracking calculation results are output.

[0027] Furthermore, an online transient simulation module is provided on the online transient simulation software server, and the online transient simulation module includes a component tracking calculation module, a transient hydraulic simulation calculation module and a data comparison module; the transient hydraulic simulation calculation module is used to perform real-time calculation of the hydraulics in the natural gas pipeline network according to the acquired real-time data, and obtain hydraulic simulation calculation results; the component tracking calculation module is used to perform real-time calculation of the natural gas components in the natural gas pipeline network according to the acquired real-time data and the hydraulic calculation simulation results, and obtain natural gas component tracking calculation results; the data comparison module is used to compare the calculated natural gas component tracking calculation results with the calorific value data fed back by the online chromatograph analyzer, and when the error is less than a preset threshold, the natural gas component tracking calculation results are output.

[0028] Based on the above-mentioned natural gas component dynamic tracking and real-time calculation system in the natural gas pipeline network, the present invention also provides a natural gas component dynamic tracking and real-time calculation method in the natural gas pipeline network, which, based on the existing data acquisition and monitoring system SCADA (Supervisory Control And Data Acquisition) with status monitoring function as the main function and the online simulation software module with hydraulic calculation as the main function, simultaneously performs real-time hydraulic simulation calculation of natural gas flow in the pipeline network and natural gas component tracking calculation by nesting component tracking algorithm. Specifically, it includes the following steps:

[0029] 1) Obtain real-time data of the natural gas pipeline network from the gas pipeline network control center.

[0030] 2) An online transient simulation module is set on the online transient simulation software server, and the online transient simulation module synchronously and independently performs real-time hydraulic simulation calculations and natural gas component tracking calculations of natural gas flow in the pipeline network according to the acquired real-time data, and obtains hydraulic simulation calculation results and natural gas component tracking calculation result parameters.

[0031] Specifically, the following steps are included:

[0032] 2.1) The component mass balance theory formula dominated by conventional partial differential equations is simplified to obtain the component mass conservation linear formula, which is used to calculate the natural gas components in the natural gas pipeline network.

[0033] Among them, the partial differential equation of the mass conservation formula of any component in natural gas is:

[0034]

[0035] In the formula, y k(x, t) represents the molar mass of a component in the mixed natural gas, and k=1, ..., K, K represents the total number of sections of the natural gas pipeline, k represents the current pipeline section numbered k, t represents time, and the unit is s; v(x, t) represents flow velocity, and the unit is m / s; x represents position and distance, and the unit is m; t represents time, and the unit is s.

[0036] The partial differential equation in formula (1) is theoretically derived and we obtain:

[0037] (y k,n+1 -y k,n ) / Δt n +(y k,n+1 -y k-1,n+1 ) / Δx k ·v k,n+1 =0 (2)

[0038] In the formula, k represents the current pipeline segment numbered k, n represents the time node; y k,n represents the molar mass of a component in the mixed natural gas at the pipeline segment numbered k and at the time node n; k,n+1 represents the molar mass of a component in the mixed natural gas at the pipeline segment numbered k and at the time node n+1; k-1,n+1 It represents the molar mass of a component in the mixed natural gas at the pipeline segment numbered k-1 and at the time node n+1; v k,n+1 It represents the flow rate of a component in the mixed natural gas in the pipeline segment numbered k at the time node n+1; Δt n Indicates the time change step at time node n; Δx k Indicates the distance change step along the axial position of the pipeline. The calculation formulas for each parameter are as follows:

[0039] y k,n =y(x k , t n ) (3)

[0040] v k,n+1 =v(x k , t n+1 ) (4)

[0041] Δt n =t n+1 -t n (5)

[0042] Δx k =x k+1 -x k (6)

[0043] Where, t n ,tn+1 Respectively represent the consecutive n and n+1 time nodes; x k 、x k+1 They respectively represent two adjacent pipeline segments k and k+1 in the pipeline axial position.

[0044] make:

[0045] Δy k,n =y k,n+1 -y k,n (7)

[0046] e k,n =v k,n+1 ·Δt n / Δx k (8)

[0047] In the formula, Δy k,n represents the change in the molar mass of a component in the mixed natural gas in the pipeline segment numbered k in one time step unit; e k,n It represents the movement distance of a component in the mixed natural gas per unit time step within a unit distance step in the pipeline segment numbered k.

[0048] Then formula (2) can be converted to:

[0049] (1+e k,n )Δy k,n -e k,n Δy k-1,n =0 (9)

[0050] e k,n (y k-1,n -y k,n )=0 (10)

[0051] In the formula, y 0,n As the known boundary condition, that is, the molar mass of a component in the mixed natural gas at the pipeline inlet can also be considered known, then formula (9) can be converted into a linear formula:

[0052] Δy k,n =T1+Δy 0,n ·T2 (11)

[0053] Where T1 and T2 represent calculation constants, which are related to the velocity components.

[0054] Then we get:

[0055] y mix =∑y i ·q i / ∑q i (12)

[0056] In the formula, yk,n Indicates the molar mass of a component in mixed natural gas, y mix Indicates the molar mass of a component in a mixed natural gas at a certain time point and location; i Represents the molar mass of a single component at a certain point in time and at a certain location, ∑y i represents the total molar mass of the mixed natural gas; q i It represents the volume flow rate of a component in the mixed natural gas at a certain time point and a certain location (m 3 / s),∑q i It represents the total volume flow rate of mixed natural gas at a certain time point and location (m 3 / s).

[0057] 2.2) The component mass conservation linear formula (i.e., formula (11)) determined in step 2.1) is nested and written into the transient hydraulic simulation calculation module through the API (Application Programming Interface).

[0058] 2.3) Set output parameters and charts. The output parameters mainly include the calorific value, density, C1-C4 component content and other non-hydrocarbon component content of each download point. The charts mainly include the distribution diagram of the output parameters of the entire pipeline with a set time length and the output parameters of a specific pipeline position over time.

[0059] 2.4) During the transient hydraulic calculation process, the transient hydraulic simulation calculation module automatically adopts the built-in grid division and numerical solution method in the hydraulic calculation, and uses the calculation step size set in the transient hydraulic simulation calculation module as the time unit to synchronously solve and calculate the linear formula of component mass conservation, and outputs the corresponding result parameters and charts according to the settings of step 2.3).

[0060] 3) The online transient simulation software server will perform error analysis and deviation correction on the hydraulic simulation calculation results and natural gas component tracking calculation results obtained with the calorific value data fed back by several online chromatograph analyzers collected by the data acquisition and monitoring system. When the error is lower than the set error threshold (such as 3%) and converges, the natural gas component tracking calculation results are output.

[0061] A specific implementation is given above, but the present invention is not limited to the described implementation. The basic idea of ​​the present invention lies in the above scheme. For ordinary technicians in this field, according to the teachings of the present invention, it does not require creative work to design various deformed models, formulas, and parameters. Changes, modifications, substitutions, and deformations of the implementation without departing from the principles and spirit of the present invention still fall within the scope of protection of the present invention.

Claims

1. A system for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network. It is characterized in that include: Data acquisition and monitoring system, intermediate production database interface machine, online chromatographic analyzer and online transient simulation software server; The data acquisition and monitoring system is used to obtain real-time data from the on-site SCADA server interface machine of the gas transmission network control center, and send the obtained real-time data to the online transient simulation software server through the intermediate production database interface machine; The online transient simulation software server synchronously performs real-time hydraulic simulation calculation of natural gas flow in the pipeline network and natural gas component tracking calculation according to the acquired real-time data, and compares the calculated natural gas component tracking calculation result with the calorific value data fed back by the online chromatograph analyzer, and outputs the natural gas component tracking calculation result when the error is less than a preset threshold; The online transient simulation software server is provided with an online transient simulation module, which includes a component tracking calculation module, a transient hydraulic simulation calculation module and a data comparison module; The transient hydraulic simulation calculation module is used to perform real-time calculation of the hydraulics in the natural gas pipeline network according to the acquired real-time data to obtain hydraulic simulation calculation results; The component tracking calculation module is used to perform real-time calculation of natural gas components in the natural gas pipeline network according to the acquired real-time data and hydraulic calculation simulation results to obtain natural gas component tracking calculation results; Among them, when the natural gas components are calculated in real time, the linear formula for component mass conservation is: Δy k,n =T 1 +Δy 0,n ·T 2 y mix =∑y i ·q i / Σq i In the formula, Δy k,n T represents the change in the molar mass of a component in the mixed natural gas in the pipeline segment numbered k in one time step unit; 1 、T 2 Represents a calculation constant; y 0,n is a known boundary condition; y mix Indicates the molar mass of a component in a mixed natural gas at a certain time point and location; i Represents the molar mass of a single component at a certain point in time and at a certain location, ∑y i represents the total molar mass of the mixed natural gas; q i It represents the volume flow rate of a component in the mixed natural gas at a certain time point and a certain location, ∑q i It indicates the total volume flow of mixed natural gas at a certain time point and a certain location; The data comparison module is used to compare the calculated natural gas component tracking calculation result with the calorific value data fed back by the online chromatograph analyzer, and output the natural gas component tracking calculation result when the error is less than a preset threshold.

2. A method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network using the system as claimed in claim 1, Features The following steps are involved: 1) Obtain real-time data of the natural gas pipeline network from the gas pipeline network control center; 2) An online transient simulation module is set on the online transient simulation software server, and the online transient simulation module synchronously and independently performs real-time hydraulic simulation calculation of natural gas flow in the pipeline network and natural gas component tracking calculation according to the acquired real-time data, and obtains hydraulic simulation calculation results and natural gas component tracking calculation result parameters; In the step 2), an online transient simulation module is set on the online transient simulation software server, and the online transient simulation module synchronously and independently performs real-time hydraulic simulation calculation of natural gas flow in the pipeline network and natural gas component tracking calculation according to the acquired real-time data, and the method for obtaining the hydraulic simulation calculation result and the natural gas component tracking calculation result parameters includes the following steps: 2.1) Simplify the component mass balance theory formula dominated by conventional partial differential equations to obtain the component mass conservation linear formula, which is used to calculate the natural gas components in the natural gas pipeline network; The linear formula for the conservation of mass of the components is: Δy k,n =T 1 +Δy 0,n ·T 2 y mix =Σy i ·q i / Σq i In the formula, Δy k,n T represents the change in the molar mass of a component in the mixed natural gas in the pipeline segment numbered k in one time step unit; 1 、T 2 Represents a calculation constant; y 0,n is a known boundary condition; y mix Indicates the molar mass of a component in a mixed natural gas at a certain time point and location; i Represents the molar mass of a single component at a certain point in time and at a certain location, ∑y i represents the total molar mass of the mixed natural gas; q i It represents the volume flow rate of a component in the mixed natural gas at a certain time point and a certain location, ∑q i It indicates the total volume flow of mixed natural gas at a certain time point and a certain location; 2.2) The component mass conservation linear formula determined in step 2.1) is nested and written into the transient hydraulic simulation calculation module through the API interface; 2.3) Set output parameters and charts; 2.4) During the transient hydraulic calculation process, the built-in grid division and numerical solution method in the hydraulic calculation is automatically adopted, and the calculation step length set in the transient hydraulic simulation calculation module is used as the time unit to synchronously solve the linear formula of component mass conservation, and output the corresponding result parameters and charts according to the settings of step 2.3); 3) The online transient simulation software server will perform error analysis and deviation correction on the hydraulic simulation calculation results and natural gas component tracking calculation results obtained by the data acquisition and monitoring system together with the calorific value data fed back by several online chromatograph analyzers. When the error is lower than the set error threshold and converges, the natural gas component tracking calculation results are output.

3. A method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network as claimed in claim 2, Features: In the step 2.3), the set output parameters include the calorific value, density, C1-C4 component content and the content of other non-hydrocarbon components of each download point; the chart includes the distribution diagram of the output parameters of the entire pipeline of the set time length and the output parameter change diagram of the specific pipeline position over time.

4. A method for dynamic tracking and real-time calculation of natural gas components in a natural gas pipeline network as claimed in claim 2, Features: In the step 3), the error threshold is set to 3%.

Citation Information

Patent Citations

  • An on-line simulation method of a large-scale complex natural gas pipeline network system

    CN109344436A