A method, device, equipment and medium for monitoring gas quality components of a natural gas pipeline

CN122651901APending Publication Date: 2026-08-28PIPECHINA SOUTH CHINA CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510224298.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2026-08-28

AI Technical Summary

Technical Problem

对于不具备色谱分析仪的场站,通常采用近邻场站的色谱分析仪数据,但是在计量过程中气质组分更新频率低,不利于精确计量

Benefits of technology

[0041] The technical solution of this invention first obtains the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline; then, based on the pipeline parameters, inlet parameters of each gas source, and outlet parameters, an online simulation model corresponding to the natural gas pipeline is constructed; further, based on the online simulation model, the first gas composition result corresponding to each node in the natural gas pipeline is determined, and the second gas composition result corresponding to each node is determined based on the chromatograph associated with each node; finally, based on the first and second gas composition results, the target gas composition result corresponding to each node is determined. This invention cross-verifies the gas composition determined by the online simulation model with the gas composition determined by the chromatograph, solving the problem that the gas composition results determined by the chromatograph in traditional stations may be inaccurate, improving the accuracy of pipeline gas composition monitoring, and ensuring the reliability of pipeline metering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122651901A_ABST
    Figure CN122651901A_ABST
Patent Text Reader

Abstract

The application discloses a kind of natural gas pipeline's gas quality component monitoring method, device, equipment and medium, it is related to natural gas gas quality component monitoring technical field, the method includes: obtaining the pipeline parameter of natural gas pipeline, each gas source import parameter and natural gas export parameter;Based on pipeline parameter, each gas source import parameter and natural gas export parameter, the online simulation model corresponding to natural gas pipeline is constructed;Determine the first gas quality component result corresponding to each node in natural gas pipeline based on online simulation model, and determine the second gas quality component result corresponding to each node based on the associated chromatographic analyzer of each node;Determine the target gas quality component result corresponding to each node based on first gas quality component result and second gas quality component result.It solves the problem that the gas quality component result determined by chromatographic analyzer in traditional station may be inaccurate, improves the accuracy of pipeline gas quality component monitoring, and ensures the reliability of pipeline metering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of natural gas quality and composition monitoring technology, and in particular to a method, apparatus, equipment and medium for monitoring the quality and composition of natural gas pipelines. Background Technology

[0002] With the interconnection of natural gas pipeline networks, the domestic natural gas supply is becoming increasingly diversified. Different gas sources with varying compositions and calorific values, such as pipeline gas, LNG (liquefied natural gas), shale gas, and coalbed methane, are entering the pipeline network. The "X+1+X" model of the pipeline network (referring to a multi-entity, multi-channel supply of upstream oil and gas resources, unified and efficient transportation by the National Pipeline Group in the middle, and a well-developed and highly competitive downstream oil and gas market system) leads to a surge of various gas sources into numerous stations along the pipeline network. Within the pipeline, fluctuations in flow rate, pressure, and process adjustments at different gas source points result in different gas composition at each node of the long-distance pipeline, and these compositions are subject to real-time fluctuations. This objectively presents certain difficulties and challenges for gas composition analysis and trade measurement at the stations.

[0003] For stations equipped with chromatographs, online gas components can be analyzed in real time and updated in the metering system. However, there is a lack of verification conditions for the accuracy of gas chromatography-mass spectrometry (GC-MS) results. For stations without GC-MS, data from neighboring stations is typically used, but the low update frequency of GC-MS components during metering is detrimental to accurate measurement. For pipelines / stations with newly commissioned GC-MS equipment that is not yet operational or whose equipment is malfunctioning, relatively accurate natural gas components cannot be obtained, hindering metering work and making it difficult to guarantee metering quality. Summary of the Invention

[0004] This invention provides a method, apparatus, equipment, and medium for monitoring the gas composition of natural gas pipelines, thereby improving the accuracy of monitoring the gas composition of pipelines and ensuring the reliability of pipeline metering.

[0005] According to one aspect of the present invention, a method for monitoring the gas composition of a natural gas pipeline is provided, comprising:

