Method for controlling energy in a pipeline trunk, storage medium and processor

By dividing the pipeline into sub-segments and calculating the pipeline inventory based on pressure and temperature, and adjusting the scheduling volume in conjunction with gas supply and demand, the problem of inaccurate pipeline inventory calculation under the influence of temperature drop in the existing technology is solved, and more accurate energy storage and scheduling optimization is achieved.

CN115560251BActive Publication Date: 2025-10-24CHINA UNIV OF PETROLEUM (BEIJING)
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies cannot accurately calculate the pipe inventory in the main pipeline while taking into account the impact of temperature drop, resulting in poor energy dispatch and an inability to optimize the total pipe inventory of the entire network.

Method used

Each pipeline segment is divided into multiple sub-segments. The pipeline inventory is calculated by determining the pressure and temperature of the sub-segments, and the scheduling is adjusted according to the gas supply and demand to optimize the total pipeline inventory of each segment.

Benefits of technology

It improved the accuracy of the energy storage volume to be transported within the pipeline section, optimized energy dispatching within the pipeline trunk line, and enhanced the control precision of the total pipeline storage volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115560251B_ABST
    Figure CN115560251B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a pipeline trunk energy control method, a processor and a storage medium. The control method comprises: for any one pipe section, the pipe section is divided into a plurality of sub-pipe sections according to a preset distance; the total amount of the energy to be transported in each pipe section is determined according to the pressure and temperature corresponding to the start end and the end of each sub-pipe section; the gas source supply amount of the energy to be transported at the gas source point where each pipe section is located is obtained; in the case that the gas source supply amount is less than the gas source demand amount, the first scheduling amount of the energy to be transported in each pipe section is determined according to the gas source supply amount and the gas source demand amount; in the case that the first ratio of the first scheduling amount to the total amount is less than a first preset value, the second scheduling amount of the energy to be transported is determined according to the gas source supply amount and the first scheduling amount; for any one pipe section, the pipe section is controlled to transport the second scheduling amount of the energy to be transported to a target receiving point, so as to accurately determine the storage amount of the energy to be transported in each pipe section and improve the energy allocation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of energy control, in particular to a method for controlling energy in a pipeline trunk, a storage medium and a processor. BACKGROUND

[0002] Taking a natural gas pipeline trunk as an example, the gas storage capacity of the pipeline can be used as a control basis for upstream gas source intake, downstream distribution station, user end distribution and gas storage capacity of the gas storage. By determining the gas storage capacity of each pipeline trunk in the pipeline, it is beneficial to the stability of the gas compression station and the economic operation of the pipeline.

[0003] At present, there are the following problems in the calculation and analysis of pipeline gas storage: first, considering the mutual influence of each pipeline, realizing the balance of the whole network; second, the pipeline scale is large, and the calculation workload of the whole network gas storage is large; third, the number of distribution stations, gas compression stations and user ends is large, and the pipeline topology structure is very complex. At present, for a single pipeline trunk, the steady-state simulation method is generally used to determine the gas storage capacity of each pipe section in each pipeline trunk. However, this method cannot avoid the influence of temperature drop on the gas storage capacity of each pipe section, thereby leading to inaccurate determination of the pipe section gas storage capacity, which greatly affects the subsequent scheduling of the energy in the pipe section and cannot well optimize the total gas storage capacity of each pipe section in the pipeline trunk. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a method for controlling energy in a pipeline trunk, a storage medium and a processor.

