Gas system energy optimization method and device for preventing excessive emission of sulfur

By constructing an energy conservation equation in the gas system and optimizing the energy, the problem of exceeding the standard emission of sulfur unit content in the gas system was solved, and the dual goals of environmental protection and economy were achieved.

CN119339838APending Publication Date: 2025-01-21CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310883864.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The existing technology cannot effectively prevent the unit sulfur content of each gas-consuming node in the refinery gas system exceeding the standard emission, resulting in the environmental protection red line being stepped on.

Method used

By determining the gas flow direction of adjacent nodes based on the gas flow direction of the circulation nodes in the gas system, and constructing an energy conservation equation, the energy is optimized based on the objective function and constraint conditions, and the sulfur unit content of the gas-consuming nodes is limited to a reasonable range.

Benefits of technology

It realizes the energy optimization of each node in the gas system, avoids excessive emissions of sulfur unit content, ensures that environmental protection requirements are met, and at the same time reduces the total gas production cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119339838A_ABST
    Figure CN119339838A_ABST
Patent Text Reader

Abstract

The invention provides a gas system energy optimization method and device for preventing sulfur excessive emission, and the method comprises the steps: determining the gas flow direction of adjacent nodes based on the gas flow direction of a circulation node in a gas system, and the adjacent nodes are nodes connected with the circulation node; determining an energy conservation formula of the circulation node based on the gas flow direction of the circulation node and the gas flow direction of the adjacent node; and based on the objective function and the constraint condition, optimizing the energy of the circulation node and the adjacent node in the energy conservation formula. According to the method, the energy conservation formula of the circulation node is determined on the basis of the gas flow direction of the circulation node and the gas flow direction of the adjacent node, and the energy of the circulation node and the adjacent node in the energy conservation formula is optimized on the basis of the target function and the constraint condition, so that excessive emission of the sulfur unit content of each node is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gas systems, and in particular to a method and device for optimizing the energy of a gas system for preventing excessive sulfur emissions. Background Art

[0002] Most of the fuel required in the refinery production process comes from the gas system, so the optimized operation of the gas system is of great significance to the smooth production and efficiency of the refinery. Refinery gas mainly consists of four components: gas production unit, gas transportation unit, gas recovery unit, and gas consumption unit. The gas produced by the gas production unit is sent to the gas consumption unit through the gas transportation unit; low-pressure gas cannot be used directly, and is recovered by the gas recovery unit and then sent to the gas system and then to the gas consumption unit.

[0003] The gas system of a refinery is very complex, with upstream and downstream devices connected through multiple nodes and pipe sections. Weather factors, gas production and consumption devices, gas replenishment volume, etc. change all the time, and the sulfur unit content of each fuel is different. Therefore, when the above variables change, it often causes fluctuations in the gas system pressure and gas calorific value, affecting the smooth operation of downstream devices. At the same time, it may also cause the sulfur unit content of the heating furnace flue gas to exceed the emission standard, stepping on the environmental protection red line.

[0004] Currently, there is a lack of effective methods to obtain the distribution data of sulfur unit content in the gas system, and it is also impossible to predict the sulfur unit content of flue gas at gas consumption nodes to prevent excessive emissions. Summary of the invention

[0005] The present invention provides a gas system energy optimization method and device for preventing excessive sulfur emissions, which are used to solve the defect in the prior art that the sulfur unit content of each gas consumption node cannot be prevented from exceeding the standard.

[0006] The present invention provides a gas system energy optimization method for preventing excessive sulfur emissions, comprising:

[0007] Determining the gas flow direction of an adjacent node based on the gas flow direction of a circulation node in the gas system, wherein the adjacent node refers to a node connected to the circulation node;

[0008] Determining an energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes;

[0009] Based on the objective function and constraints, the energy of the circulation nodes and the adjacent nodes in the energy conservation equation is optimized. The objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraints are used to limit the upper limit of the unit sulfur content of the gas-consuming nodes in the gas system.