[0006] Obtain pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline;

[0007] Based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas, an online simulation model corresponding to the natural gas pipeline is constructed.

[0008] Based on the online simulation model, the results of the first gas composition corresponding to each node in the natural gas pipeline are determined, and the results of the second gas composition corresponding to each node are determined based on the chromatographic analyzer associated with each node.

[0009] Based on the first and second gaseous component results, the target gaseous component results corresponding to each node are determined.

[0010] In one possible implementation, obtaining the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline includes:

[0011] The pipe diameter, wall thickness, and length of each node in the natural gas pipeline are obtained as the pipeline parameters;

[0012] The pipeline monitoring and data acquisition system collects inlet parameters and outlet parameters of each gas source.

[0013] The gas source inlet parameters or natural gas outlet parameters include at least one of temperature, pressure, flow rate, and gas composition.

[0014] In one possible implementation, constructing an online simulation model of the natural gas pipeline based on the pipeline parameters, the inlet parameters of each gas source, and the natural gas outlet parameters includes:

[0015] Based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas, an online simulation model corresponding to the natural gas pipeline is constructed by combining hydraulic, thermal, and component control equations.

[0016] In one possible implementation, determining the target gaseous component result corresponding to each node based on the first gaseous component result and the second gaseous component result includes:

[0017] Based on the comparison results of the first and second gaseous component results, it is determined whether the component exceeds the tolerance.

[0018] If so, determine whether it is in the mixing stage;

[0019] If the component exceeds the tolerance and is not in the mixed gas section, the chromatograph is calibrated, and the target gas composition result is determined based on the calibrated chromatograph.

[0020] In one possible implementation, determining the target gas chromatographic component result based on the calibrated chromatographic analyzer includes:

[0021] The results of the second gas chromatographic component to be used are determined based on the calibrated chromatographic analyzer.

[0022] If the result of the second gaseous component to be used does not exceed the tolerance of the first gaseous component, then the result of the second gaseous component to be used is determined as the result of the target gaseous component.

[0023] In one possible implementation, the method further includes:

[0024] If the result of the second gaseous component to be used is out of tolerance with that of the first gaseous component, then the chromatograph is calibrated a second time, and the result of the second gaseous component to be processed is determined based on the chromatograph after the second calibration.

[0025] If the result of the second gaseous component to be processed does not exceed the tolerance of the first gaseous component, then the result of the second gaseous component to be processed is determined as the result of the target gaseous component.

[0026] Otherwise, issue an alarm.

[0027] In one possible implementation, the method further includes:

[0028] When the components are out of tolerance and are in the mixing section, the mixing section type is determined, wherein the mixing section type includes a first mixing section and a second mixing section;

[0029] Determine the out-of-tolerance range of the mixing section corresponding to the mixing section type based on the mixing section type;

[0030] Based on the out-of-tolerance range of the gas mixing section, the chromatograph is calibrated, and the target gas composition result is determined based on the calibrated chromatograph.

[0031] According to another aspect of the present invention, a gas composition monitoring device for a natural gas pipeline is provided, comprising:

[0032] The parameter acquisition module is used to acquire pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas.

[0033] The model building module is used to build an online simulation model of the natural gas pipeline based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas.

[0034] The component calculation module is used to determine the first gas composition results corresponding to each node in the natural gas pipeline based on the online simulation model, and to determine the second gas composition results corresponding to each node based on the chromatographic analyzer associated with each node.

[0035] The component determination module is used to determine the target gaseous component result corresponding to each node based on the first gaseous component result and the second gaseous component result.

[0036] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0037] At least one processor;

[0038] and a memory communicatively connected to the at least one processor; wherein,

[0039] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the gas composition monitoring method for natural gas pipelines according to any embodiment of the present invention.

[0040] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the gas composition monitoring method for natural gas pipelines according to any embodiment of the present invention.

