A gas tracking calculation method and device in a multi-gas-source pipe network, a server and a storage medium

By using online pipeline simulation technology in offshore multi-gas source pipeline networks to batch and track gas, the problem of inaccurate tracking of gas components, fluid arrival time and calorific value was solved, and the accuracy and timeliness of gas tracking were improved.

CN115630479BActive Publication Date: 2025-10-10HAINAN BRANCH OF CHINA NATIONAL OFFSHORE OIL (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211152701.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2025-10-10
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

Existing gas tracking methods have low accuracy and timeliness when tracking gas composition, fluid arrival time, and calorific value after mixing multiple gas sources, and are unable to accurately determine the quality of the mixed gas in submarine pipelines.

Method used

Based on the online simulation technology of pipeline network, the gas at the gas source point is divided into batches, and the divided batches are used for tracking calculation at the mixing point to obtain gas composition, calorific value and position change information. Real-time gas tracking is achieved through the data acquisition module, batch division module and tracking calculation module.

Benefits of technology

The accuracy and timeliness of gas tracking calculations are improved, ensuring the accuracy of gas composition, fluid arrival time and calorific value after mixing multiple gas sources, and reducing the amount of calculation and calculation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115630479B_ABST
    Figure CN115630479B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of fluid pipe network transportation, and provides a gas tracking calculation method and device in a multi-gas-source pipe network, a server and a storage medium, which comprise the following steps: S1: acquiring real-time data of all boundary nodes of a gas pipe network; the boundary nodes of the gas pipe network comprise gas source points and user points; S2: performing batch division on the gas output at the gas source points according to the real-time data of step S1, and determining a plurality of target gas batches; S3: performing tracking calculation on each target gas batch at a mixing point according to the target gas batches determined in step S2, and acquiring a calculation result of each target gas batch; and S4: acquiring real-time information of the gas in the gas pipe network at a query time point according to the calculation result of the target gas batch in step S3; the output gas at the gas source points is divided into batches based on the pipe network online simulation technology, and the gas groups after batch division can be more consistent with the real-time state of the pipe network gas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of fluid pipeline transportation, and in particular relates to a gas tracking calculation method, device, server and storage medium in a multi-gas source pipeline network. Background Art

[0002] Different offshore gas fields (sources) are affected by reservoir conditions, resulting in varying calorific values ​​of natural gas components. Furthermore, the gas fields and onshore end-users are dispersed. Consequently, submarine multi-source gas gathering and transmission pipelines have multiple mixing and distribution points, none of which are equipped with monitoring instruments. This makes it difficult to determine the calorific values ​​of the gas components downstream of each subsea mixing point, as well as their distribution and migration within the pipeline. End-users have specific requirements for mixed gas quality, and producers need to promptly monitor whether the gas quality in the submarine pipeline meets these requirements. If the gas quality exceeds or approaches user requirements, producers must coordinate with the next mixing point to adjust the gas volume or quality, and then re-mix the gas to achieve acceptable quality. This requires real-time tracking technology for mixed gas within the pipeline network. This technology allows for accurate monitoring of the pressure, flow rate, velocity, gas quality distribution, and migration of the mixed gas at any node in the network. This allows for coordinated gas supply at each mixing point, ensuring that the gas field delivers acceptable quality to end-users.

[0003] Currently, the tracking of the calorific value of mixed gas components in offshore multi-source gas pipeline networks is often based on the experience of production personnel. The components and calorific value of the mixed gas are determined based on the instantaneous flow rate and composition of the gas source, and the gas arrival time is determined based on the pipeline inventory and the cumulative gas consumption of the end user. The actual pipeline system is a dynamic process. The instantaneous flow rate of the gas source is not equal to the instantaneous flow rate at the mixing point. When the gas well production is unstable or the allocation changes, the composition of the gas source will also fluctuate. Therefore, it is impossible to accurately judge the composition of the mixed gas from multiple sources.

[0004] A Chinese patent discloses a method and system for tracking and calculating gas source flow in a fluid pipeline network, comprising respectively collecting real-time status data of the fluid state of all boundary nodes in the fluid pipeline network, and physical parameter data for representing the pipe segment structure and the physical properties of the fluid pipe; obtaining a first physical property parameter for representing the fluid state of the boundary node based on the real-time status data; obtaining a hydraulic calculation result based on the physical parameter data and the real-time status data, the hydraulic calculation result including at least the flow rate and pressure drop of each pipe segment in the fluid pipeline network; mainly relying on the pipe segment distribution ratio to track the flow distribution from each gas source point to the user point, but in the gas tracking process, the accuracy in judging the gas composition after mixing multiple gas sources, tracking the fluid arrival time, and tracking the calorific value is not particularly ideal, the gas tracking prediction is not accurate enough, and the tracking timeliness is low. Summary of the Invention

[0005] The purpose of the present invention is to provide a gas tracking calculation method, device, server and storage medium in a multi-gas source pipeline network, aiming to solve the problems of existing gas tracking methods in the gas tracking process, such as the low accuracy in judging the gas composition after multi-gas source mixing, fluid arrival time tracking and calorific value tracking, the insufficient accuracy of gas tracking prediction and the low tracking timeliness.

[0006] To solve the above technical problems, the present application provides a gas tracking calculation method in a multi-gas source network, comprising the following steps:

[0007] S1: Acquire real-time data of all boundary nodes of the gas pipeline network; the boundary nodes of the gas pipeline network include gas source points and user points;

[0008] S2: Divide the gas output from the gas source point into batches according to the real-time data of step S1 to determine multiple target gas batches;

[0009] S3: According to the target gas batches determined in step S2, tracking calculation is performed on each target gas batch at the mixing point to obtain a calculation result for each target gas batch;

[0010] S4: Based on the calculation result of the target gas batch in step S3, obtain the real-time information of the gas in the gas pipeline network at the time to be queried;

[0011] The real-time gas information includes at least one or more of target gas components, target gas calorific value, and target gas position change information.

[0012] The present invention provides a gas tracking calculation method in a multi-gas source pipeline network. Based on the pipeline network online simulation technology, the output gas at the gas source point is divided into batches, so that the gas source tracking is no longer limited by the component changes of multiple gas sources and the gas consumption changes of users. The gas group after batch division can be more in line with the real-time status of the pipeline network gas; the batches obtained by division are used for tracking calculation at the mixing point, so that the tracking calculation results of the gas in the pipeline network are more accurate, and the component conditions of the gas after the mixing of multiple gas sources, the tracking of the fluid arrival time and the tracking of the calorific value are more accurate. At the same time, the tracking calculation after batch division also reduces the amount of calculation, further shortens the tracking calculation time, and improves the timeliness of the gas tracking calculation.

[0013] Preferably, the real-time data includes at least gas data output from the gas source point, hydraulic parameters, and parameter data used to represent the physical properties of the pipeline network, wherein:

[0014] The gas data includes the mole percentage of gas at the gas source point;

[0015] The hydraulic parameters include at least one or a combination of pressure, flow rate, and temperature at the gas source point and the user point;

[0016] The parameter data at least includes one or a combination of pipeline altitude, pipeline length, and pipeline diameter.

[0017] Preferably, in step S2, the step of dividing the gas output from the gas source point into batches and determining a plurality of target gas batches includes:

[0018] S201: Dividing the gas groups output from each gas source point into batches according to the static simulation results of the pipeline network to determine multiple initial gas batches;

[0019] S202: Acquire current mixed data of gas batches actually generated in the pipeline network based on the data corresponding to each of the initial gas batches;

[0020] S203: Determine the current mixing data of the gas batch actually generated in step S202, and determine the target gas batch according to the determination result.

[0021] Preferably, in step S202, the current mixing data of the actually generated gas batch includes at least one or more of a minimum change rate, a fluid update time, and a batch volume flow rate, wherein:

[0022] Minimum rate of change Δ: defined as the sum of the absolute values ​​of the difference between the molar percentage of each gas component at the source point in a gas batch and the molar percentage of each gas component at the source point in the previous gas batch. It is expressed as follows:

[0023]

[0024] Where n represents the number of component i in the gas batch, C i represents the molar percentage of component i in the gas batch at the gas source point, c i represents the molar percentage of the gas source point of component i in the previous batch;

[0025] Maximum fluid update time T: defined as the time step between the latest gas batch actually produced in the pipeline at the gas source and the time when the previous batch was produced;

[0026] Minimum batch volume V: It is defined as the actual operating volume of a new batch of gas generated in the pipeline at the gas source. Its expression formula is as follows:

[0027] V=ν·t·A

[0028] Where ν is the gas flow rate at the judgment location, t is the fluid update time step at the judgment location, and A is the pipe cross-sectional area at the judgment location.

[0029] Preferably, in step S203, the step of determining the current mixing data of each gas batch obtained in step S202 and determining the target gas batch according to the determination result includes:

[0030] S2031: Give a set value to each of the minimum component change rate, minimum batch volume, and maximum fluid update time: Δ setting, V setting, and T setting;

[0031] S2032: Compare the calculated values ​​of the minimum component change rate Δ, the minimum batch volume V, and the maximum fluid update time T of the gas batch obtained in step S202 with the set values ​​determined in step S2031 one by one;

[0032] S2033: Determine whether the comparison result of step S2032 satisfies Δreal-time ≥ Δsetting & Vreal-time ≥ Vsetting & Treal-time ≥ Tsetting;

[0033] If so, the gas batch is determined as the target gas batch; otherwise, the previous gas batch is determined as the target gas batch.

[0034] Preferably, in step S3, obtaining the calculation result of each target gas batch at the mixing point specifically includes:

[0035] S301: Calculate a first product of the gas source point molar percentage of each component gas in the target gas batch and the volume flow rate of the target gas batch at the mixing point, and calculate a first sum of the first products corresponding to each component gas in the target gas batch;

[0036] S302: Calculating a second sum of the volume flow rates of each component gas in the target gas batch at the mixing point;

[0037] S303: Taking the quotient of the first sum value corresponding to each component gas and the second sum value respectively, to obtain the molar percentage of each component gas at the mixing point of the target gas batch;

[0038] S304: Determine a target gas batch calculation result according to the gas mole percentage of the target gas batch.

[0039] Preferably, in step S304, the calculation result includes at least one or more of the calorific value of the target batch of gas, position change information, and target batch arrival time, wherein:

[0040] Based on the mole percentage of gas in the target gas batch, the calculation formula for determining the calorific value of the target batch gas is:

[0041]

[0042] Where Q is the calorific value of the gas in the target batch, q jis the calorific value of component j in the target batch gas, C j is the molar percentage of gas component j in the target gas batch, and n is the number of components in the target gas batch;

[0043] According to the molar percentage of gas in the target gas batch, the calculation formula for determining the position change information of the target batch gas is:

[0044]

[0045] Where, represents the position where the target batch moves in the next time step, Indicates the location of the target batch at the initial moment, v i Represents the flow rate of the gas in the unit cell of the pipe section, and Δt represents a time step;

[0046] Based on the mole percentage of gas in the target gas batch, the calculation formula for determining the target batch arrival time is:

[0047]

[0048] Where t represents the arrival time of the batch, t0 represents the generation time of a target batch, Δx represents the spatial step of the pipeline; v i Indicates the flow rate of the gas in the unit cell of the pipe segment.

[0049] To solve the above technical problems, the present application also provides a gas tracking calculation device, comprising:

[0050] The data acquisition module acquires the real-time data of the current gas pipeline network and transmits the acquired real-time data to the batch division module;

[0051] The batch division module divides the gas groups at the gas source point into batches according to step S2, and uploads the obtained target gas batches to the tracking calculation module;

[0052] The tracking calculation module performs tracking calculation on the target gas batch according to step S3 and transmits the obtained calculation results to the information display module;

[0053] The information display module is connected to the data acquisition module, the batch division module and the tracking calculation module to record and display the collected or generated data;

[0054] Information input module: installed in the information display module, connected to the batch division module and tracking calculation module, used to input data and query the real-time information of gas in the pipeline network at the time node.

[0055] A gas tracking calculation device of the present invention facilitates the acquisition of real-time data of multiple offshore gas source pipes by setting a data acquisition module. The batch division module uses the real-time data as the input and control conditions of the pipeline system online simulation model to perform batch division of gas groups. The tracking calculation performs hydraulic simulation calculation and component tracking calculation of the natural gas pipeline flow according to the target gas batch, and outputs the component data, calorific value information and batch location information of different batches of natural gas; and displays the real-time gas information in the pipeline network through the information display module. The information input module inputs the time node to be queried, so that the real-time gas information in the pipeline network can be queried in real time; thereby effectively improving the accuracy of fluid arrival time tracking and calorific value tracking, and can significantly improve the gas tracking quality and the timeliness of gas tracking.

[0056] To solve the above technical problems, the present application also provides a server, including:

[0057] Memory for storing computer programs;

[0058] The processor is configured to implement the steps of any of the above-mentioned gas tracking calculation methods in a multi-gas source network when executing the computer program.

[0059] To solve the above technical problems, the present application also provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned gas tracking calculation methods in a multi-gas source pipeline network are implemented.

[0060] Compared with the prior art, the beneficial effects of the present invention are as follows: based on the online simulation technology of the pipeline network, the output gas at the gas source point is divided into batches, so that the gas source tracking is no longer limited by the changes in the components of multiple gas sources and the changes in the gas consumption of users. The gas group after batch division can be more in line with the real-time status of the pipeline network gas; the batches obtained by division are used for tracking calculation at the mixing point, so that the tracking calculation results of the gas in the pipeline network are more accurate, and the components of the gas after mixing multiple gas sources, the tracking of the fluid arrival time and the tracking of the calorific value are more accurate. At the same time, the tracking calculation after batch division also reduces the amount of calculation, further shortens the time of tracking calculation, and improves the timeliness of gas tracking calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A flow chart of a gas tracking calculation method in a multi-gas source network provided by the present invention;

[0062] Figure 2 A schematic diagram of a dynamic tracking model of a gas tracking calculation method in a multi-gas source network provided by the present invention;

[0063] Figure 3A gas pipeline network schematic diagram of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 2 of the present application;

[0064] Figure 4 A gas source component schematic diagram of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 2 of the present application;

[0065] Figure 5 A batch division schematic diagram of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 2 of the present application;

[0066] Figure 6 A batch heat value statistical diagram of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 2 of the present application;

[0067] Figure 7 A batch arrival time schematic diagram of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 2 of the present application;

[0068] Figure 8 A heat value tracking result comparison diagram of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 2 of the present application;

[0069] Figure 9 A structure schematic diagram of a server provided for Embodiment 4 of the present application. DETAILED DESCRIPTION

[0070] In order to make the objects, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0071] The specific implementation of the present application is described in detail below in combination with specific embodiments.