[0010] According to a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention, the objective function is:

[0011] COST=K1Q1+K2Q2+…+K n Q n ;

[0012] Where COST represents the total gas production cost of the gas system, K n represents the unit energy gas production cost of the nth gas production node, Q n represents the energy of the nth gas-producing node;

[0013] X k,s <C s,high ;

[0014] Where, X k,s represents the actual sulfur content of the kth gas consumption node, C s,high Indicates the upper limit of the sulfur content of the gas consumption node.

[0015] According to a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention, the energy conservation formula of the flow node is determined based on the gas flow direction of the flow node and the gas flow direction of the adjacent node, including:

[0016] Determining the gas composition of the circulation node and the gas composition of the adjacent nodes based on the gas flow direction of the circulation node and the gas flow direction of the adjacent nodes;

[0017] An energy conservation equation of the flow node is determined based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas.

[0018] According to a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention, the energy conservation formula of the flow node is determined based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, including:

[0019] Determining the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas;

[0020] An energy conservation equation of the circulation node is constructed based on the energy of the circulation node and the energy of the adjacent nodes.

[0021] According to a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention, the energy of the flow node and the energy of the adjacent nodes are determined based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, including:

[0022] Based on the gas composition of the circulation node and the gas composition of the adjacent nodes, the gas material content of the circulation node and the gas material content of the adjacent nodes are determined by using the law of conservation of material;

[0023] Based on the gas material content of the flow node, the gas material content of the adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of the adjacent nodes are determined.

[0024] According to a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention, the energy of the flow node and the energy of the adjacent node are determined based on the following formula:

[0025] Q i,j =q i,j ∑(H m X i,m );

[0026] In the formula, Q i,j represents the energy flowing from node i to adjacent node j, q i,j represents the gas material content flowing from node i to adjacent node j, H m Indicates the calorific value of gas, X i,m Indicates the gas composition.

[0027] The present invention also provides a gas system energy optimization device for preventing excessive sulfur emissions, comprising:

[0028] A flow direction determining unit, configured to determine the gas flow direction of an adjacent node based on the gas flow direction of a flow node in the gas system, wherein the adjacent node refers to a node connected to the flow node;

[0029] an equation determination unit, configured to determine an energy conservation equation of the flow node based on a gas flow direction of the flow node and a gas flow direction of an adjacent node;

[0030] An energy optimization unit is used to optimize the energy of the flow node and the adjacent nodes in the energy conservation equation based on an objective function and constraints, wherein the objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraints are used to limit the upper limit value of the unit sulfur content of the gas-consuming nodes in the gas system.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a gas system energy optimization method for preventing excessive sulfur emissions as described in any one of the above methods is implemented.

[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for optimizing the energy of a gas system for preventing excessive sulfur emissions as described in any one of the above methods is implemented.

[0033] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for optimizing the energy of a gas system for preventing excessive sulfur emissions.

[0034] The gas system energy optimization method and device for preventing excessive sulfur emissions provided by the present invention determine the energy conservation formula of the circulation node based on the gas flow direction of the circulation node and the gas flow direction of the adjacent nodes, and optimize the energy of the circulation node and the adjacent nodes in the energy conservation formula based on the objective function and constraint conditions, thereby avoiding excessive sulfur emissions per unit content at each node. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is a schematic flow chart of a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention;

[0037] Figure 2 It is a structural schematic diagram of a gas system provided by the present invention;

[0038] Figure 3 It is a structural schematic diagram of a gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention;

[0039] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Catalytic cracking, delayed coking, etc. are upstream gas production devices, and the gas they produce can be incorporated into the gas system as fuel gas, so that the downstream devices corresponding to the gas system nodes can recover and utilize the energy generated by the fuel gas.

[0042] However, the sulfur unit content emitted by the downstream devices corresponding to the gas system nodes needs to meet the preset range requirements, but the sulfur unit content of each node of the gas system cannot be known in the prior art, and thus it is impossible to ensure that the sulfur unit content emitted by the downstream devices corresponding to each node needs to meet the preset range requirements.

[0043] In this regard, the present invention provides a method for optimizing the energy of a gas system for preventing excessive sulfur emissions. Figure 1 Schematic diagram of the process of the gas system energy optimization method for preventing excessive sulfur emissions provided by the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0044] Step 110: Based on the gas flow direction of the circulation node in the gas system, determine the gas flow direction of the adjacent node, where the adjacent node refers to a node connected to the circulation node;