[0041] The technical solution of this invention first obtains the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline; then, based on the pipeline parameters, inlet parameters of each gas source, and outlet parameters, an online simulation model corresponding to the natural gas pipeline is constructed; further, based on the online simulation model, the first gas composition result corresponding to each node in the natural gas pipeline is determined, and the second gas composition result corresponding to each node is determined based on the chromatograph associated with each node; finally, based on the first and second gas composition results, the target gas composition result corresponding to each node is determined. This invention cross-verifies the gas composition determined by the online simulation model with the gas composition determined by the chromatograph, solving the problem that the gas composition results determined by the chromatograph in traditional stations may be inaccurate, improving the accuracy of pipeline gas composition monitoring, and ensuring the reliability of pipeline metering.

[0042] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 A flowchart of a method for monitoring the gas composition of a natural gas pipeline provided in an embodiment of the present invention;

[0045] Figure 2 A flowchart of another method for monitoring the gas composition of a natural gas pipeline provided in an embodiment of the present invention;

[0046] Figure 3 A flowchart of another method for monitoring the gas composition of a natural gas pipeline provided in an embodiment of the present invention;

[0047] Figure 4 A logic block diagram for real-time monitoring of gas composition in a natural gas pipeline is provided in an embodiment of the present invention.

[0048] Figure 5 This is a schematic diagram of the structure of a gas composition monitoring device for a natural gas pipeline provided in an embodiment of the present invention;

[0049] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0050] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0051] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0052] Figure 1 This is a flowchart of a method for monitoring the gas composition of a natural gas pipeline according to an embodiment of the present invention. This embodiment is applicable to scenarios where the gas composition of a long-distance natural gas pipeline is monitored online. The method can be executed by a gas composition monitoring device for the natural gas pipeline. The device can be implemented in hardware and / or software and can be configured in the metering system of a natural gas pipeline transportation station.

[0053] like Figure 1 As shown, the method specifically includes the following steps:

[0054] S110. Obtain pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas.

[0055] Among them, the pipeline parameters of the natural gas pipeline can be parameters that represent the shape of the pipeline, such as pipe diameter, wall thickness, length, etc., and the gas source inlet parameters and natural gas outlet parameters can be the temperature, pressure, flow rate, gas composition, etc. corresponding to the gas source inlet and natural gas outlet.

[0056] In one possible implementation, obtaining the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline may include: obtaining the pipe diameter, wall thickness, and length of each node in the natural gas pipeline as pipeline parameters; and collecting the inlet parameters of each gas source and the outlet parameters of the natural gas based on a Supervisory Control and Data Acquisition (SCADA) system.

[0057] Specifically, by measuring or reviewing design drawings, the pipe diameter, wall thickness, and length information for each node can be obtained. As a core monitoring and management tool in the natural gas pipeline transportation process, the SCADA system can collect, process, and display various key data in real time. Therefore, through the SCADA system, parameters such as flow rate, pressure, and temperature at each gas source inlet and natural gas outlet can be obtained. Finally, the acquired pipeline parameters, gas source inlet parameters, and natural gas outlet parameters can be integrated to form a complete dataset.

[0058] S120. Based on pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas, an online simulation model corresponding to the natural gas pipeline is constructed.

[0059] In one possible implementation, an online simulation model of the natural gas pipeline is constructed based on pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas. This includes: constructing an online simulation model of the natural gas pipeline based on pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas, combined with hydraulic, thermal, and component control equations.

[0060] Specifically, appropriate simulation tools and platforms can be selected based on specific needs and project scale. These tools and platforms possess powerful fluid dynamics simulation capabilities, accurately simulating the flow of natural gas in pipelines. Within the simulation tools, a detailed simulation model is constructed based on the actual natural gas pipeline layout and parameters. These parameters include the pipeline network topology, pipe diameter variations, and valve settings. Furthermore, by inputting the collected pipeline parameters, gas source inlet parameters, and natural gas outlet parameters into the simulation model, the transportation of natural gas within the pipeline can be simulated.