[0072] Embodiment 1

[0073] This embodiment proposes a gas tracking calculation method in a multi-gas source pipeline network, as shown in Figure 1 A flowchart of a gas tracking calculation method in a multi-gas source pipeline network provided for Embodiment 1 of the present application, the method comprises the following steps:

[0074] S1: obtaining real-time data of all boundary nodes of the gas pipeline network; the boundary nodes of the gas pipeline network include gas source points and user points;

[0075] S2: according to the real-time data of step S1, batch dividing the gas output at the gas source points to determine a plurality of target gas batches;

[0076] S3: tracking calculation is performed on each of the target gas batches at the mixing point to obtain a calculation result of each of the target gas batches according to the target gas batches determined in step S2;

[0077] S4: gas real-time information in the gas pipe network at a query time point is obtained according to the calculation result of the target gas batches in step S3;

[0078] The gas real-time information at least includes one or more of a target gas component, a target gas calorific value, and target gas position change information.

[0079] In actual application, the embodiment is based on pipe network online simulation technology, and the output gas at the gas source point is divided into batches, so that the gas source tracking is no longer limited by the component change of the multiple gas sources and the gas consumption change of the user. After batch division, the gas group can be more consistent with the real-time state of the pipe network gas. Tracking calculation is performed on the batches obtained by division at the mixing point, so that the tracking calculation result of the gas in the pipe network is more accurate, the component condition of the mixed gas of the multiple gas sources, the tracking of the fluid arrival time, and the tracking of the calorific value are more accurate. Meanwhile, tracking calculation after batch division also reduces the operation amount, further shortens the tracking calculation time, and improves the timeliness of the gas tracking calculation.