[0045] Step 120, determining an energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of adjacent nodes;

[0046] Step 130: Based on the objective function and constraints, the energy of the flow nodes and adjacent nodes in the energy conservation equation is optimized. The objective function is determined based on the gas production cost of each gas production node in the gas system, and the constraints are used to limit the upper limit of the sulfur unit content of the gas consumption nodes in the gas system.

[0047] It should be noted that, for the sake of convenience, the following embodiments are all based on Figure 2 The gas system in is used as an example to illustrate. Figure 2 As shown, nodes 1, 7 and 8 are gas production nodes, nodes 2, 3 and 9 are gas consumption nodes, and nodes 4, 5 and 6 are circulation nodes. Node 4 is a circulation node, and nodes 1 and 5 connected to node 4 are adjacent nodes. Node 5 is a circulation node, and nodes 2, 4, 6 and 8 connected to node 5 are adjacent nodes; node 6 is a circulation node, and nodes 3, 5, 7 and 9 connected to node 6 are adjacent nodes. Among them, valve a is closed, and circulation node 5 and circulation node 6 are not adjacent nodes.

[0048] In this case, node 1 is a gas-producing node, that is, the gas flow direction of node 1 is known, and its gas flow direction is the gas outflow from node 1 to node 4, that is, gas outflow. When the gas flow direction of node 1 is clear, the gas cannot flow in the opposite direction, so the gas flow direction of node 4 is the gas from node 1 flowing into node 4, that is, gas inflow. Similarly, nodes 2, 3, and 9 are gas-consuming nodes, and their gas flow direction is gas inflow; nodes 7 and 8 are gas-producing nodes, and their gas flow direction is gas outflow.

[0049] Node 1 is a gas-producing node, but at this time node 1 stops producing gas, so the gas energy from node 1 to node 4 is Q 1,4 = 0, and the gas energy flowing from node 4 to node 1 is Q 4,1 =0, accordingly, the gas material content from node 1 to node 4 is q 1,4 = 0, the gas material content of node 4 flowing into node 1 is q 4,1 = 0. Similarly, node 7 is a gas-producing node. Assume that the gas energy flowing from node 7 to node 6 is Q 7,6 = P7. Since the gas cannot flow backward, that is, the gas will not flow from node 6 to node 7, the gas energy flowing from node 6 to node 7 is Q 6,7 = 0. Node 8 is a gas-producing node. Assume that the gas energy flowing from node 8 to node 5 is Q 8,5 = P8. Since the gas cannot flow backward, that is, the gas will not flow from node 5 to node 8, the gas energy flowing from node 5 to node 8 is Q 5,8 =0.

[0050] Node 2 is a gas-consuming node, but at this time node 2 stops consuming gas, so the gas energy flowing from node 5 to node 2 is Q 5,2 = 0, and the gas energy flowing from node 2 to node 5 is Q 2,5 =0, accordingly, the gas material content from node 5 to node 2 is q 5,2 = 0, the gas material content flowing from node 2 to node 5 is q 2,5 = 0. Node 3 is a gas-consuming node. Assume that the gas energy from node 6 to node 3 is Q 6,3 = C3, since the gas cannot flow back, that is, the gas from node 3 will not flow into node 6, that is, the gas energy from node 3 to node 6 is Q 3,6 = 0. Node 9 is a gas-consuming node. Assume that the gas energy flowing from node 9 to node 6 is Q 6,9 = C9, since the gas cannot flow in reverse, that is, the gas from node 6 will not flow into node 9, that is, the gas energy from node 6 to node 9 is Q 9,6 =0.