[0061] S130. Based on the online simulation model, determine the first gas composition results corresponding to each node in the natural gas pipeline, and based on the chromatographic analyzer associated with each node, determine the second gas composition results corresponding to each node.

[0062] In the context of natural gas pipelines, nodes refer to critical locations or connection points along the pipeline route. In long-distance pipeline systems, nodes can be the starting point of the pipeline, i.e., the gas source; the ending point, i.e., the connection point for users or the next transmission system; or the location of key operating stations along the pipeline route, such as compressor stations and distribution stations. Nodes play a crucial role in connecting and distributing gas flow within the pipeline network, and are also key points for pipeline maintenance and management.

[0063] Understandably, simulation models can simulate the flow process of natural gas and take into account various physical and chemical factors. Through simulation calculations, the precise composition of natural gas at each node of the pipeline can be obtained. The first gas composition result is the gas composition corresponding to each node determined by the online simulation model.

[0064] It should be noted that in natural gas pipelines, by installing chromatographs at each node, the gas and gas composition information of that node can be obtained in real time. The gas and gas composition information obtained by the chromatographs associated with each node can be regarded as the second gas and gas composition result.

[0065] S140. Based on the results of the first and second gaseous components, determine the target gaseous component results for each node.

[0066] Among them, the target gaseous component result can be the final, more accurate gaseous component result.

[0067] Specifically, for nodes equipped with chromatographs, gas components can be analyzed in real time. However, traditional techniques lack verification of the accuracy of chromatographs, leading to potentially inaccurate results. Therefore, cross-validation can be performed based on the results of the first and second gas components. The target gas component results for each node can then be determined based on the validation results. This allows for verification of the chromatograph's analytical results based on simulation, enabling timely correction and adjustment of the chromatograph and ensuring the reliability of pipeline metering.

[0068] The technical solution of this invention first obtains the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline; then, based on the pipeline parameters, inlet parameters of each gas source, and outlet parameters, an online simulation model corresponding to the natural gas pipeline is constructed; further, based on the online simulation model, the first gas composition result corresponding to each node in the natural gas pipeline is determined, and the second gas composition result corresponding to each node is determined based on the chromatograph associated with each node; finally, based on the first and second gas composition results, the target gas composition result corresponding to each node is determined. This invention cross-verifies the gas composition determined by the online simulation model with the gas composition determined by the chromatograph, solving the problem that the gas composition results determined by the chromatograph in traditional stations may be inaccurate, improving the accuracy of pipeline gas composition monitoring, and ensuring the reliability of pipeline metering.

[0069] Figure 2 This is a flowchart of another method for monitoring the gas composition of a natural gas pipeline provided by an embodiment of the present invention. This embodiment can perform calibration on a single gas section chromatograph to obtain accurate results of the target gas composition.

[0070] like Figure 2 As shown, the method specifically includes the following steps:

[0071] S210. Obtain pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas.

[0072] S220. Based on pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas, construct an online simulation model corresponding to the natural gas pipeline.

[0073] S230. Based on the online simulation model, determine the first gas composition results corresponding to each node in the natural gas pipeline, and based on the chromatographic analyzer associated with each node, determine the second gas composition results corresponding to each node.

[0074] S240. Based on the comparison results of the first gas composition result and the second gas composition result, determine whether the composition is out of tolerance; if so, determine whether it is in the mixing section.

[0075] It is understandable that natural gas is primarily composed of methane, and is mainly a mixture of various gaseous low-molecular-weight hydrocarbons and non-hydrocarbon gases. When comparing the gas composition data with the simulation model results and the chromatographic analysis results, to simplify the process and save computational load, only the methane content data can be compared, or methane, ethane, propane, or other representative gas components can be selected for comprehensive comparison. The specific approach can be adjusted according to the actual site conditions and the system's computing power.

[0076] Specifically, based on the calculation results of the online simulation model, if a station is located within a gas segment with a single gas source, the calculation results of the online simulation model are compared with the node chromatographic analysis data. That is, the results of the first gas chromatographic component and the results of the second gas chromatographic component are compared. The following formula can be used to determine whether the component is out of tolerance. If the difference between the results of the first gas chromatographic component and the results of the second gas chromatographic component exceeds the upper and lower limits specified by the following formula, it can be determined that the component is out of tolerance.