[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for controlling energy in a pipeline trunk, each pipeline trunk comprising a plurality of pipe sections, the control method comprising:

[0006] For any one pipe section, the pipe section is divided into a plurality of sub-pipe sections according to a preset distance;

[0007] According to the pressure and temperature corresponding to the start end and the end end of each sub-pipe section, the total gas storage capacity of the energy to be transported in each pipe section is determined;

[0008] The gas source supply amount of the energy to be transported at the gas source point of each pipe section is obtained;

[0009] In the case where the gas source supply amount is less than the gas source demand amount, the first scheduling amount of the energy to be transported in each pipe section is determined according to the gas source supply amount and the gas source demand amount;

[0010] In the case where the first ratio of the first scheduling amount to the total gas storage capacity is less than a first preset value, the second scheduling amount of the energy to be transported is determined according to the gas source supply amount and the first scheduling amount;

[0011] For any one pipe section, the pipe section transports the second scheduling amount of the energy to be transported to the target receiving point.

[0012] In the embodiments of the present application, the control method further comprises: for any one sub-pipe section, in the case that the sub-pipe section is the first sub-pipe section of the pipe section, determining the first pressure and the first temperature at the start end of the sub-pipe section as preset pressure and preset temperature respectively; for any one sub-pipe section, in the case that the sub-pipe section is not the first sub-pipe section of the pipe section, determining the first pressure and the first temperature at the start end of the sub-pipe section as the pressure and the temperature at the end of the previous sub-pipe section respectively; determining the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section respectively.

[0013] In the embodiments of the present application, the determination of the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section respectively comprises: determining the current flow of the energy to be transported in each sub-pipe section; for any one sub-pipe section, determining the second pressure at the end of the sub-pipe section according to the first pressure, the first temperature, the current flow and the friction coefficient at the start end, wherein the friction coefficient is the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipe of the sub-pipe section; for any one sub-pipe section, determining the second temperature at the end of the sub-pipe section according to the first pressure, the first temperature, the second pressure and the specific heat capacity at the start end.

[0014] In the embodiments of the present application, the determination of the total amount of the energy to be transported in each pipe section according to the pressure and the temperature corresponding to the start end and the end of each sub-pipe section comprises: determining the average pressure of each sub-pipe section according to the first pressure and the second pressure of each sub-pipe section; determining the average temperature of each sub-pipe section according to the first temperature of each sub-pipe section and the ambient temperature of the environment in which each sub-pipe section is located; determining the amount of the energy to be transported in each sub-pipe section according to the average pressure and the average temperature; and determining the total amount of the energy to be transported in each pipe section according to the amount of the energy to be transported in each sub-pipe section.

[0015] In the embodiments of the present application, the average pressure of each sub-pipe section is determined by formula (1):

[0016] (1)

[0017] wherein, is the average pressure of the sub-pipe section, is the first pressure at the start end of the sub-pipe section, is the second pressure at the end of the sub-pipe section.

[0018] The average temperature of each sub-pipe section is determined by formula (2):

[0019] (2)

[0020] wherein, is the average temperature of the sub-pipe section, is an ambient temperature of an environment in which the sub-pipe section is located, is a first temperature of a start end of the sub-pipe section, L is a length of the sub-pipe section, K is a total heat transfer coefficient, D is a pipe diameter of the sub-pipe section, and M is a mass flow rate, is a specific constant-pressure heat capacity of the energy to be transported in the sub-pipe section, and π is a constant of a circle,

[0021] The pipe inventory of each sub-pipe section is determined by formula (3):

[0022] (3)

[0023] wherein, is a pipe inventory of the energy to be transported in the sub-pipe section, is a pipe capacity of the sub-pipe section, is an average pressure of the sub-pipe section, is a compression factor of the energy to be transported in the sub-pipe section under a standard state, is a temperature under a standard state, and the value is 293.15 K, and P is a pressure of the sub-pipe section under a standard state, is a compression factor of the energy to be transported in the sub-pipe section, 0.904, is an average temperature of the sub-pipe section.

[0024] In the embodiments of the present application, the control method further comprises: for any one pipe section, determining that the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section are respectively the first pressure and the first temperature at the start end of the first sub-pipe section of the next pipe section; and determining the second pressure and the second temperature at the end of the first sub-pipe section of the next pipe section according to the first pressure and the first temperature at the start end of the first sub-pipe section of the next pipe section.

[0025] In the embodiments of the present application, the control method further comprises: in a case where the first ratio of the first dispatching amount to the total pipe inventory is equal to a first preset value, determining a third dispatching amount of the energy to be transported according to the total pipe inventory; determining a second ratio between the sum of the dispatching amount and the gas source supply amount and the gas source demand amount; and in a case where the second ratio is greater than or equal to a second preset value, determining the sum of the dispatching amount as a second dispatching amount of the energy to be transported.

[0026] In the embodiments of the present application, the first preset value is 0.03, and the second preset value is in a range of 0-1.

[0027] The second aspect of the present application provides a machine readable storage medium, the machine readable storage medium has instructions stored thereon, the instructions, when executed by a processor, cause the processor to be configured to perform the control method of the energy in the pipe trunk described above.

[0028] The third aspect of the present application provides a processor configured to execute the above-mentioned control method of energy in a pipeline trunk.

[0029] By the above technical solution, each pipe section is divided into a plurality of sub-pipe sections, so that the temperature drop has less effect on the pipe inventory of the sub-pipe section, and the storage amount of the energy to be transported in each pipe section can be more accurately determined, further improving the accuracy of subsequent allocation of the energy to be transported in the pipe section. The scheduling amount of the energy to be transported is determined by the gas source supply amount and the gas source demand amount, which can optimize the total pipe inventory of each pipe section in the pipeline trunk.

[0030] Other features and advantages of the embodiments of the present application will be described in detail in the following specific implementation part. BRIEF DESCRIPTION OF DRAWINGS

[0031] The accompanying drawings are included to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used together with the following specific implementation to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the drawings:

[0032] Figure 1 The application environment schematic diagram of the control method of energy in a pipeline trunk according to the embodiments of the present application is schematically shown;

[0033] Figure 2 The example diagram of the pipeline trunk according to the embodiments of the present application is schematically shown;

[0034] Figure 3 The example diagram of the pipe section according to the embodiments of the present application is schematically shown;

[0035] Figure 4 The example diagram of the sub-pipe section according to the embodiments of the present application is schematically shown;

[0036] Figure 5 The internal structure diagram of the computer device according to the embodiments of the present application is schematically shown. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the embodiments of the present application more clear, the technical scheme of the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiments of the present application, and is not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.

[0038] Figure 1 The flowchart of the control method of energy in a pipeline trunk according to the embodiments of the present application is schematically shown. As Figure 1As shown in an embodiment of the present application, a method for controlling energy in a pipeline trunk is provided, each pipeline trunk comprising a plurality of pipe sections, the method comprising the following steps:

[0039] In step 101, for any one pipe section, the pipe section is divided into a plurality of sub-pipe sections according to a preset distance.

[0040] In step 102, the total amount of pipe storage of the energy to be transported in each pipe section is determined according to the pressure and temperature corresponding to the start and end of each sub-pipe section.

[0041] In step 103, the gas source supply amount of the energy to be transported at the gas source point where each pipe section is located is obtained.

[0042] In step 104, in the case where the gas source supply amount is less than the gas source demand amount, the first scheduling amount of the energy to be transported in each pipe section is determined according to the gas source supply amount and the gas source demand amount.

[0043] In step 105, in the case where the first ratio of the first scheduling amount to the total amount of pipe storage is less than a first preset value, the second scheduling amount of the energy to be transported is determined according to the gas source supply amount and the first scheduling amount.

[0044] In step 106, for any one pipe section, the pipe section is controlled to transport the second scheduling amount of the energy to be transported to the target receiving point.

[0045] The pipeline trunk can refer to a device for transporting energy. The energy to be transported can include gas. Specifically, the gas can refer to natural gas, which can include purchased natural gas and domestically produced natural gas. Each pipeline trunk can include a plurality of pipe sections. When controlling the energy in the pipeline trunk, the processor can divide any one pipe section into a plurality of sub-pipe sections according to a preset distance. The preset distance can be customized according to actual conditions. The length of each sub-pipe section can be equal to the preset distance, or less than the preset distance. For example, for any one 10.5 km pipe section A, the processor can divide it into 11 sub-pipe sections (a1, a2, … a10, a11) according to a preset distance of 1 km. The length of sub-pipe sections a1-a10 is 1 km, and the length of sub-pipe section a11 is 0.5 km. Since the length of the sub-pipe section is small enough, it can be approximated as a node of each pipeline trunk, and the influence of temperature drop on the pipe storage of the sub-pipe section is small, which can improve the accuracy of the total amount of pipe storage of each pipe section.

[0046] In the case that each pipe section is divided into a plurality of sub-pipe sections, the processor can determine the pipe inventory of the energy to be transported in each sub-pipe section according to the pressure and temperature corresponding to the start end and the end of each sub-pipe section, and can further determine the total pipe inventory of the energy to be transported in each pipe section as the sum of the pipe inventory of the energy to be transported in each sub-pipe section. The energy to be transported can refer to natural gas. In the case that the total pipe inventory of the energy to be transported in each pipe section is determined, the processor can obtain the gas source supply amount of the energy to be transported at the gas source point where each pipe section is located. The gas source point can refer to the source of the energy to be transported, and specifically, the gas source point can refer to the gas source point of the pipeline trunk where each pipe section is located. The gas source supply amount of the energy to be transported at the gas source point where each pipe section is located can be the same.

[0047] The processor can further determine the size relationship between the gas source supply amount and the gas source demand amount of the energy to be transported at the gas source point where each pipe section is located. The gas source demand amount can be customized according to user demand. If the gas source supply amount is less than the gas source demand amount, at this time the storage amount of the energy to be transported at the gas source point of the pipe section is insufficient to meet the energy demand amount of the user. In this case, the processor can call up the energy to be transported in the pipe section corresponding to the gas source point. Further, the processor can determine the first scheduling amount of the energy to be transported in each pipe section according to the gas source supply amount and the gas source demand amount. The first scheduling amount can be the difference between the gas source supply amount and the gas source demand amount. For example, if the gas source supply amount at the gas source point where the i-th pipe section is located is less than the gas source demand amount of the i-th pipe section , the energy to be transported in the i-th pipe section can be called up. If the gas source supply amount at the gas source point where the i-th pipe section is located is greater than or equal to the gas source demand amount of the i-th pipe section , at this time the supply amount of the gas source point of the pipe section meets the energy demand amount of the user, and the energy to be transported in the i-th pipe section can not be called up.

[0048] The processor can determine the first ratio between the first scheduling amount and the total pipe inventory of the energy to be transported in each pipe section, and can compare the first ratio with a first preset value. If the first ratio is less than the first preset value, at this time the amount of energy that can be scheduled in the pipe section can meet the user demand. In an embodiment, the first preset value can be 0.03. For example, if the first scheduling amount of the i-th pipe section is less than the total pipe inventory of the energy to be transported in the i-th pipe section ​​the first ratio is less than 0.03, the energy amount that can be dispatched in the ith pipe section can meet the user demand. In the case that the first ratio is less than the first preset number, the processor can determine a second dispatch amount of the to-be-delivered energy according to the gas source supply amount and the first dispatch amount. Specifically, the second dispatch amount can be the sum of the gas source supply amount and the first dispatch amount. For example, the second dispatch amount of each pipe section can be determined by determining, wherein, may refer to the second dispatch amount of the ith pipe section, may refer to the gas source supply amount of the gas source point where the ith pipe section is located, may refer to the first dispatch amount of the ith pipe section. For any one pipe section, the processor can control the to-be-delivered energy of the second dispatch amount in the gas source point where the pipe section is located to be delivered to a target receiving point. The target receiving point can refer to an energy storage location specified by the user.

[0049] By the above technical solution, each pipe section is divided into multiple sub-pipe sections, so that the influence of temperature drop on the pipe inventory of the sub-pipe section is small, the storage amount of the to-be-delivered energy in each pipe section can be more accurately determined, and the accuracy of subsequent allocation of the to-be-delivered energy in the pipe section is further improved. The dispatch amount of the to-be-delivered energy is determined by the gas source supply amount and the gas source demand amount, which can optimize the total amount of the pipe inventory of each pipe section in the pipeline trunk.

[0050] In one embodiment, the control method further comprises: for any one sub-pipe section, in the case that the sub-pipe section is the first sub-pipe section of the pipe section, determining that the first pressure and the first temperature at the start end of the sub-pipe section are a preset pressure and a preset temperature, respectively; for any one sub-pipe section, in the case that the sub-pipe section is not the first sub-pipe section of the pipe section, determining that the first pressure and the first temperature at the start end of the sub-pipe section are the pressure and the temperature at the end of the previous sub-pipe section, respectively; determining the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section, respectively.

[0051] For any one sub-pipe section, in the case that the sub-pipe section is the first sub-pipe section of the pipe section, the processor can determine that the first pressure and the first temperature at the start end of the sub-pipe section are preset pressure and preset temperature respectively. Wherein, the pipe section can refer to the first pipe section of the pipeline trunk. That is, if the sub-pipe section is the first sub-pipe section of the first pipe section of the pipeline trunk, the preset pressure can refer to the starting pressure of the gas source point of the pipeline trunk, and the preset temperature can refer to the starting temperature of the gas source point of the pipeline trunk. For any one sub-pipe section, in the case that the sub-pipe section is not the first sub-pipe section of the pipe section, the processor can determine that the first pressure and the first temperature at the start end of the sub-pipe section are the pressure and the temperature at the end of the last sub-pipe section respectively. Wherein, the pipe section can refer to the first pipe section of the pipeline trunk. That is, if the sub-pipe section is not the first sub-pipe section of the first pipe section of the pipeline trunk, the first pressure and the first temperature at the start end of the sub-pipe section are the pressure and the temperature at the end of the last sub-pipe section respectively. The processor can determine the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature respectively.

[0052] For example, taking the pipeline trunk B as an example, the pipeline trunk B includes the pipe section B1, the pipe section B1 is the first pipe section of the pipeline trunk B, the pipe section B1 includes sub-pipe sections , ,… , , and the sub-pipe section is the first sub-pipe section of the pipe section B1, and the sub-pipe section is the last sub-pipe section of the pipe section B1. For the sub-pipe section , which is the first sub-pipe section of the pipe section B1, the first pressure and the first temperature at the start end of the sub-pipe section are determined as preset pressure and preset temperature. The preset pressure can be the starting pressure of the gas source point of the pipeline trunk B, and the preset temperature can refer to the starting temperature of the gas source point of the pipeline trunk B. For the sub-pipe section , which is the second sub-pipe section of the pipe section B1, the pressure and the temperature at the start end of the sub-pipe section are determined as the pressure and the temperature at the end of the sub-pipe section of the pipe section B1 respectively.

[0053] In one embodiment, the control method further comprises: for any one pipe section, determining that the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section are the first pressure and the first temperature at the start end of the first sub-pipe section of the next pipe section respectively; determining the second pressure and the second temperature at the end of the first sub-pipe section of the next pipe section according to the first pressure and the first temperature at the start end of the first sub-pipe section of the next pipe section.

[0054] For any one pipe section, the processor can determine the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section as the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section. The processor can determine the second pressure and the second temperature at the end of the first sub-pipe section of the next pipe section according to the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section. For example, taking the pipeline trunk B including pipe sections B1 and B2 as an example, the pipe section B1 is the first pipe section of the pipeline trunk B, and B2 is the second pipe section of the pipeline trunk B. The pipe section B1 includes sub-pipe sections , ,... , , where the sub-pipe section is the first sub-pipe section of the pipe section B1, and the sub-pipe section is the last sub-pipe section of the pipe section B1. The pipe section B2 includes sub-pipe sections , ,... , , where the sub-pipe section is the first sub-pipe section of the pipe section B2, and the sub-pipe section is the last sub-pipe section of the pipe section B2. For the pipe section B1, the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section B1 are the first pressure and the first temperature at the start of the first sub-pipe section of the pipe section B2, respectively.

[0055] In one embodiment, determining the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start of each sub-pipe section respectively includes: determining the current flow of the energy to be transported in each sub-pipe section; for any one sub-pipe section, determining the second pressure at the end of the sub-pipe section according to the first pressure, the first temperature, the current flow, and the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipeline of the sub-pipe section; for any one sub-pipe section, determining the second temperature at the end of the sub-pipe section according to the first pressure, the first temperature, the second pressure, and the specific heat capacity at constant pressure.

[0056] The processor can determine the current flow of the energy to be transported in each sub-pipe section. For any one sub-pipe section, the processor can determine the second pressure at the end of the sub-pipe section according to the first pressure, the first temperature, the current flow, and the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipeline of the sub-pipe section. For any one sub-pipe section, the processor can determine the second temperature at the end of the sub-pipe section according to the first pressure, the first temperature, the second pressure, and the specific heat capacity at constant pressure.

[0057] In one embodiment, the second pressure is determined by . Wherein, is a second pressure, is a first pressure, Q is a current flow rate, is a friction coefficient, Z is a compression factor of the energy to be transported, is a relative density of the energy to be transported. is a first temperature, L is a length of the sub-pipe section, C 0 is a constant, C 0 = 0.03848, D is an inner diameter of the sub-pipe section.

[0058] In an embodiment, the friction coefficient may be determined by wherein, is an equivalent roughness of an inner wall of the sub-pipe section, which can generally be taken as 0.05 mm. D is an inner diameter of the sub-pipe section. Re is a Reynolds number, which can be determined by wherein, is a relative density of the energy to be transported, is a density of air, which is under an engineering standard. Q is a current flow rate. D is an inner diameter of the sub-pipe section. is a dynamic viscosity of the gas.

[0059] In an embodiment, the second temperature can be determined by wherein, is a second temperature, is an ambient temperature of an environment in which the sub-pipe section is located, is a first temperature, is a first pressure, is a second pressure, L is a length of the sub-pipe section, is a coefficient of the Joule-Thomson effect, x is a distance from a position having the first temperature, a= , K is a total heat transfer coefficient, D is a pipe diameter of the sub-pipe section, M is a mass flow rate, is a specific constant pressure heat capacity of the energy to be transported in the sub-pipe section, π is a constant.

[0060] In an embodiment, the specific constant pressure heat capacity of the energy to be transported in the sub-pipe section may be determined by wherein, is a first temperature, Mg is an average relative molecular mass, P is a pressure of the energy to be transported.

[0061] In one embodiment, for any one sub-pipe section, in the case that the sub-pipe section is the first sub-pipe section of the pipe section, the first pressure and the first temperature at the start end of the sub-pipe section are determined as a preset pressure and a preset temperature, respectively; for any one sub-pipe section, in the case that the sub-pipe section is not the first sub-pipe section of the pipe section, the first pressure and the first temperature at the start end of the sub-pipe section are determined as the pressure and the temperature at the end of the previous sub-pipe section, respectively; the current flow rate of the energy to be transported in each sub-pipe section is determined; for any one sub-pipe section, the second pressure at the end of the sub-pipe section is determined according to the first pressure, the first temperature, the current flow rate, and the friction coefficient at the start end, wherein the friction coefficient is the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipe of the sub-pipe section; for any one sub-pipe section, the second temperature at the end of the sub-pipe section is determined according to the first pressure, the first temperature, the second pressure, and the specific constant-pressure heat capacity at the start end.

[0062] For any one sub-pipe section, in the case that the sub-pipe section is the first sub-pipe section of the pipe section, the processor can determine the first pressure and the first temperature at the start end of the sub-pipe section as a preset pressure and a preset temperature, respectively. The pipe section refers to the first pipe section of the pipeline trunk. That is, if the sub-pipe section is the first sub-pipe section of the first pipe section of the pipeline trunk, the preset pressure can refer to the initial pressure of the gas source point of the pipeline trunk, and the preset temperature can refer to the initial temperature of the gas source point of the pipeline trunk. For any one sub-pipe section, in the case that the sub-pipe section is not the first sub-pipe section of the pipe section, the processor can determine the first pressure and the first temperature at the start end of the sub-pipe section as the pressure and the temperature at the end of the previous sub-pipe section, respectively. The pipe section can refer to the first pipe section of the pipeline trunk. That is, if the sub-pipe section is not the first sub-pipe section of the first pipe section of the pipeline trunk, the first pressure and the first temperature at the start end of the sub-pipe section are the pressure and the temperature at the end of the previous sub-pipe section, respectively.

[0063] The processor can determine the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section, respectively. In the case of determining the first pressure and the first temperature at the start end and the second pressure and the second temperature at the end of each sub-pipe section, the processor can determine the current flow rate of the energy to be transported in each sub-pipe section. For any one sub-pipe section, the second pressure at the end of the sub-pipe section is determined according to the first pressure, the first temperature, the current flow rate, and the friction coefficient at the start end, wherein the friction coefficient is the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipe of the sub-pipe section. For any one sub-pipe section, the second temperature at the end of the sub-pipe section is determined according to the first pressure, the first temperature, the second pressure, and the specific constant-pressure heat capacity at the start end.

[0064] In one embodiment, determining the total amount of energy to be transported in each pipe section based on the pressure and temperature corresponding to the start end and end end of each sub-pipe section comprises: determining an average pressure of each sub-pipe section based on the first pressure and the second pressure of each sub-pipe section; determining an average temperature of each sub-pipe section based on the first temperature of each sub-pipe section and an ambient temperature of an environment in which each sub-pipe section is located; determining the amount of energy to be transported in each sub-pipe section based on the average pressure and the average temperature; and determining the total amount of energy to be transported in each pipe section based on the amount of energy to be transported in each sub-pipe section.

[0065] In determining the first pressure and the first temperature of the start end and the second pressure and the second temperature of the end end of each sub-pipe section, the processor can determine an average pressure of each sub-pipe section based on the first pressure and the second pressure of each sub-pipe section, and can determine an average temperature of each sub-pipe section based on the first temperature of each sub-pipe section and an ambient temperature of an environment in which each sub-pipe section is located. In determining the average pressure and the average temperature of each sub-pipe section, the processor can determine the amount of energy to be transported in each sub-pipe section based on the average pressure and the average temperature. The processor can further determine the total amount of energy to be transported in each pipe section based on the amount of energy to be transported in each sub-pipe section. That is, the processor can sum the amount of energy to be transported in each sub-pipe section to obtain the total amount of energy to be transported in each pipe section.

[0066] In one embodiment, the average pressure of each sub-pipe section is determined by formula (1):

[0067] (1)

[0068] wherein, Pave refers to the average pressure of the sub-pipe section, P1 refers to the first pressure of the start end of the sub-pipe section, P2 refers to the second pressure of the end end of the sub-pipe section;

[0069] The average temperature of each sub-pipe section is determined by formula (2):

[0070] (2)

[0071] wherein, Tave refers to the average temperature of the sub-pipe section, Tamb refers to the ambient temperature of an environment in which the sub-pipe section is located, T1 refers to the first temperature of the start end of the sub-pipe section, L refers to the length of the sub-pipe section, a= K refers to the total heat transfer coefficient, D refers to the pipe diameter of the sub-pipe section, M refers to the mass flow rate, Cv refers to the specific constant pressure heat capacity of the energy to be transported in the sub-pipe section, and π refers to the circular constant;

[0072] The pipe inventory of each sub-pipe section is determined by formula (3):

[0073] (3)

[0074] wherein, is the pipe inventory of the energy to be transported in the sub-pipe section, is the pipe capacity of the sub-pipe section, is the average pressure of the sub-pipe section, is the compressibility factor of the energy to be transported in the sub-pipe section under standard conditions, is the temperature under standard conditions, the value of which is 293.15 K, and P is the pressure of the sub-pipe section under standard conditions, is the compressibility factor of the energy to be transported in the sub-pipe section, 0.904, is the average temperature of the sub-pipe section.

[0075] In an embodiment, the pipe capacity of the sub-pipe section may be determined by , wherein D is the pipe diameter of the sub-pipe section, and L is the length of the sub-pipe section.

[0076] In an embodiment, the control method further comprises: in a case where the first ratio of the first scheduling quantity to the total pipe inventory is equal to a first preset value, determining a third scheduling quantity of the energy to be transported according to the total pipe inventory; determining a second ratio between the sum of the scheduling quantities of the gas source supply quantity and the third scheduling quantity and the gas source demand quantity; and in a case where the second ratio is greater than or equal to a second preset value, determining the sum of the scheduling quantities as a second scheduling quantity of the energy to be transported.

[0077] In a case where the first ratio of the first scheduling quantity to the total pipe inventory is equal to a first preset value, the processor can determine a third scheduling quantity of the energy to be transported according to the total pipe inventory. In an embodiment, the first preset value can be 0.03. For example, if the first preset value is 0.03, and the first ratio of the first scheduling quantity to the total pipe inventory is equal to the first preset value at this time, the processor can determine the total pipe inventory multiplied by 0.03 as the third scheduling quantity of the energy to be transported. That is, the third scheduling quantity is the maximum scheduling quantity of the energy to be transported in the pipe section at this time. In this case, the processor can further determine a second ratio between the sum of the scheduling quantities of the gas source supply quantity and the third scheduling quantity and the gas source demand quantity, and can compare the second ratio with a second preset value. In an embodiment, the second preset value can have a value range of 0-1. If the second ratio is greater than or equal to the second preset value, it can be determined that the sum of the scheduling quantities determined at this time can meet the energy demand of the user. The processor can determine the sum of the scheduling quantities as a second scheduling quantity of the energy to be transported, and can further control the pipe section to transport the second scheduling quantity of the energy to be transported to the target receiving point.

[0078] In one embodiment, the control method further comprises: in the case that the first ratio of the scheduled quantity to the total quantity of the pipe storage is greater than the first preset value, sending an alarm prompt to prompt that the scheduled quantity of the pipe section exceeds the upper limit. When the pipe section worker receives this prompt, the prompt that the scheduled quantity exceeds the upper limit can be reported to the operation department.

[0079] In one embodiment, the processor can control the energy to be transported of each pipe section of the pipeline trunk by controlling the energy to be transported of each pipe section of the pipeline trunk. Wherein, may refer to the second scheduled quantity of the i-th pipe section, may refer to the gas source demand quantity of the i-th pipe section, may refer to the weight of the i-th pipe section, and maxF may refer to the maximum value of the sum of the product of the second scheduled quantity and the gas source demand quantity of the N pipe sections under the preset constraint condition and the weight of the pipe section. Wherein, the preset constraint condition is , 0.03 , . Wherein, The value range of can be 0-1.

[0080] In one embodiment, as Figure 2 shown, an example diagram of a pipeline trunk is provided. Each pipeline trunk can serve as a primary pipeline, and each primary pipeline includes n sub-transmission stations. There is a gas source point at the source of the primary pipeline, and the gas source can include imported natural gas and domestically produced natural gas. The pipeline between every two adjacent sub-transmission stations is a secondary pipeline, and each secondary pipeline can be the aforementioned pipe section. As Figure 3 shown, an example diagram of a pipe section is provided. The pipe section between the No. 1 sub-transmission station and the No. 2 sub-transmission station can be a secondary pipeline, which can be the aforementioned pipe section. As Figure 4 shown, each secondary pipeline can be divided into multiple tertiary pipelines according to a preset distance, and each tertiary pipeline can be the aforementioned sub-pipe section. For example, the secondary pipeline between the No. 1 sub-transmission station and the No. 2 sub-transmission station can be divided into multiple tertiary pipelines. Since there is a sub-transmission station between every two adjacent secondary pipelines, the sub-transmission station can unload the energy in the pipeline, and there is an unloading quantity of energy to be transported between every two secondary pipelines. Therefore, the storage quantities of the energy to be transported in every two secondary pipelines are different. For the multiple tertiary pipelines included in each secondary pipeline, there is no unloading quantity of energy to be transported between every two tertiary pipelines. By determining the pipe storage quantity of each tertiary pipeline to determine the total pipe storage quantity of each secondary pipeline, each tertiary pipeline can be regarded as a node, and the starting point temperature of each tertiary pipeline can be regarded as the average temperature of the secondary pipeline.

[0081] By dividing each pipeline segment into multiple sub-segments, the aforementioned technical solution minimizes the impact of temperature drops on the pipeline inventory within each sub-segment. This allows for more accurate determination of the amount of energy to be transported within each segment, further improving the accuracy of subsequent energy allocation within that segment. By determining the dispatched amount of energy to be transported based on the gas supply and demand, the total pipeline inventory within each segment of the pipeline can be optimized.

[0082] Figure 1 FIG. 1 is a flow chart of a method for controlling energy in a pipeline trunk line in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0083] An embodiment of the present application provides a storage medium having a program stored thereon, which, when executed by a processor, implements the above-mentioned method for controlling energy in a pipeline trunk line.