[0051] In addition, according to the law of energy conservation, the energy of the gas flowing into any node may be lost, so the energy of the gas flowing into any node is greater than or equal to the energy of the gas flowing out of the node, so the energy conservation formula of each flow node can be established as follows:

[0052] Node 4: Q 1,4 +Q 5,4 ≥Q 4,1 +Q 4,5

[0053] Node 5: Q 4,5 +Q 2,5 +Q 8,5 +Q 6,5 ≥Q 5,4 +Q 5,2 +Q 5,8 +Q 5,6

[0054] Node 6: Q 5,6 +Q 3,6 +Q 7,6 +Q 9,6 ≥Q 6,5 +Q 6,3 +Q 6,7 +Q 6,9

[0055] In the formula, Q m,n Represents the gas energy flowing from node m to node n.

[0056] After establishing the energy conservation equation, the energy of the flow nodes and adjacent nodes in the energy conservation equation is optimized based on the objective function and constraints, so that the optimal energy corresponding to each node can be determined to ensure that the unit sulfur content emitted by each node meets the preset range requirements.

[0057] Among them, the objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraint condition is used to limit the lower limit of the unit sulfur content of the gas-consuming nodes in the gas system, that is, to constrain the unit sulfur content of each gas-consuming node, and to optimize the energy of each node with the goal of minimizing the gas production cost of each gas-producing node.

[0058] The gas system energy optimization method for preventing excessive sulfur emissions provided in an embodiment of the present invention determines the energy conservation formula of the circulation node based on the gas flow direction of the circulation node and the gas flow direction of the adjacent nodes, and optimizes the energy of the circulation node and the adjacent nodes in the energy conservation formula based on the objective function and constraints, thereby avoiding excessive sulfur emissions per unit content at each node.

[0059] Based on the above embodiment, the objective function is:

[0060] COST=K1Q1+K2Q2+…+K n Q n ;

[0061] In the formula, COST represents the total gas production cost of the gas system, K n represents the unit energy gas production cost of the nth gas production node, Q n Represents the energy of the nth gas-producing node.

[0062] The embodiment of the present invention takes minimizing the total gas production cost as the optimization goal, so that the energy of each node can be determined when the total gas production cost is minimized, thereby achieving energy optimization of each node.

[0063] The constraints are:

[0064] X k,s <C s,high ;

[0065] Where, X k,s represents the actual sulfur content of the kth gas consumption node, C s,high Indicates the upper limit of the sulfur content of the gas consumption node.

[0066] Based on any of the above embodiments, the actual unit gas energy of the gas consumption node is determined based on the following formula:

[0067] H k =H1X1+H2X2+…+H m X m ;

[0068] In the formula, H k represents the actual unit gas energy of the kth gas consumption node, H m represents the calorific value of the mth gas in the kth gas consumption node, X m Represents the unit content of the mth gas in the kth gas consumption node.

[0069] Specifically, each gas consumption node may contain multiple gases, and the calorific value and unit content of each gas are different. Therefore, the embodiment of the present invention determines the actual unit gas energy of each gas consumption node based on the calorific value and unit content of each gas.

[0070] Based on any of the above embodiments, based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes, determining the energy conservation formula of the flow node includes:

[0071] Determine the gas composition of the flow node and the gas composition of the adjacent nodes based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes;

[0072] Based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, the energy conservation equation of the flow node is determined.

[0073] The energy conservation equation of the flow node is determined based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, including:

[0074] Determine the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas;

[0075] Based on the energy of the circulation node and the energy of the adjacent nodes, the energy conservation equation of the circulation node is constructed.

[0076] Based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of the adjacent nodes are determined, including:

[0077] Based on the gas composition of the flow node and the gas composition of the adjacent nodes, the gas material content of the flow node and the gas material content of the adjacent nodes are determined by using the material conservation law;