[0077] Methane component comparison formula:

[0078] Δφ 1min ≤φ c1 -φ , c1 ≤Δφ 1max

[0079] In the formula φ c1 —Methane content in natural gas calculated by an online simulation model at a certain site, in %;

[0080] φ , c1 —Methane content in natural gas at a certain site, calculated by a chromatographic analyzer, in %;

[0081] Δφ 1min , Δφ 1max —The upper and lower limits of the allowable difference in methane content are determined based on system operation results or human experience.

[0082] Ethane component comparison formula:

[0083] Δφ 2min ≤φ c2 -φ , c2 ≤Δφ 2max

[0084] In the formula φ c2 —Ethane content of natural gas calculated by an online simulation model at a certain site, in %;

[0085] φ , c2 —Ethane content of natural gas at a certain site, calculated by a chromatographic analyzer, in %;

[0086] Δφ 2min , Δφ 2max —The upper and lower limits for the ethane content difference are determined based on system operation results or manual experience. The comparison formulas for propane or other specific components are the same as the above two formulas and will not be repeated. In addition, it is necessary to determine whether it is in the mixing section.

[0087] S250. When the components are out of tolerance and not in the mixed gas section, the chromatograph is calibrated, and the target gas composition results are determined based on the calibrated chromatograph.

[0088] Specifically, when a component is out of tolerance and is not in the mixing zone, a chromatographic calibration command can be issued to determine the target gas composition based on the calibrated chromatographic analyzer.

[0089] In one possible implementation, determining the target gas chromatographic component result based on the calibrated chromatographic analyzer includes: determining the result of the second gas chromatographic component to be used based on the calibrated chromatographic analyzer; if the result of the second gas chromatographic component to be used does not exceed the tolerance of the first gas chromatographic component, then the result of the second gas chromatographic component to be used is determined as the target gas chromatographic component result.

[0090] After the chromatographic calibration is completed, the obtained gas chromatographic component results, i.e. the second gas chromatographic component results to be used, are compared with the first gas chromatographic component results of the online simulation model. If the comparison result shows that there are no out-of-tolerance values, the calibrated chromatographic data is used for subsequent metrology, i.e., the second gas chromatographic component results to be used are used as the target gas chromatographic component results for subsequent metrology.

[0091] In one possible implementation, the method further includes: if the result of the second gaseous component to be used exceeds the tolerance of the first gaseous component, then perform a second calibration on the chromatograph and determine the result of the second gaseous component to be processed based on the second calibrated chromatograph; if the result of the second gaseous component to be processed does not exceed the tolerance of the first gaseous component, then determine the result of the second gaseous component to be processed as the target gaseous component result; otherwise, issue an alarm.

[0092] If the result of the second gas chromatography component to be used deviates significantly from that of the first gas chromatography component, a second calibration of the chromatograph is performed. Based on the second calibration, the chromatograph can determine a new gas chromatography component result, namely the result of the second gas chromatography component to be processed. Then, it is determined whether the result of the second gas chromatography component to be processed deviates significantly from that of the first gas chromatography component. If no deviation exists, it means that the calibration of the chromatograph has been completed, and the chromatograph can accurately determine the gas chromatography components. Conversely, if a deviation still exists after two calibrations, an alarm is issued to remind site personnel to investigate problems with the metrology system.

[0093] Furthermore, for stations lacking chromatographs, data from neighboring stations' chromatographs is typically used, resulting in low update frequency of gas composition data during metering, which is detrimental to accurate measurement. This invention can also utilize pipeline SCADA systems to collect data such as pressure, temperature, gas composition, and flow rate at each gas inlet. Simulation software can then be used to achieve real-time dynamic tracking of each gas source, using the first gas composition as a reference for stations lacking chromatographs. This means that even for newly commissioned gas analysis equipment that is not yet operational or where the equipment is malfunctioning, relatively accurate natural gas composition data can be obtained, facilitating metering operations.