[0084] An embodiment of the present application provides a processor, which is used to run a program, wherein the program executes the above-mentioned method for controlling energy in the pipeline trunk when running.

[0085] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected via a system bus. The processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data such as the total amount of pipe inventory in each pipe section. The network interface A02 of the computer device is used to communicate with an external terminal via a network connection. When the computer program B02 is executed by the processor A01, a method for controlling energy in a pipeline trunk line is implemented.

[0086] Those skilled in the art can understand that Figure 5 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0087] The embodiment of the present application provides a device, the device comprising a processor, a memory and a program stored on the memory and executable on the processor, and the processor implements the following steps when executing the program: for any one pipe section, the pipe section is divided into a plurality of sub-pipe sections according to a preset distance; the total amount of the energy to be transported in each pipe section is determined according to the pressure and temperature corresponding to the start end and the end end of each sub-pipe section; the gas source supply amount of the energy to be transported at the gas source point where each pipe section is located is obtained; in the case that the gas source supply amount is less than the gas source demand amount, the first scheduling amount of the energy to be transported in each pipe section is determined according to the gas source supply amount and the gas source demand amount; in the case that the first ratio of the first scheduling amount to the total amount is less than a first preset value, the second scheduling amount of the energy to be transported is determined according to the gas source supply amount and the first scheduling amount; for any one pipe section, the pipe section is controlled to transport the second scheduling amount of the energy to be transported to a target receiving point.