[0080] Specifically, in step S1, the real-time data at least includes gas data output by the gas source point, hydraulic parameters, and parameter data for representing physical properties of the pipe network, wherein:

[0081] The gas data includes a gas molar percentage at the gas source point;

[0082] The hydraulic parameters at least include one or a combination of several of the pressure, flow rate, and temperature of the gas source point and the user point;

[0083] The parameter data at least includes one or a combination of several of the altitude of the pipeline, the length of the pipeline, and the diameter of the pipeline.

[0084] It should be noted that the gas data is the data of the output gas at each gas source in the pipe network, which is mainly affected by environmental factors such as production time, gas reservoir conditions, seabed pressure, and temperature. Therefore, the gas data is real-time changed at different gas sources and at different times. The batch division of the output gas at the gas source can make the gas data more consistent with the real-time state of the pipe network gas.

[0085] In actual operation of this embodiment, before batch division, the on-site SCADA system collects online chromatographic components, flow, pressure and other data from each platform and terminal, and transmits this data to a real-time database via an industrial computer. The pipeline network simulation software extracts real-time boundary data from the real-time database as input and control conditions for the pipeline system online simulation model to drive the simulation model to perform online simulation of the pipeline system.

[0086] In one case of this embodiment, in step S2, the step of dividing the gas output from the gas source point into batches and determining multiple target gas batches includes:

[0087] S201: Dividing the gas groups output from each gas source point into batches according to the static simulation results of the pipeline network to determine multiple initial gas batches;

[0088] S202: Acquire current mixed data of gas batches actually generated in the pipeline network based on the data corresponding to each of the initial gas batches;

[0089] During actual operation, the current mixing data of the actually generated gas batch includes at least one or more of a minimum change rate, a fluid update time, and a batch volume flow rate, wherein:

[0090] Minimum rate of change Δ: defined as the sum of the absolute values ​​of the difference between the molar percentage of each gas component at the source point in a gas batch and the molar percentage of each gas component at the source point in the previous gas batch. It is expressed as follows:

[0091]

[0092] Where n represents the number of component i in the gas batch, C i represents the molar percentage of component i in the gas batch at the gas source point, c i represents the molar percentage of the gas source point of component i in the previous batch;

[0093] Maximum fluid update time T: defined as the time step between the latest gas batch actually produced in the pipeline at the gas source and the time when the previous batch was produced;

[0094] Minimum batch volume V: It is defined as the actual operating volume of a new batch of gas generated in the pipeline at the gas source. Its expression formula is as follows:

[0095] V=ν·t·A

[0096] Where ν is the gas flow rate at the judgment location, t is the fluid update time step at the judgment location, and A is the pipe cross-sectional area at the judgment location.