[0094] The technical solution of this invention first obtains the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline. Then, based on these parameters, an online simulation model of the natural gas pipeline is constructed. Further, based on the online simulation model, the first gas composition result corresponding to each node in the natural gas pipeline is determined, and the second gas composition result corresponding to each node is determined based on the chromatograph associated with each node. Next, based on the comparison between the first and second gas composition results, it is determined whether the composition exceeds the tolerance; if so, it is determined whether the gas is in a mixed gas section. Finally, if the composition exceeds the tolerance and the gas is not in a mixed gas section, the chromatograph is calibrated, and the target gas composition result is determined based on the calibrated chromatograph. This invention establishes a method for judging and correcting the accuracy of chromatographic analysis data, and updates the composition values ​​used by the metering equipment at each node in a timely manner to ensure the accuracy of the measurement.

[0095] Figure 3 This is a flowchart illustrating another method for monitoring the gas composition of a natural gas pipeline according to an embodiment of the present invention. This embodiment can perform calibration on the chromatographic analyzer in the mixing section. For example... Figure 3 As shown, the method specifically includes the following steps:

[0096] S310: Obtain pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas.

[0097] S320. Based on pipeline parameters, inlet parameters of each gas source, and outlet parameters of natural gas, an online simulation model corresponding to the natural gas pipeline is constructed.

[0098] S330. Based on the online simulation model, determine the first gas composition results corresponding to each node in the natural gas pipeline, and based on the chromatographic analyzer associated with each node, determine the second gas composition results corresponding to each node.

[0099] S340. Based on the comparison results of the first gas composition result and the second gas composition result, determine whether the composition is out of tolerance; if so, determine whether it is in the mixing section.

[0100] Specifically, if the difference between the two results exceeds the preset threshold or standard range, it is judged as a component exceeding the tolerance.

[0101] After confirming that the composition exceeds the tolerance, further analysis is needed to determine if it is in a mixing section. A mixing section refers to a pipeline section where the natural gas composition differs due to the mixing of different gas sources.

[0102] S350. When there are out-of-tolerance components and the mixture is in the mixing section, determine the type of mixing section.

[0103] The mixing section types include the first mixing section and the second mixing section.

[0104] For example, the first mixing section may include gases from gas source 1 and gas source 2, and the second mixing section may include gases from gas source 2 and gas source 3.

[0105] S360. Determine the out-of-tolerance range of the mixing section corresponding to the mixing section type based on the mixing section type.

[0106] Specifically, different mixing section types correspond to different mixing tolerance ranges, which include the required ranges for each individual gas component in the mixing section.

[0107] S370. Based on the out-of-tolerance range of the gas mixing section, the chromatograph is calibrated, and the target gas composition results are determined based on the calibrated chromatograph.

[0108] Since the mixing section involves a blend of at least two gas sources, the content of each individual component falls within a specific range. Based on the online simulation model's calculations, when a station is in a mixing section, the system first determines which section it is in, automatically calculates the content range of each individual component of the natural gas (i.e., the required range for each gas component), and compares this range with the analysis results from the station's chromatograph. If the comparison results meet the requirements, normal operation is allowed; otherwise, a chromatograph calibration command is issued. After recalibration, the calibrated data is compared with the range value from the online simulation model. If the data falls within the range, normal operation is allowed; otherwise, a secondary calibration command is issued. After secondary calibration, the chromatograph is compared again with the range value. If the data is within the range, operation continues; otherwise, an alarm is triggered, prompting station personnel to further investigate and address any issues with the metering system.

[0109] In a preferred embodiment, such as Figure 4 The diagram shown is a logic block diagram for real-time monitoring of gas composition in a natural gas pipeline according to an embodiment of the present invention. It should be noted that, since natural gas contains many components, but the main components are light components such as methane and ethane, for convenience when judging out-of-range conditions, it is usually sufficient to select only 1-3 components with the highest proportion, typically methane, ethane, and propane.