[0088] In one embodiment, the control method further comprises: for any one sub-pipe section, in the case that the sub-pipe section is the first sub-pipe section of the pipe section, determining that the first pressure and the first temperature at the start end of the sub-pipe section are a preset pressure and a preset temperature respectively; for any one sub-pipe section, in the case that the sub-pipe section is not the first sub-pipe section of the pipe section, determining that the first pressure and the first temperature at the start end of the sub-pipe section are the pressure and the temperature at the end end of the previous sub-pipe section respectively; determining the second pressure and the second temperature at the end end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section respectively.

[0089] In one embodiment, determining the second pressure and the second temperature at the end end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section respectively comprises: determining the current flow of the energy to be transported in each sub-pipe section; for any one sub-pipe section, determining the second pressure at the end end of the sub-pipe section according to the first pressure, the first temperature, the current flow and the friction coefficient of the start end, wherein the friction coefficient is the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipe of the sub-pipe section; for any one sub-pipe section, determining the second temperature at the end end of the sub-pipe section according to the first pressure, the first temperature, the second pressure and the specific heat capacity at constant pressure of the start end.

[0090] In one embodiment, determining the total amount of the energy to be transported in each pipe section according to the pressure and temperature corresponding to the start end and end end of each sub-pipe section comprises: determining the average pressure of each sub-pipe section according to the first pressure and the second pressure of each sub-pipe section; determining the average temperature of each sub-pipe section according to the first temperature of each sub-pipe section and the ambient temperature of the environment where each sub-pipe section is located; determining the amount of the energy to be transported in each sub-pipe section according to the average pressure and the average temperature; and determining the total amount of the energy to be transported in each pipe section according to the amount of the energy to be transported in each sub-pipe section.