[0097] S203: Determine the current mixing data of the gas batch actually generated in step S202, and determine the target gas batch according to the determination result.

[0098] It should be noted that since the initial gas batch is set according to the static simulation results of the pipeline network during the simulation calculation process, the main purpose is to set the initial gas batch to determine the conditions for the actual generation of gas batches in the pipeline network, and the actual batch generated by the fluid in the pipeline network at the gas source is based on the actual gas flow. Therefore, the production of actual gas batches requires the initial gas batch set at each gas source point to obtain the three judgment parameters of the gas batch. It is necessary to meet the actual generation batch of the fluid in the pipeline network, and the three parameters must reach the preset range, so as to serve as the conditions for judging the gas batch as the target gas batch.

[0099] Specifically, in step S203, the steps of determining the current mixing data of each gas batch obtained in step S202 and determining the target gas batch according to the determination result include:

[0100] S2031: Give a set value to each of the minimum component change rate, minimum batch volume, and maximum fluid update time: Δ setting, V setting, and T setting;

[0101] S2032: Compare the calculated values ​​of the minimum component change rate Δ, the minimum batch volume V, and the maximum fluid update time T of the gas batch obtained in step S202 with the set values ​​determined in step S2031 one by one;

[0102] S2033: Determine whether the comparison result of step S2032 satisfies Δreal-time ≥ Δsetting & Vreal-time ≥ Vsetting & Treal-time ≥ Tsetting;

[0103] If so, the gas batch is determined as the target gas batch; otherwise, the previous gas batch is determined as the target gas batch.

[0104] In actual operation of this embodiment, it is first necessary to give a preset value to each of the three judgment conditions, and then compare the three parameters actually calculated for the gas batch with the three set values ​​one by one. If the judgment conditions are met, it means that the output gas group at the gas source has generated a target gas batch, and the volume flow rate of the gas batch and the corresponding components of different gases have undergone significant changes. In this way, the gas batch is determined to be the target gas batch, so that the target gas batch determination of the pipeline gas is more in line with the actual fluid transportation situation.

[0105] Example 2

[0106] This embodiment improves upon the gas tracking method proposed in Example 1. In step S3, the calculation results of each target gas batch are obtained at the mixing point, specifically including:

[0107] S301: Calculate a first product of the gas source point molar percentage of each component gas in the target gas batch and the volume flow rate of the target gas batch at the mixing point, and calculate a first sum of the first products corresponding to each component gas in the target gas batch;

[0108] S302: Calculating a second sum of the volume flow rates of each component gas in the target gas batch at the mixing point;

[0109] S303: Taking the quotient of the first sum value corresponding to each component gas and the second sum value respectively, to obtain the molar percentage of each component gas at the mixing point of the target gas batch;

[0110] S304: Determine a target gas batch calculation result according to the gas mole percentage of the target gas batch.

[0111] In actual application of this embodiment, the obtained target gas batch is tracked and calculated at the mixing point. The molar percentage of the gas source point of each component gas in the target gas batch and the volume flow rate at the mixing point can be used to calculate the molar percentage of the different component gases in the target gas batch at the mixing point, so as to calculate the real-time information of the target gas batch in the pipeline.

[0112] In actual operation, the gas component content at the mixing point can also be solved using a similar method. Since there are at least two branches intersecting and converging at the mixing point, the closest target gas batch in the branch in front of the mixing point is used, and the target gas batch in the branch is equated with multiple gas sources to calculate the molar percentage of the gas components at the mixing point. This makes the calculation result more accurate. According to the real-time components and volume flow rates of each gas source, the content of the mixed natural gas components is calculated according to the flow rate ratio of each gas source. The mixing calculation is as follows:

[0113]

[0114] Where C j is the molar percentage of component j at the mixing point; c i,j is the molar percentage of the i-th gas source component j; Qi is the volume flow rate of the i-th gas source component at the mixing point; l is the number of gas sources mixed at the mixing point.

[0115] It should be noted that in simulation applications, the fluid media of different gas sources are different, so the components in the input pipelines of each gas source are different. In the initial stage of the pipeline network, the pipe section is filled with the batch of the corresponding gas source before the mixing point, and the pipe section is filled with the mixed batch after the mixing point until the next gas mixing point; in the same batch, the components of the gas are completely consistent. It is only necessary to calculate the components of the target gas batch to calculate the position change information of the target gas batch in the next time step, or the estimated arrival time of the batch in a certain pipe section.

[0116] Specifically, after obtaining the molar percentage of the target gas batch, it can be used to calculate other data of the gas in the pipeline network, thereby obtaining a calculation result of the gas in the pipeline network. The calculation result includes at least one or more of the calorific value of the target batch gas, position change information, and the arrival time of the target batch, where:

[0117] Based on the mole percentage of gas in the target gas batch, the calculation formula for determining the calorific value of the target batch gas is:

[0118]