[0078] Based on the gas material content of the flow node, the gas material content of the adjacent nodes and the calorific value of each gas, the energy of the flow node and the energy of the adjacent nodes are determined.

[0079] Specifically, the energy conservation formula of the circulation node is determined based on the energy of the circulation node and the energy of the adjacent nodes. The energy of the circulation node or the energy of the adjacent nodes can be determined based on the following formula:

[0080] Q i,j =q i,j ∑(H m X i,m )

[0081] In the formula, Q i,j represents the energy flowing from node i to adjacent node j, q i,j represents the gas material content flowing from node i to adjacent node j, H m Indicates the calorific value of gas, X i,m represents the gas composition. In addition, since the gas flow is irreversible, it can be obtained that if Q i,j >0, then Q j,i =0,q j,i =0.

[0082] Among them, the gas material content also follows the material conservation, that is, the material conservation formula corresponding to each flow node is:

[0083] Node 4: q 1,4 +q 5,4 ≥q4,1 +q 4,5

[0084] Node 5: q 4,5 +q 2,5 +q 8,5 +q 6,5 ≥q 5,4 +q 5,2 +q 5,8 +q 5,6

[0085] Node 6: q 5,6 +q 3,6 +q 7,6 +q 9,6 ≥q 6,5 +q 6,3 +q 6,7 +q 6,9

[0086] Combination Figure 2 In the gas system shown in the figure, when valve a is closed, flow nodes 5 and 6 are not adjacent nodes, so q 5,6 =q 6,5 =0.

[0087] Furthermore, the single component of each circulation node also follows the material conservation formula, that is, the material conservation formula of the single component of each circulation node is:

[0088] Node 4: q 1,4 X 1,m +q 5,4 X 5,m ≥(q 4,1 +q 4,5 )X 4,m

[0089] Node 5: q 4,5 X 4,m +q 2,5 X 2,m +q 8,5 X 8,m +q 6,5 X 6,m ≥(q 5,4 +q 5,2 +q 5,8 +q 5,6 )X 5,m

[0090] Node 6: q 5,6 X 5,m +q 3,6 X 3,m +q 7,6 X 7,m +q 9,6 X 9,m≥(q 6,5 +q 6,3 +q 6,7 +q 6,9 )X 6,m

[0091] Accordingly, the material conservation equation of sulfur (S) at each flow node is:

[0092] Node 4: q 1,4 X 1,S +q 5,4 X 5,S ≥(q 4,1 +q 4,5 )X 4,S

[0093] Node 5: q 4,5 X 4,S +q 2,5 X 2,S +q 8,5 X 8,S +q 6,5 X 6,S ≥(q 5,4 +q 5,2 +q 5,8 +q 5,6 )X 5,S

[0094] Node 6: q 5,6 X 5,S +q 3,6 X 3,S +q 7,6 X 7,S +q 9,6 X 9,S ≥(q 6,5 +q 6,3 +q 6,7 +q 6,9 )X 6,S

[0095] According to the above single component material conservation equation, the gas material content of any one or more nodes can be determined, and then the gas material content of the remaining nodes can be obtained according to the above material conservation equation.

[0096] Next, according to the above energy determination formula of the circulation node or the adjacent node, the energy of the circulation node and the energy of the adjacent node are calculated, and then the energy conservation formula can be constructed according to the energy of the circulation node and the energy of the adjacent node.

[0097] The following is a description of the gas system energy optimization device for preventing excessive sulfur emissions provided by the present invention. The gas system energy optimization device for preventing excessive sulfur emissions described below and the gas system energy optimization method for preventing excessive sulfur emissions described above can be referenced to each other.

[0098] Based on any of the above embodiments, the present invention also provides a gas system energy optimization device for preventing excessive sulfur emissions, such as Figure 3 As shown, the device comprises:

[0099] A flow direction determining unit 310, configured to determine a gas flow direction of an adjacent node based on a gas flow direction of a flow node in a gas system, wherein the adjacent node refers to a node connected to the flow node;

[0100] An equation determination unit 320, configured to determine an energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes;

[0101] The energy optimization unit 330 is used to optimize the energy of the flow node and the adjacent nodes in the energy conservation equation based on the objective function and constraints. The objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraints are used to limit the upper limit of the unit sulfur content of the gas-consuming nodes in the gas system.

[0102] Based on any of the above embodiments, the objective function is:

[0103] COST=K1Q1+K2Q2+…+K n Q n ;

[0104] Where COST represents the total gas production cost of the gas system, K n represents the unit energy gas production cost of the nth gas production node, Q n represents the energy of the nth gas-producing node;

[0105] X k,s <C s,high ;

[0106] Where, X k,s represents the actual sulfur content of the kth gas consumption node, C s,high Indicates the upper limit of the sulfur content of the gas consumption node.

[0107] Based on any of the above embodiments, the equation determining unit 320 includes:

[0108] A gas composition determination unit, configured to determine the gas composition of the flow node and the gas composition of the adjacent nodes based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes;

[0109] The conservation equation determining unit is used to determine the energy conservation equation of the flow node based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas.

[0110] Based on any of the above embodiments, the conservation formula determining unit includes:

[0111] an energy determination unit, configured to determine the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas;

[0112] The conservation formula construction unit is used to construct the energy conservation formula of the circulation node based on the energy of the circulation node and the energy of the adjacent nodes.

[0113] Based on any of the above embodiments, the energy determination unit includes:

[0114] A content determination unit, configured to determine the gas material content of the circulation node and the gas material content of the adjacent nodes based on the gas composition of the circulation node and the gas composition of the adjacent nodes by using the law of conservation of material;

[0115] The energy determination subunit is used to determine the energy of the flow node and the energy of the adjacent nodes based on the gas material content of the flow node, the gas material content of the adjacent nodes and the calorific value of each gas.

[0116] Based on any of the above embodiments, the energy of the flow node and the energy of the adjacent node are determined based on the following formula:

[0117] Q i,j =q i,j ∑(H m X i,m );

[0118] In the formula, Q i,j represents the energy flowing from node i to adjacent node j, q i,j represents the gas material content flowing from node i to adjacent node j, H m Indicates the calorific value of gas, X i,m Indicates the gas composition.

[0119] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4As shown, the electronic device may include: a processor 410, a memory 420, a communication interface 430 and a communication bus 440, wherein the processor 410, the memory 420 and the communication interface 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 420 to execute the gas system energy optimization method for preventing excessive sulfur emissions, the method comprising: determining the gas flow direction of the adjacent node based on the gas flow direction of the circulation node in the gas system, wherein the adjacent node refers to the node connected to the circulation node; determining the energy conservation formula of the circulation node based on the gas flow direction of the circulation node and the gas flow direction of the adjacent node; optimizing the energy of the circulation node and the adjacent node in the energy conservation formula based on the objective function and the constraint condition, wherein the objective function is determined based on the gas production cost of each gas production node in the gas system, and the constraint condition is used to limit the upper limit value of the sulfur unit content of the gas consumption node in the gas system.

[0120] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for 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. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0121] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the gas system energy optimization method for preventing excessive sulfur emissions provided by the above methods, the method including: based on the gas flow direction of the circulation node in the gas system, determining the gas flow direction of the adjacent node, the adjacent node refers to the node connected to the circulation node; based on the gas flow direction of the circulation node and the gas flow direction of the adjacent node, determining the energy conservation equation of the circulation node; based on the objective function and constraints, optimizing the energy of the circulation node and the adjacent node in the energy conservation equation, the objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraints are used to limit the upper limit value of the unit sulfur content of the gas-consuming node in the gas system.