[0091] In one embodiment, the average pressure of each sub-pipe section is determined by formula (1):

[0092] (1)

[0093] wherein, Pave refers to the average pressure of the sub-pipe section, P1 refers to the first pressure of the start end of the sub-pipe section, P2 refers to the second pressure of the end end of the sub-pipe section;

[0094] The average temperature of each sub-pipe section is determined by formula (2):

[0095] (2)

[0096] wherein, Tave refers to the average temperature of the sub-pipe section, T0 refers to the ambient temperature of the environment where the sub-pipe section is located, T1 refers to the first temperature of the start end of the sub-pipe section, L refers to the length of the sub-pipe section, a= K refers to the total heat transfer coefficient, D refers to the pipe diameter of the sub-pipe section, M refers to the mass flow rate, Cv refers to the specific constant-pressure heat capacity of the energy to be transported in the sub-pipe section, and π refers to the circular constant;

[0097] The amount of the energy to be transported in each sub-pipe section is determined by formula (3):

[0098] (3)

[0099] wherein, Q refers to the amount of the energy to be transported in the sub-pipe section, V refers to the pipe volume of the sub-pipe section, Pave refers to the average pressure of the sub-pipe section, Z refers to the compression factor of the energy to be transported in the sub-pipe section under the standard state, T0 refers to the temperature under the standard state, and the value is 293.15 K, P refers to the pressure of the sub-pipe section under the standard state, 0.904, is the average temperature of the sub-pipe section.