[0119] Where Q is the calorific value of the gas in the target batch, q j is the calorific value of component j in the target batch gas, C j is the molar percentage of gas component j in the target gas batch, and n is the number of components in the target gas batch;

[0120] According to the molar percentage of gas in the target gas batch, the calculation formula for determining the position change information of the target batch gas is:

[0121]

[0122] Where, represents the position where the target batch moves in the next time step, Indicates the location of the target batch at the initial moment, v i Represents the flow rate of the gas in the unit cell of the pipe section, and Δt represents a time step;

[0123] Based on the mole percentage of gas in the target gas batch, the calculation formula for determining the target batch arrival time is:

[0124]

[0125] Where t represents the arrival time of the batch, t0 represents the generation time of a target batch, Δx represents the spatial step of the pipeline; v i Indicates the flow rate of the gas in the unit cell of the pipe section;

[0126] like Figure 2 As shown, in step S4: in actual operation, a dynamic tracking model can be established based on the gas composition, gas calorific value, and gas position change information of the target gas batch in step S3, and then the target gas composition, target gas calorific value, and target gas position change information corresponding to the query time point can be determined by the dynamic tracking model;

[0127] In actual operation, Figure 2As shown, the horizontal axis represents the upstream and downstream positions of the pipeline, the vertical axis represents time, and the areas divided by slashes represent the natural gas batches in the pipeline; starting from the starting time, the positions of different batches in the pipeline at each time step are dynamically simulated, and the batches advance downstream at the gas flow rate calculated hydraulically, so as to obtain real-time information of the gas in the pipeline network.

[0128] Based on the above specific implementation methods, the effects of the present invention are verified in combination with specific experiments below:

[0129] like Figure 3 As shown in the figure, the multi-gas source pipeline network consists of 1 trunk line and 2 branch lines, connecting 3 gas sources and 1 user terminal. The components of the gas output by each gas source are different, and the user terminal has different requirements for gas components.

[0130] (1) Data acquisition process: The pipeline network has established an online simulation system. The on-site SCADA system collects the online chromatographic components, flow rates, pressures, etc. of each platform / terminal, and transmits these data to the real-time database through the industrial computer. The pipeline network simulation software extracts the real-time boundary data from the database as the input and control conditions of the pipeline system online simulation model, driving the simulation model to realize the online simulation of the pipeline system.

[0131] Since the gas source component data is real-time data from SCADA, the three gas source components at the initial moment are as follows: Figure 4 As shown;

[0132] (2) Batch division process: First, the three conditions for batch determination are set: minimum change rate Δ = 0.006, minimum batch volume V = 50 cubic meters, and maximum fluid update time t = 120 seconds. Therefore, the actual determination condition for the target gas batch is: when the natural gas composition change rate within 120 seconds is greater than 0.006 and the volume of the continuously flowing natural gas is greater than 50 cubic meters, a new batch is generated;

[0133] like Figure 5 As shown in the figure, from August 14th to 21st, the gas source flow rate and user pressure are derived from real-time data from the SCADA system. Through calculation, it is found that the pipeline produced seven new batches during this time period, and the gas components of each batch can be obtained in sequence.

[0134] (3) Tracking the calculation process:

[0135] like Figure 6 As shown in the figure, based on the components of each batch, the calorific value of 7 batches of natural gas is calculated, and the calorific value of each batch is obtained by calculation;

[0136] like Figure 7As shown, based on the composition of each batch, according to the gas flow rate and time step, the position of the gas batch in the next time step is calculated, the flow state of the target gas batch inside the pipeline is determined, and the time when the target gas batch arrives at each node is calculated, where the node includes the gas source point and the mixing point, and the specific batch generation time and arrival time are obtained;

[0137] (4) Obtain real-time gas information at the query point:

[0138] The dynamic tracking model is used to determine the composition, calorific value and position change information of the target gas corresponding to the time point to be queried; based on the gas flow rate and time step, the position of the gas batch in the next time step is calculated.

[0139] like Figure 8 As shown, in one embodiment, the terminal user's simulated and measured high / low calorific value arrival time and calorific value range are compared; it can be obtained that the simulated high calorific value arrival time of the embodiment differs from the measured arrival time by 10 minutes, and considering that the time from the generation of the high calorific value from the mixing point to the migration to the user is 9.16 hours, the time tracking accuracy can be obtained to be more than 98%; the maximum difference between the simulated calorific value and the measured calorific value is 5Btu / scf, and considering that the average measured calorific value is 960Btu / scf, the calorific value tracking accuracy is more than 99%; it can realize the accurate tracking of the calorific values ​​of the components of the offshore multi-gas source pipeline network, and meet the needs of on-site technicians for the scheduling of the pipeline system.

[0140] Example 3

[0141] This embodiment provides a gas tracking calculation device, which is applied to a gas tracking calculation method in a multi-gas source network provided in either embodiment 1 or embodiment 2, including:

[0142] The data acquisition module acquires the real-time data of the current gas pipeline network and transmits the acquired real-time data to the batch division module;

[0143] The batch division module divides the gas groups at the gas source point into batches according to step S2, and uploads the obtained target gas batches to the tracking calculation module;

[0144] The tracking calculation module performs tracking calculation on the target gas batch according to step S3 and transmits the obtained calculation results to the information display module;

[0145] The information display module is connected to the data acquisition module, the batch division module and the tracking calculation module to record and display the collected or generated data;

[0146] Information input module: installed in the information display module, connected to the batch division module and tracking calculation module, used to input data and query the real-time information of gas in the pipeline network at the time node.

[0147] In actual application, this embodiment facilitates the acquisition of real-time data of multiple offshore gas source pipes by setting up a data acquisition module. The batch division module uses real-time data as the input and control conditions of the pipeline system online simulation model to perform batch division of gas groups, and performs hydraulic simulation calculations and component tracking calculations on the flow of the natural gas pipeline network according to the target gas batches, and outputs the component data, calorific value information and batch location information of different batches of natural gas; and displays the real-time gas information in the pipeline network through the information display module, and inputs the time node to be queried by the information input module, so that the real-time gas information in the pipeline network can be queried in real time; thereby effectively improving the accuracy of fluid arrival time tracking and calorific value tracking, and can significantly improve the quality of gas tracking and the timeliness of gas tracking.

[0148] Example 4

[0149] This embodiment is an embodiment of a server provided by the present invention, including:

[0150] Memory for storing computer programs;

[0151] The processor is configured to implement the steps of any of the above-mentioned gas tracking calculation methods in a multi-gas source network when executing the computer program.

[0152] See also Figure 9 In actual operation, the server includes: a processor, a memory, a bus and a communication interface, and the processor, the communication interface and the memory are connected via a bus; the processor is used to execute an executable module stored in the memory, such as a computer program; specifically, the memory is used to store the program, and the processor executes the program after receiving the execution instruction. The method executed by the device defined in the above embodiment can be applied to the processor or implemented by the processor.

[0153] Exemplarily, the memory may include high-speed random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage, and the communication connection between the system network element and at least one other network element is realized through at least one communication interface (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0154] Furthermore, the bus may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0155] Furthermore, the processor may be an integrated circuit chip with signal processing capabilities; during implementation, the steps of the above method may be completed by hardware integrated logic circuits in the processor or software instructions.

[0156] Specifically, the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., or it can be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, which can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention.

[0157] Example 5

[0158] This embodiment is an embodiment of a storage medium provided by the present invention, wherein a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of any of the above-mentioned gas tracking calculation methods in a multi-gas source network are implemented.

[0159] The computer program product of the storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the above method embodiment.

[0160] The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor; the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register, etc., and the storage medium is located in the memory. The processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0161] If the method described in the embodiments of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium; based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0162] Exemplarily, the storage medium package may be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or other media that can store program codes.

[0163] The above is a detailed introduction to the gas tracking calculation method, device, server and storage medium in a multi-gas source pipeline network provided by this application; this article uses specific examples to illustrate the principles and implementation methods of this application, and the description of the above embodiments is only used to help understand the method of this application and its core idea; it should be pointed out that for ordinary technical personnel in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

Claims

1. A gas tracking calculation method in a multi-gas source network, characterized in that: The following steps are involved: S1: Acquire real-time data of all boundary nodes of the gas pipeline network; the boundary nodes of the gas pipeline network include gas source points and user points; S2: Divide the gas output from the gas source point into batches according to the real-time data of step S1 to determine multiple target gas batches; S3: According to the target gas batches determined in step S2, tracking calculation is performed on each target gas batch at the mixing point to obtain a calculation result for each target gas batch; S4: Based on the calculation result of the target gas batch in step S3, obtain the real-time information of the gas in the gas pipeline network at the time to be queried; The real-time gas information includes at least one or more of target gas components, target gas calorific value, and target gas position change information; In step S3, the calculation results of each target gas batch are obtained at the mixing point, specifically including: S301: Calculate a first product of the gas source point molar percentage of each component gas in the target gas batch and the volume flow rate of the target gas batch at the mixing point, and calculate a first sum of the first products corresponding to each component gas in the target gas batch; S302: Calculating a second sum of the volume flow rates of each component gas in the target gas batch at the mixing point; S303: Taking the quotient of the first sum value corresponding to each component gas and the second sum value respectively, to obtain the molar percentage of each component gas at the mixing point of the target gas batch; S304: Determine a calculation result of the target gas batch according to the gas mole percentage of the target gas batch.