[0110] This invention can be applied to ultrasonic metering systems at natural gas pipeline transportation stations and provides valuable reference for metering systems using other metering principles. It is applicable to different types of stations and operating conditions, automatically monitoring and adjusting gas composition parameters at stations along the pipeline in real time to ensure reliable metering quality. Furthermore, it requires virtually no manual intervention throughout the process, significantly improving efficiency and timeliness, and can be applied across the entire industry.

[0111] Figure 5 This is a schematic diagram of a gas composition monitoring device for a natural gas pipeline provided in an embodiment of the present invention. Figure 5 As shown, the device includes:

[0112] The parameter acquisition module 410 is used to acquire the pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline.

[0113] The model building module 420 is used to build an online simulation model of the natural gas pipeline based on the pipeline parameters, the inlet parameters of each gas source and the outlet parameters of the natural gas.

[0114] The component calculation module 430 is used to determine the first gas composition result corresponding to each node in the natural gas pipeline based on the online simulation model, and to determine the second gas composition result corresponding to each node based on the chromatographic analyzer associated with each node.

[0115] The component determination module 440 is used to determine the target gaseous component result corresponding to each node based on the first gaseous component result and the second gaseous component result.

[0116] In one possible implementation, the parameter acquisition module 410 is specifically used for:

[0117] The pipe diameter, wall thickness, and length of each node in the natural gas pipeline are obtained as the pipeline parameters;

[0118] The pipeline monitoring and data acquisition (SCADA) system collects inlet parameters and outlet parameters of each gas source.

[0119] The gas source inlet parameters or natural gas outlet parameters include at least one of temperature, pressure, flow rate, and gas composition.

[0120] In one possible implementation, the model building module 420 is specifically used for:

[0121] Based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas, an online simulation model corresponding to the natural gas pipeline is constructed by combining hydraulic, thermal, and component control equations.

[0122] In one possible implementation, the component determination module 440 includes:

[0123] The out-of-tolerance judgment submodule is used to determine whether a component is out of tolerance based on the comparison results of the first gas composition result and the second gas composition result;

[0124] If so, determine whether it is in the mixing stage;

[0125] The first chromatographic analyzer calibration submodule is used to perform calibration on the chromatographic analyzer when the components are out of tolerance and not in the mixed gas section, and to determine the target gas composition result based on the calibrated chromatographic analyzer.

[0126] In one possible implementation, the component determination module 440 is further configured to:

[0127] The results of the second gas chromatographic component to be used are determined based on the calibrated chromatographic analyzer.

[0128] If the result of the second gaseous component to be used does not exceed the tolerance of the first gaseous component, then the result of the second gaseous component to be used is determined as the result of the target gaseous component.

[0129] Optionally, the device further includes a second calibration submodule, used for:

[0130] If the result of the second gaseous component to be used is out of tolerance with that of the first gaseous component, then the chromatograph is calibrated a second time, and the result of the second gaseous component to be processed is determined based on the chromatograph after the second calibration.

[0131] If the result of the second gaseous component to be processed does not exceed the tolerance of the first gaseous component, then the result of the second gaseous component to be processed is determined as the result of the target gaseous component.

[0132] Otherwise, issue an alarm.

[0133] Optionally, the device further includes a mixing section calibration module, used for:

[0134] When the components are out of tolerance and are in the mixing section, the mixing section type is determined, wherein the mixing section type includes a first mixing section and a second mixing section;

[0135] Determine the out-of-tolerance range of the mixing section corresponding to the mixing section type based on the mixing section type;

[0136] Based on the out-of-tolerance range of the gas mixing section, the chromatograph is calibrated, and the target gas composition result is determined based on the calibrated chromatograph.

[0137] The gas composition monitoring device for natural gas pipelines provided in this embodiment of the invention can execute the gas composition monitoring method for natural gas pipelines provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0138] Figure 6This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0139] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0140] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0141] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as gas composition monitoring methods for natural gas pipelines.