[0100] In one embodiment, the control method further comprises: for any one pipe section, determining that the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section are respectively the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section; and determining the second pressure and the second temperature at the end of the first sub-pipe section of the next pipe section according to the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section.

[0101] In one embodiment, the control method further comprises: in the case where the first ratio of the first dispatch amount to the total pipe storage amount is equal to the first preset value, determining a third dispatch amount of the energy to be transported according to the total pipe storage amount; determining a second ratio between the sum of the dispatch amount and the gas source supply amount and the gas source demand amount; and in the case where the second ratio is greater than or equal to the second preset value, determining the sum of the dispatch amount as the second dispatch amount of the energy to be transported.

[0102] In one embodiment, the first preset value is 0.03, and the second preset value is in the range of 0-1.

[0103] The application also provides a computer program product adapted to execute the program steps of the initialization method when executed on a data processing device: for any one pipe section, dividing the pipe section into a plurality of sub-pipe sections according to a preset distance; determining the total pipe storage amount of the energy to be transported in each pipe section according to the pressure and the temperature corresponding to the start and the end of each sub-pipe section; obtaining the gas source supply amount of the energy to be transported at the gas source point where each pipe section is located; in the case where the gas source supply amount is less than the gas source demand amount, determining a first dispatch amount of the energy to be transported in each pipe section according to the gas source supply amount and the gas source demand amount; in the case where the first ratio of the first dispatch amount to the total pipe storage amount is less than the first preset value, determining a second dispatch amount of the energy to be transported according to the gas source supply amount and the first dispatch amount; and for any one pipe section, controlling the pipe section to transport the second dispatch amount of the energy to be transported to the target receiving point.