2. The gas tracking calculation method in a multi-gas source network according to claim 1, characterized in that: In step S1: the real-time data includes at least gas data outputted from the gas source point, hydraulic parameters, and parameter data used to represent the physical properties of the pipe network, wherein: The gas data includes the mole percentage of gas at the gas source point; The hydraulic parameters include at least one or a combination of pressure, flow rate, and temperature at the gas source point and the user point; The parameter data at least includes one or a combination of pipeline altitude, pipeline length, and pipeline diameter.

3. The gas tracking calculation method in a multi-gas source network according to claim 2, characterized in that: In step S2, the gas output from the gas source point is divided into batches, and the step of determining multiple target gas batches includes: S201: Dividing the gas groups output from each gas source point into batches according to the static simulation results of the pipeline network to determine multiple initial gas batches; S202: Acquire current mixed data of gas batches actually generated in the pipeline network based on the data corresponding to each of the initial gas batches; S203: Determine the current mixing data of the gas batch actually generated in step S202, and determine the target gas batch according to the determination result.

4. The gas tracking calculation method in a multi-gas source network according to claim 3, characterized in that: In step S202, the current mixing data of the gas batch actually generated includes at least one or more of the minimum change rate, the fluid update time, and the batch volume flow rate, wherein: Minimum rate of change Δ: defined as the sum of the absolute values ​​of the difference between the molar percentage of each gas component at the source point in a gas batch and the molar percentage of each gas component at the source point in the previous gas batch. It is expressed as follows: Where n represents the number of component i in the gas batch, C i represents the molar percentage of component i in the gas batch at the gas source point, c i represents the molar percentage of the gas source point of component i in the previous batch; Maximum fluid update time T: defined as the time step between the latest gas batch actually produced in the pipeline at the gas source and the time when the previous batch was produced; Minimum batch volume V: It is defined as the actual operating volume of a new batch of gas generated in the pipeline at the gas source. Its expression formula is as follows: V=ν·t·A Where v is the gas flow rate at the judgment location, t is the fluid update time step at the judgment location, and A is the pipe cross-sectional area at the judgment location.

5. The gas tracking calculation method in a multi-gas source network according to claim 4, characterized in that: In step S203, the steps of determining the current mixing data of each gas batch obtained in step S202 and determining the target gas batch according to the determination result include: S2031: Give a set value to each of the minimum component change rate, minimum batch volume, and maximum fluid update time: Δ setting, V setting, and T setting; S2032: Compare the calculated values ​​of the minimum component change rate Δ, the minimum batch volume V, and the maximum fluid update time T of the gas batch obtained in step S202 with the set values ​​determined in step S2031 one by one; S2033: Determine whether the comparison result of step S2032 satisfies Δreal-time ≥ Δsetting & Vreal-time ≥ Vsetting & Treal-time ≥ Tsetting; If so, the gas batch is determined as the target gas batch; otherwise, the previous gas batch is determined as the target gas batch.

6. The gas tracking calculation method in a multi-gas source network according to claim 1, characterized in that: In step S304, the calculation result includes at least one or more of the calorific value of the target batch of gas, position change information, and target batch arrival time, wherein: Based on the mole percentage of gas in the target gas batch, the calculation formula for determining the calorific value of the target batch gas is: Where Q is the calorific value of the gas in the target batch, q j is the calorific value of component j in the target batch gas, C j is the molar percentage of gas component j in the target gas batch, and n is the number of components in the target gas batch; According to the molar percentage of gas in the target gas batch, the calculation formula for determining the position change information of the target batch gas is: Where, represents the position where the target batch moves in the next time step, Indicates the location of the target batch at the initial moment, Represents the flow rate of the gas in the unit cell of the pipe section, and Δt represents a time step; Based on the mole percentage of gas in the target gas batch, the calculation formula for determining the target batch arrival time is: In the formula, t represents the arrival time of the batch, t0 represents the generation time of a target batch, represents the spatial step length of the pipeline; Indicates the flow rate of the gas in the unit cell of the pipe segment.

7. A gas tracking calculation device, applied to the gas tracking calculation method according to any one of claims 1 to 6, characterized in that: include: The data acquisition module acquires the real-time data of the current gas pipeline network and transmits the acquired real-time data to the batch division module; The batch division module divides the gas groups at the gas source point into batches according to step S2, and uploads the obtained target gas batches to the tracking calculation module; The tracking calculation module performs tracking calculation on the target gas batch according to step S3 and transmits the obtained calculation results to the information display module; The information display module is connected to the data acquisition module, the batch division module and the tracking calculation module to record and display the collected or generated data; Information input module: installed in the information display module, connected to the batch division module and tracking calculation module, used to input data and query the real-time information of gas in the pipeline network at the time node.

8. A server, characterized in that: include: memory for storing computer programs; A processor, configured to implement the gas tracking calculation method according to any one of claims 1 to 6 when executing the computer program.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the gas tracking calculation method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

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

    CN109344436A

  • Product oil pipe network scheduling optimization method and system with transfer oil depot

    CN114707716A