[0142] In some embodiments, the gas composition monitoring method for a natural gas pipeline can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the gas composition monitoring method for a natural gas pipeline described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the gas composition monitoring method for a natural gas pipeline by any other suitable means (e.g., by means of firmware).

[0143] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0144] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0145] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0146] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0147] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0148] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0149] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0150] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for monitoring the gas composition of a natural gas pipeline, characterized in that, include: Obtain pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline; Based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas, an online simulation model corresponding to the natural gas pipeline is constructed. Based on the online simulation model, the results of the first gas composition corresponding to each node in the natural gas pipeline are determined, and the results of the second gas composition corresponding to each node are determined based on the chromatographic analyzer associated with each node. Based on the first and second gaseous component results, the target gaseous component results corresponding to each node are determined.

2. The method according to claim 1, characterized in that, The acquisition of pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline includes: The pipe diameter, wall thickness, and length of each node in the natural gas pipeline are obtained as the pipeline parameters; The pipeline monitoring and data acquisition (SCADA) system collects inlet parameters and outlet parameters of each gas source. The gas source inlet parameters or natural gas outlet parameters include at least one of temperature, pressure, flow rate, and gas composition.

3. The method according to claim 1, characterized in that, The online simulation model of the natural gas pipeline, constructed based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas, includes: Based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas, an online simulation model corresponding to the natural gas pipeline is constructed by combining hydraulic, thermal, and component control equations.

4. The method according to claim 1, characterized in that, The step of determining the target gaseous component result corresponding to each node based on the first gaseous component result and the second gaseous component result includes: Based on the comparison results of the first and second gaseous component results, it is determined whether the component exceeds the tolerance. If so, determine whether it is in the mixing stage; If the component exceeds the tolerance and is not in the mixed gas section, the chromatograph is calibrated, and the target gas composition result is determined based on the calibrated chromatograph.

5. The method according to claim 4, characterized in that, The determination of the target gas chromatographic components based on the calibrated chromatographic analyzer includes: The results of the second gas chromatographic component to be used are determined based on the calibrated chromatographic analyzer. If the result of the second gaseous component to be used does not exceed the tolerance of the first gaseous component, then the result of the second gaseous component to be used is determined as the result of the target gaseous component.

6. The method according to claim 5, characterized in that, The method further includes: If the result of the second gaseous component to be used is out of tolerance with that of the first gaseous component, then the chromatograph is calibrated a second time, and the result of the second gaseous component to be processed is determined based on the chromatograph after the second calibration. If the result of the second gaseous component to be processed does not exceed the tolerance of the first gaseous component, then the result of the second gaseous component to be processed is determined as the result of the target gaseous component. Otherwise, issue an alarm.

7. The method according to claim 4, characterized in that, The method further includes: When the components are out of tolerance and are in the mixing section, the mixing section type is determined, wherein the mixing section type includes a first mixing section and a second mixing section; Determine the out-of-tolerance range of the mixing section corresponding to the mixing section type based on the mixing section type; Based on the out-of-tolerance range of the gas mixing section, the chromatograph is calibrated, and the target gas composition result is determined based on the calibrated chromatograph.

8. A gas composition monitoring device for a natural gas pipeline, characterized in that, include: The parameter acquisition module is used to acquire pipeline parameters, inlet parameters of each gas source, and outlet parameters of the natural gas pipeline. The model building module is used to build an online simulation model of the natural gas pipeline based on the pipeline parameters, the inlet parameters of each gas source, and the outlet parameters of the natural gas. The component calculation module is used to determine the first gas composition results corresponding to each node in the natural gas pipeline based on the online simulation model, and to determine the second gas composition results corresponding to each node based on the chromatographic analyzer associated with each node. The component determination module is used to determine the target gaseous component result corresponding to each node based on the first gaseous component result and the second gaseous component result.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the gas composition monitoring method for a natural gas pipeline according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the gas composition monitoring method for a natural gas pipeline as described in any one of claims 1-7.