[0104] In one embodiment, the control method further comprises: for any one sub-pipe section, in the case where the sub-pipe section is the first sub-pipe section of the pipe section, determining that the first pressure and the first temperature at the start of the sub-pipe section are respectively a preset pressure and a preset temperature; for any one sub-pipe section, in the case where the sub-pipe section is not the first sub-pipe section of the pipe section, determining that the first pressure and the first temperature at the start of the sub-pipe section are respectively the pressure and the temperature at the end of the previous sub-pipe section; and determining the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start of each sub-pipe section, respectively.

[0105] In one embodiment, determining the second pressure and the second temperature at the end of each sub-pipe section according to the first pressure and the first temperature at the start of each sub-pipe section respectively comprises: determining a current flow rate of the energy to be transported in each sub-pipe section; for any one sub-pipe section, determining the second pressure at the end of the sub-pipe section according to the first pressure, the first temperature, the current flow rate and a friction coefficient at the start of the sub-pipe section, wherein the friction coefficient is a friction coefficient between the energy to be transported in the sub-pipe section and an inner wall of the sub-pipe section; for any one sub-pipe section, determining the second temperature at the end of the sub-pipe section according to the first pressure, the first temperature, the second pressure and a specific heat at constant pressure at the start of the sub-pipe section.

[0106] In one embodiment, determining the total amount of the energy to be transported in each pipe section according to the pressure and the temperature at the start and the end of each sub-pipe section comprises: determining an average pressure of each sub-pipe section according to the first pressure and the second pressure of each sub-pipe section; determining an average temperature of each sub-pipe section according to the first temperature of each sub-pipe section and an ambient temperature of an environment in which each sub-pipe section is located; determining an amount of the energy to be transported in each sub-pipe section according to the average pressure and the average temperature; and determining the total amount of the energy to be transported in each pipe section according to the amount of the energy to be transported in each sub-pipe section.

[0107] In one embodiment, the average pressure of each sub-pipe section is determined by formula (1):

[0108] (1)

[0109] wherein, P is the average pressure of the sub-pipe section, P1 is the first pressure at the start of the sub-pipe section, P2 is the second pressure at the end of the sub-pipe section.

[0110] The average temperature of each sub-pipe section is determined by formula (2):

[0111] (2)

[0112] wherein, T is the average temperature of the sub-pipe section, T0 is an ambient temperature of an environment in which the sub-pipe section is located, T1 is the first temperature at the start of the sub-pipe section, L is the length of the sub-pipe section, a= K is the total heat transfer coefficient, D is the pipe diameter of the sub-pipe section, M is the mass flow rate, Cp is the specific heat at constant pressure of the energy to be transported in the sub-pipe section, and π is the constant pi.

[0113] The amount of the energy to be transported in each sub-pipe section is determined by formula (3):

[0114] (3)

[0115] wherein, is the pipe inventory of the energy to be transported in the sub-pipe section, is the pipe capacity of the sub-pipe section, is the average pressure of the sub-pipe section, is the compressibility factor of the energy to be transported in the sub-pipe section at the standard state, is the temperature at the standard state, the value of which is 293.15 K, and P is the pressure of the sub-pipe section at the standard state, is the compressibility factor of the energy to be transported in the sub-pipe section, 0.904, is the average temperature of the sub-pipe section.

[0116] In one embodiment, the control method further comprises: for any one pipe section, determining that the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section are respectively the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section; and determining the second pressure and the second temperature at the end of the first sub-pipe section of the next pipe section according to the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section.

[0117] In one embodiment, the control method further comprises: in the case where the first ratio of the first dispatching amount to the total pipe inventory is equal to a first preset value, determining a third dispatching amount of the energy to be transported according to the total pipe inventory; determining a second ratio between the third dispatching amount and the sum of the dispatching amount of the gas source supply and the gas source demand; and in the case where the second ratio is greater than or equal to a second preset value, determining the sum of the dispatching amount as a second dispatching amount of the energy to be transported.