[0122] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned gas system energy optimization method for preventing excessive sulfur emissions, the method comprising: determining the gas flow direction of an adjacent node based on the gas flow direction of a circulation node in the gas system, the adjacent node referring to a node connected to the circulation node; determining the energy conservation equation of the circulation node based on the gas flow direction of the circulation node and the gas flow direction of the adjacent node; optimizing the energy of the circulation node and the adjacent node in the energy conservation equation based on an objective function and constraints, the objective function being determined based on the gas production cost of each gas-producing node in the gas system, and the constraints being used to limit the upper limit value of the unit sulfur content of the gas-consuming nodes in the gas system.

[0123] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A gas system energy optimization method for preventing excessive sulfur emissions, characterized in that: include: Based on the gas flow direction of the circulation node in the gas system, determining the gas flow direction of the adjacent node, wherein the adjacent node refers to a node connected to the circulation node; Determining an energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes; Based on the objective function and constraints, the energy of the circulation nodes and the adjacent nodes in the energy conservation equation is optimized. The objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraints are used to limit the upper limit of the unit sulfur content of the gas-consuming nodes in the gas system.

2. The method for optimizing gas system energy for preventing excessive sulfur emissions according to claim 1, characterized in that: The objective function is: COST=K1Q1+K2Q2+…+K n Q n ; Where COST represents the total gas production cost of the gas system, K n represents the unit energy gas production cost of the nth gas production node, Q n represents the energy of the nth gas-producing node; The constraints are: X k,s <C s,high ; Where, X k,s represents the actual sulfur content of the kth gas consumption node, C s,high Indicates the upper limit of the sulfur content of the gas consumption node.

3. The method for optimizing gas system energy for preventing excessive sulfur emissions according to claim 1, characterized in that: The determining of the energy conservation formula of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes includes: Determining the gas composition of the circulation node and the gas composition of the adjacent nodes based on the gas flow direction of the circulation node and the gas flow direction of the adjacent nodes; An energy conservation equation of the flow node is determined based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas.

4. The method for optimizing gas system energy for preventing excessive sulfur emissions according to claim 3 is characterized in that: The determining of the energy conservation equation of the flow node based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas includes: Determining the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas; An energy conservation equation of the circulation node is constructed based on the energy of the circulation node and the energy of the adjacent nodes.

5. The method for optimizing gas system energy for preventing excessive sulfur emissions according to claim 4, characterized in that: The determining the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas includes: Based on the gas composition of the circulation node and the gas composition of the adjacent nodes, the gas material content of the circulation node and the gas material content of the adjacent nodes are determined by using the law of conservation of material; Based on the gas material content of the flow node, the gas material content of the adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of the adjacent nodes are determined.

6. The method for optimizing gas system energy for preventing excessive sulfur emissions according to claim 5, characterized in that: The energy of the flow node and the energy of the adjacent node are determined based on the following formula: Q i,j =q i,j ∑(H m X i,m ); In the formula, Q i,j represents the energy flowing from node i to adjacent node j, q i,j represents the gas material content flowing from node i to adjacent node j, H m Indicates the calorific value of gas, X i,m Indicates the gas composition.

7. A gas system energy optimization device for preventing excessive sulfur emissions, characterized in that: include: A flow direction determining unit, configured to determine the gas flow direction of an adjacent node based on the gas flow direction of a flow node in the gas system, wherein the adjacent node refers to a node connected to the flow node; an equation determination unit, configured to determine an energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes; An energy optimization unit is used to optimize the energy of the flow node and the adjacent nodes in the energy conservation equation based on an objective function and constraints, wherein the objective function is determined based on the gas production cost of each gas-producing node in the gas system, and the constraints are used to limit the upper limit value of the unit sulfur content of the gas-consuming nodes in the gas system.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the gas system energy optimization method for preventing excessive sulfur emissions as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for optimizing the energy of a gas system for preventing excessive sulfur emissions as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for optimizing the energy of a gas system for preventing excessive sulfur emissions as claimed in any one of claims 1 to 6 is implemented.