[0118] In one embodiment, the first preset value is 0.03, and the second preset value is in the range of 0 to 1.

[0119] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage media, etc.) containing computer-usable program code.

[0120] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0121] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0122] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0123] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0124] The memory can include non-persistent memory and / or persistent memory, such as flash memory, read-only memory (ROM), and / or volatile or non-volatile random access memory (RAM), among others. The memory is an example of computer readable media.

[0125] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0126] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0127] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A method of controlling energy within a pipeline trunk, characterized by, Each pipeline trunk includes a plurality of pipe sections, and the control method comprises: For any one pipe section, the pipe section is divided into a plurality of sub-pipe sections according to a preset distance; Determine the total amount of the pipe storage of the energy to be transported in each pipe section according to the pressure and temperature corresponding to the start end and the end end of each sub-pipe section; Obtain the gas source supply amount of the energy to be transported at the gas source point where each pipe section is located; In the case where the gas source supply amount is less than the gas source demand amount, determine the first scheduling amount of the energy to be transported in each pipe section according to the gas source supply amount and the gas source demand amount; In the case where the first ratio of the first scheduling amount to the total amount of the pipe storage is less than a first preset value, determine the second scheduling amount of the energy to be transported according to the gas source supply amount and the first scheduling amount; For any one pipe section, control the pipe section to transport the second scheduling amount of the energy to be transported to a target receiving point; In the case where the first ratio of the first scheduling amount to the total amount of the pipe storage is equal to the first preset value, determine the third scheduling amount of the energy to be transported according to the total amount of the pipe storage; Determine the second ratio between the scheduling amount sum of the third scheduling amount and the gas source supply amount and the gas source demand amount; In the case where the second ratio is greater than or equal to a second preset value, determine the scheduling amount sum as the second scheduling amount of the energy to be transported.

2. The method of claim 1, wherein, The control method further comprises: For any one sub-pipe section, in the case where the sub-pipe section is the first sub-pipe section of the pipe section, determine the first pressure and the first temperature at the start end of the sub-pipe section as a preset pressure and a preset temperature, respectively; For any one sub-pipe section, in the case where the sub-pipe section is not the first sub-pipe section of the pipe section, determine the first pressure and the first temperature at the start end of the sub-pipe section as the pressure and the temperature at the end end of the previous sub-pipe section, respectively; Determine the second pressure and the second temperature at the end end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section, respectively.

3. The method of claim 2, wherein, The determination of the second pressure and the second temperature at the end end of each sub-pipe section according to the first pressure and the first temperature at the start end of each sub-pipe section, respectively, comprises: Determine the current flow of the energy to be transported in each sub-pipe section; For any one sub-pipe section, determine the second pressure at the end end of the sub-pipe section according to the first pressure, the first temperature, the current flow and the friction coefficient at the start end, wherein the friction coefficient is the friction coefficient between the energy to be transported in the sub-pipe section and the inner wall of the pipeline of the sub-pipe section; For any one sub-pipe section, determine the second temperature at the end end of the sub-pipe section according to the first pressure, the first temperature, the second pressure and the specific heat capacity at constant pressure at the start end.

4. The method of claim 3, wherein, The determination of the total amount of the pipe storage of the energy to be transported in each pipe section according to the pressure and temperature corresponding to the start end and the end end of each sub-pipe section comprises: Determine the average pressure of each sub-pipe section according to the first pressure and the second pressure of each sub-pipe section; Determine the average temperature of each sub-pipe section according to the first temperature of each sub-pipe section and the environmental temperature of the environment in which each sub-pipe section is located; Determine the pipe storage amount of the energy to be transported in each sub-pipe section according to the average pressure and the average temperature; Determine the total amount of the pipe storage of the energy to be transported in each pipe section according to the pipe storage amount of the energy to be transported in each sub-pipe section.

5. The method of claim 4, wherein, The average pressure of each sub-pipe section is determined by formula (1): (1) wherein Pm refers to the average pressure of the sub-pipe section, P1 refers to the first pressure at the start of the sub-pipe section, P2 refers to the second pressure at the end of the sub-pipe section; The average temperature of each sub-pipe section is determined by formula (2): (2) wherein T is the average temperature of the sub-pipe section, T is the ambient temperature of the environment in which the sub-pipe section is located, T is the first temperature of the start end of the sub-pipe section, L is the length of the sub-pipe section, a= K is the total heat transfer coefficient, D is the pipe diameter of the sub-pipe section, M is the mass flow rate, Cp is the specific constant pressure heat capacity of the energy to be transported in the sub-pipe section, and π is the circular constant. The pipe inventory of each sub-pipe section is determined by formula (3): (3) wherein is the inventory of the pipe section, is the volume of the pipe section, is the average pressure of the pipe section, is the compression factor of the energy to be transported in the pipe section at standard conditions, is the temperature at standard conditions, the value being 293.15 K, P is the pressure of the pipe section at standard conditions, is the compression factor of the energy to be transported in the pipe section, 0.904, is the average temperature of the pipe section.

6. The method of claim 2, wherein, The control method further comprises: For any one pipe section, the second pressure and the second temperature at the end of the last sub-pipe section of the pipe section are determined as the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section, respectively; The second pressure and the second temperature at the end of the first sub-pipe section of the next pipe section are determined according to the first pressure and the first temperature at the start of the first sub-pipe section of the next pipe section.

7. The method of claim 1 to 6, wherein, The first preset value is 0.03, and the second preset value is in the range of 0-1.

8. A machine-readable storage medium having stored thereon instructions, the instructions being executable by a machine to cause the machine to: The instructions, when executed by the processor, cause the processor to be configured to perform the control method of the energy in the pipeline trunk according to any one of claims 1-7.

9. A processor, comprising: The processor is configured to perform the control method of the energy in the pipeline trunk according to any one of claims 1-7.

Citation Information

Patent Citations

  • Real-time monitoring method for purchase and sale gas difference rate of natural gas pipeline network

    CN113531395A