Prediction and early warning method of SO2 concentration in flue gas from refinery heating furnace

By constructing a flow model of the fuel gas pipe network of the refinery heating furnace, calculating the SO2 concentration of the heating furnace flue gas and back-calculating the sulfur content limit of the gas source, the problem of SO2 prediction and early warning of the heating furnace flue gas in the existing technology has been solved, and a low-cost, The timely early warning function avoids accidents involving excessive smoke.

CN114239196BActive Publication Date: 2024-09-17SUPCON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111405558.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-09-17
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively predict and provide early warning of SO2 concentration in refinery heating furnace flue gas, leading to possible exceedance accidents. In addition, online analyzers are costly and do not detect in time, making it impossible to provide early warning.

Method used

By constructing a flow model of fuel gas in the pipe network, combined with real-time data and structural parameter information, the sulfur content and flue gas SO2 concentration of each heating furnace are calculated to determine whether it exceeds the standard, and the sulfur content limit of the gas source is back-calculated to remind operations Personnel warning.

Benefits of technology

It achieves low-cost, timely flue gas SO2 concentration prediction and early warning, avoids excessive SO2 in heating furnace flue gas, and ensures normal production of the refinery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114239196B
    Figure CN114239196B
Patent Text Reader

Abstract

The present invention relates to a prediction and early warning method for SO2 concentration in flue gas of a refinery heating furnace, comprising: determining the flow path of the fuel gas in the pipe network according to the valve switch state in the pipe network, and building a fuel gas pipe network flow model in combination with the material balance equation, the heat conservation equation and the pressure drop equation. The flow, pressure and composition of each node are calculated through the model, the sulfur content of the fuel gas of each heating furnace in the refinery is obtained, the SO2 concentration of the flue gas of the heating furnace is calculated, and the SO2 concentration of the flue gas of the heating furnace is calculated by comparing it with the SO2 concentration limit of the flue gas of the heating furnace (50mg / m 3 ) to implement alarm by comparison; calculate the sulfur content limit of fuel gas based on the SO2 concentration limit, calculate the sulfur content limit of each gas source based on the flow rate of each node calculated by the fuel gas pipeline network flow model, and implement early warning by comparing with the sulfur content data measured online at the gas source. The method of the present invention can effectively predict the SO2 concentration of flue gas and issue an alarm at a low cost, and can also implement early warning from the source to remind operators to handle and avoid excessive SO2.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of refinery harmful gas prediction, and in particular to a method for predicting and early warning the SO2 concentration of flue gas in a refinery heating furnace. Background Art

[0002] The fuel gas currently used in the heating furnaces of refining and chemical enterprises is self-produced dry gas, but the dry gas generally has a high sulfur content and needs to be desulfurized by a desulfurization device before it can go to the downstream heating furnaces (i.e., gas traps). However, due to the operational fluctuations of the desulfurization device, the desulfurization may not be complete, and the dry gas after desulfurization still has a high sulfur content. At this time, if it still goes to the downstream heating furnace, it may cause the SO2 concentration of the flue gas of the heating furnace to exceed the standard. However, it is also possible that it will not exceed the standard, because this dry gas with a high sulfur content is mixed and redistributed with other gas source fuel gas along the pipeline in the pipeline network to the downstream heating furnace. The sulfur content of the fuel gas may not be too high, or even if it is a little high, the SO2 concentration in the flue gas will not exceed the limit due to the different "sulfur tolerance" capacity of each heating furnace. Therefore, it is necessary to study the impact of each fuel gas source on the sulfur content of the downstream heating furnace fuel gas and the impact on the SO2 concentration of the heating furnace flue gas.

[0003] At present, the research on flue gas of heating furnaces mainly focuses on waste heat recovery, efficiency improvement, energy conservation and emission reduction. The prediction of SO2 in the flue gas of steel rolling heating furnaces in the steel industry is mainly to obtain the fuel composition of the heating furnace through the analyzer. However, if each heating furnace is equipped with an online analyzer for sulfur content in fuel gas, the investment will be huge due to the large number of refinery equipment, the number of heating furnaces is as many as dozens, and the unit price of the online analyzer is not cheap. Moreover, the online analyzer measures the current sulfur content of the fuel gas, and it is impossible to determine in advance the impact of the sulfur content of each gas source of the refinery fuel gas on the sulfur content of the heating furnace fuel gas and the SO2 concentration of the heating furnace flue gas. That is, the online analyzer only analyzes the sulfur content of the fuel gas at the current moment, and has no early warning function.

[0004] Therefore, a prediction and early warning method for the SO2 concentration in flue gas from refinery heating furnaces is urgently needed. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a method for predicting and warning the SO2 concentration of flue gas in a refinery heating furnace. The SO2 concentration of the flue gas of the heating furnace can be predicted and an alarm can be issued according to the sulfur content of the gas source.

[0007] In addition, another purpose of the present invention is to implement early warning of the sulfur content of the gas source from the source, and remind operators to intervene and deal with it in advance when the sulfur content of the gas source exceeds the limit, so as to avoid accidents in which the SO2 of the downstream heating furnace fuel gas and flue gas exceeds the standard, and ensure the normal production of the refining enterprise.

[0008] (II) Technical solution

[0009] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0010] In a first aspect, an embodiment of the present invention provides a method for predicting and warning SO2 concentration in flue gas of a refinery heating furnace, comprising:

[0011] S10. For the refinery to be analyzed, the flow path of the fuel gas in the pipeline network is determined according to the valve switch status in the fuel gas pipeline network, and a flow model of the fuel gas in the pipeline network is constructed, wherein the flow model covers: nodes and pipelines connected between nodes; wherein nodes include: gas sources, heating furnaces (i.e., gas wells), and connection intersections between pipelines (three or more pipelines connected);

[0012] S20, obtaining real-time data of the refinery and structural parameter information of the fuel gas pipeline network in the refinery, wherein the real-time data includes: gas source flow rate, pressure, composition test analysis data, sulfur content online analysis data, and fuel gas flow rate and pressure of the heating furnace;

[0013] S30, initializing the composition data of the internal nodes (nodes other than the gas source and the gas well), jointly solving the material balance equation and the energy conservation equation of each node, the material balance equation and the energy conservation equation of each pipeline, and the pressure drop equation of each pipeline, and constructing the flow model of the fuel gas in the pipeline network. When the calculation convergence conditions and the accuracy optimization conditions are met, the calculation ends, and the flow, pressure and composition of each node are obtained;

[0014] S40, calculate the sulfur content of the fuel gas of each heating furnace by the fuel gas network flow model, and calculate the SO2 concentration of the flue gas of the heating furnace, and judge whether the SO2 concentration of the flue gas of each heating furnace exceeds the environmental protection limit of 50mg / m 3 Implement alarm, and send out alarm information if it exceeds;

[0015] S50, according to the environmental protection limit of SO2 concentration in heating furnace flue gas 50mg / m 3 The sulfur content limit of the heating furnace fuel gas is calculated by reverse calculation, and the sulfur content limit of each gas source is calculated by combining the flow rate of each node calculated by the fuel gas pipeline network flow model. It is determined by judging whether the online sulfur content analysis data of each gas source exceeds the calculated sulfur content limit of the gas source fuel gas. If it exceeds, an early warning is implemented to remind that the high sulfur content of the gas source will cause an excessive SO2 accident in the flue gas of the downstream heating furnace.

[0016] In a second aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for predicting and warning the SO2 concentration in the flue gas of a refinery heating furnace as described in any one of the first aspects above.

[0017] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for predicting and warning the SO2 concentration in flue gas from a refinery heating furnace as described in any one of the first aspects above.

[0018] (III) Beneficial effects

[0019] The testing method of the present invention establishes a flow model of the fuel gas in the pipeline network, and then calculates the sulfur content in each heating furnace based on the real-time data and basic information of the refinery's current fuel gas, and then determines whether the limit value is reached. Compared with the existing online analyzers, the use cost is very high, the detection is not timely, and the purpose of early warning of the refinery and early intervention cannot be achieved.

[0020] The method of the present invention is used to predict the SO2 concentration of the flue gas of the heating furnace, and then to intervene in advance when it exceeds the limit, which can effectively reduce the cost of the refinery and ensure the high-efficiency production of the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1A A schematic diagram of a flow chart of a method for predicting and warning SO2 concentration in flue gas from a refinery heating furnace provided by an embodiment of the present invention;

[0022] Figure 1B A schematic diagram of a flow chart of a gas source early warning provided by another embodiment of the present invention;

[0023] Figure 2 A schematic diagram of a flow model of fuel gas in a pipeline network provided by an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a possible flow path 1 of the fuel gas in the example;

[0025] Figure 4 is a schematic diagram of a possible flow path 2 of the fuel gas in the example;

[0026] Figure 5 is a schematic diagram of the fuel gas flow mixing path in the example;

[0027] Figure 6 It is the pipeline relationship layout diagram under the current flow path in the example;

[0028] Figure 7It is the pipe network topology diagram under the current flow path in the example;

[0029] Figure 8 A schematic diagram of a node corresponding to a mixer node in an example, i.e., a connection intersection of more than three pipelines;

[0030] Fig. 9 is a schematic diagram of the separator in the example. DETAILED DESCRIPTION

[0031] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0032] At present, after obtaining the sulfur content of the fuel gas source, accurately judging the sulfur content changes of the fuel gas of the heating furnaces of each downstream device and knowing the SO2 concentration of the flue gas of the heating furnaces is the premise and basis for taking relevant measures in a targeted manner to avoid excessive SO2 in the flue gas of each downstream heating furnace after the sulfur content of the gas source dry gas is too high. To this end, the present invention provides a prediction and early warning method for the SO2 concentration of flue gas in a refinery heating furnace, which can calculate the distribution of the sulfur content of the fuel gas in the pipeline network, obtain the sulfur content in the fuel gas of each device heating furnace, and give early warnings for the sulfur content of the fuel gas of the heating furnace and the SO2 concentration in the flue gas, so as to help enterprises know the influence of the sulfur content of a certain fuel gas source on the sulfur content of the fuel gas of each downstream heating furnace and the influence on the SO2 concentration of the flue gas of the heating furnace. The enterprise can then take relevant measures before the SO2 concentration data in the CEMS exceeds the standard to avoid excessive SO2 concentration in the flue gas of the heating furnace.

[0033] The present invention mainly studies the mixing and redistribution of sulfur content and flow in the pipeline network, and the distribution of flow is mainly related to the flow path of the fuel gas and the pressure drop of the pipe section. The accuracy of the pipe section pressure drop calculation is very important. The fuel gas pipeline flow model of the present invention is a model constructed based on the hydraulic equation, material balance equation, and energy balance equation. The accuracy of the model is improved by adjusting the friction coefficient parameters of each pipe section. Since the temperature of the fuel gas does not change much during the pipeline transportation process, it is assumed in the modeling process that the pipeline is insulated, and the resistance loss of the fuel gas during the pipeline flow process only causes the pressure head loss, and does not cause internal energy changes and temperature drops. The temperature remains unchanged during the calculation process of the following embodiment.

[0034] Embodiment 1

[0035] like Figure 1A As shown, an embodiment of the present invention provides a method for predicting and warning the SO2 concentration of flue gas in a refinery heating furnace. The execution subject of the method of this embodiment can be any electronic device that carries the computer program, and any electronic device can implement the method of this embodiment. The method of this embodiment may include the following steps:

[0036] S10. For the refinery to be analyzed, the flow path of the fuel gas in the pipeline network is determined according to the valve switch status in the fuel gas pipeline network, and a flow model of the fuel gas in the pipeline network is constructed. The flow model covers: nodes and pipelines connecting between nodes.

[0037] The nodes of this embodiment may include: the gas supply end and the fuel gas source, the gas consumption end and the connection intersection of three or more pipelines; the gas consumption end here refers to each heating furnace in the downstream of the fuel gas pipeline network. The gas supply end, that is, the gas source, is the upstream of the fuel gas pipeline network. In other words, the nodes may include: the gas source, the heating furnace (gas well) and the connection intersection between pipelines (three or more pipelines connected)

[0038] Generally, valves in a refinery may include smart valves and manual valves. Some advanced companies are fully equipped with smart valves, while some traditional companies may still use manual valves and a small number of smart valves. Therefore, for these two situations, the following method for establishing a fuel gas flow model can be provided in this embodiment.

[0039] It should be noted that any intelligent valve can automatically obtain information on the switch status and upload real-time data.

[0040] For example, the valves in a refinery include: manual valves and smart valves, which collect the switch status of each manual valve;

[0041] According to the flow path of fuel gas in the refinery pipeline network, a multi-condition pipeline network topology model is constructed;

[0042] According to the acquired current switch states of the manual valve and the intelligent valve and the multi-operating-condition pipeline network topology model, a fuel gas flow model, ie, a flow model of the fuel gas in the pipeline network, is constructed.

[0043] S20, acquiring the real-time data of the refinery and the structural parameter information of the fuel gas pipeline network in the refinery, wherein the real-time data includes: gas source flow rate, pressure, composition test analysis data, sulfur content online analysis data, and fuel gas flow rate and pressure of the heating furnace.

[0044] For example, the real-time data is retrieved from the refinery's real-time database and LIMS database through a pre-configured data interface, and the basic information is retrieved from the basic information database;

[0045] The real-time database stores real-time data detected by the flow meter of each gas source, real-time data detected by the pressure gauge of each gas source, artificial test analysis data of the corresponding gas source composition, and real-time data detected by the sulfur content online analyzer;

[0046] The pipe network structure parameter information includes: the length of the jth pipe l j , the diameter of the jth pipe d j , friction coefficient λ of the jth pipeline j, the equivalent length le of the pipe fitting on the pipeline j j .

[0047] S30, initialize the composition data of the internal nodes (nodes except gas sources and gas wells), jointly establish the material balance equation and energy conservation equation of each node, the material balance equation and energy conservation equation of each pipeline, and the pressure drop equation of each pipeline, and construct a flow model of the fuel gas in the pipeline network. When the calculation convergence conditions and accuracy optimization conditions are met, the calculation ends and the flow, pressure and composition of each node are obtained.

[0048] S40, combined with real-time data and structural parameter information, the sulfur content of each heating furnace fuel gas is calculated by the fuel gas network flow model, and the SO2 concentration of the heating furnace flue gas is calculated. By judging whether the SO2 concentration of each heating furnace flue gas exceeds the environmental protection limit of 50mg / m 3 Implement an alarm and issue an alarm message if it is exceeded.

[0049] Specifically, the flow rate, pressure and composition data of each node (including the flow rate, pressure, composition and sulfur content of the fuel gas of each heating furnace) are calculated by the fuel gas pipeline flow model.

[0050] The SO2 concentration of the flue gas is calculated based on the sulfur content of the heating furnace fuel gas, combined with the fuel gas flow rate and flue gas flow rate:

[0051]

[0052] In the formula, (SO2) t is the SO2 concentration of flue gas from heating furnace t, S ct is the sulfur content of the fuel gas of the heating furnace t calculated by the model (mg / kg), η is the conversion rate of SO2 to SO3, F rt is the actual measured fuel gas flow rate of heating furnace t (t / h), FY rt is the actual measured flue gas flow rate of heating furnace t (Nm 3 / h).

[0053] The calculated flue gas SO2 concentration is compared with the SO2 environmental protection limit of 50mg / m 3 Compare and issue an alarm if the value exceeds the limit.

[0054] S50, according to the environmental protection limit of SO2 concentration in heating furnace flue gas 50mg / m 3 The sulfur content limit of the heating furnace fuel gas is calculated by reverse calculation, and the sulfur content limit of each gas source is calculated by combining the flow rate of each node calculated by the fuel gas pipeline network flow model. It is determined by judging whether the online sulfur content analysis data of each gas source exceeds the calculated sulfur content limit of the gas source fuel gas. If it exceeds, an early warning is implemented to remind that the high sulfur content of the gas source will cause an excessive SO2 accident in the flue gas of the downstream heating furnace.

[0055] Specifically, the sulfur content limit of the heating furnace fuel gas is calculated based on the environmental protection limit of flue gas SO2:

[0056]

[0057] The sulfur content limit of the fuel gas of the heating furnace is XS t and the flow rate F of each node calculated by the fuel gas pipeline network flow model i According to the layout characteristics of the nodes and the calculation method of the mixer and separator composition, the sulfur content limit XS of each node is calculated. i (including the sulfur content limit of the gas source XS k ).

[0058] The calculated sulfur content limit of the gas source XS k The sulfur content S of the gas source measured by the online analyzer k For comparison, if S k ≥XS k , an early warning of sulfur content in the gas source will be issued to remind the operation and dispatching personnel to intervene and deal with it in time to avoid excessive SO2 concentration in the flue gas of the downstream heating furnace.

[0059] In this embodiment, the preset limit of the sulfur content in the heating furnace fuel gas can be reversely calculated under the sulfur balance framework based on the environmental protection limit of the SO2 concentration in the heating furnace flue gas, the heating furnace flue gas flow rate and the heating furnace fuel gas flow rate. By comparing the relative sizes of the sulfur content calculated by the flow model of the fuel gas in the pipeline network and the preset limit of the sulfur content in the fuel gas, an early warning can be implemented for the heating furnace.

[0060] The method of the present invention can effectively predict the SO2 concentration of flue gas at low cost, and enables the refinery to intervene in the fuel gas before the sulfur dioxide concentration of the flue gas of the heating furnace exceeds the standard, thereby avoiding the sulfur dioxide concentration of the flue gas of the heating furnace exceeding the standard.

[0061] In this embodiment, the sulfur content of the gas consumption end (i.e., the heating furnace) is predicted based on the sulfur content of the gas source, and the SO2 concentration of the flue gas of the heating furnace is predicted based on the sulfur content of the fuel gas at the gas consumption end. By judging the relative size between the SO2 predicted value and the SO2 environmental protection limit, an early warning is implemented for the heating furnace, so that if the sulfur content of a certain gas source is known to be abnormal, it can be timely identified that the SO2 concentration of the flue gas of some downstream heating furnaces will exceed the limit;

[0062] In addition, based on the environmental protection limit of SO2 concentration in the flue gas of the heating furnace, the sulfur content limit of the fuel gas of the heating furnace can be calculated in reverse. Before the fuel gas enters the heating furnace, early warning can be implemented to adjust the operation of the heating furnace to avoid excessive SO2 concentration in the flue gas. If the sulfur content of a certain gas source is abnormal, it can be identified which downstream heating furnaces will exceed the sulfur content of the fuel gas.

[0063] Embodiment 2

[0064] Combination Figure 1A , 1B and Figure 2 As shown, an embodiment of the present invention provides a method for predicting the SO2 concentration of flue gas in a refinery heating furnace. In the following embodiment, the gas source / gas supply end is regarded as the upstream, the gas consumption end such as the heating furnace is regarded as the downstream, and the valves in the refinery include manual valves and intelligent valves. The method of this embodiment is specifically described as follows.

[0065] 201. Collect the flow rate of all gas sources, the pressure of all gas sources, the composition analysis data of each gas source, the online analysis data of the sulfur content of each gas source, and the fuel gas flow rate and pressure of each downstream heating furnace.

[0066] It is especially necessary to collect real-time data of all gas sources in the refinery. In practical applications, for the specified refinery to be analyzed, it can be read from the refinery's real-time database. That is, by configuring the data reading interface of the current electronic equipment, the above real-time data and the following relational data can be collected from the real-time database and LIMS database through OPC.

[0067] In addition, the above-mentioned composition analysis data are also data obtained in advance manually or by an online analyzer and stored in a LIMS database.

[0068] It should be noted that the real-time data measured by various intelligent flow meters, pressure gauges, etc. are stored in the real-time database of each refinery.

[0069] 202. Receive the switch status of the manual valve in the pipeline in the refinery input by the user.

[0070] That is, the switch state of the manual valve is written into a pre-set database in the form of bit numbers of "0" and "1" variables, and the switch state of the manual valve is manually indicated by inputting "0" and "1" numerical values ​​in reverse control.

[0071] This step is not a mandatory step. If the refinery uses only intelligent valves (such as automatic control valves), that is, there is no manual valve, the above step 202 is not required.

[0072] However, due to the high cost of smart valves, some refineries may not be able to fully use them. Therefore, considering the scenarios where manual valves exist, the switch status of the manual valves is obtained manually.

[0073] Since the hand valve of the fuel gas pipeline network directly controls the direction of the fuel gas, but the switch indication of the hand valve has no signal and data collection, the switch state of the hand valve cannot be converted into data for judgment under normal circumstances. Therefore, this embodiment proposes to use the reverse control bit number and manually set the "0" and "1" variables to convert the switch state of the hand valve into "0" and "1" data, so that the flow path of the fuel gas in the pipeline network can be determined.

[0074] The flow path of fuel gas in the pipeline network will be different when the switch state of the hand valve is different. Therefore, a multi-condition pipeline network topology model for identifying the switch state of the hand valve is constructed.

[0075] 203. Based on all possible flow paths of fuel gas in the pipeline network in the refinery (such as all flow paths that have appeared in history), a multi-condition pipeline network topology model is constructed.

[0076] In other words, the flow paths of fuel gas in the pipeline network that have appeared in the enterprise history (such as within one month or half a year) can be analyzed in advance to determine the main possible paths of fuel gas flow in the pipeline network, and then build a multi-condition pipeline network topology model;

[0077] Specific address, analysis of the main pipeline network path conditions of fuel gas flow that occurred in the refinery history;

[0078] Under different working conditions, different virtual bit numbers of flow and pressure data are set for the upstream gas source and the downstream heating furnace; according to the set manual valve switch status "0", "1" data, the pipeline path of the fuel gas is identified, the working condition type is determined, and the flow and pressure data of the gas source and the downstream heating furnace are read into the established virtual bit number, thereby constructing a pipeline topology model under multiple working conditions.

[0079] 204. Based on the switch state of the manual valve, determine the flow path of the fuel gas in the pipeline network in the pipeline network topology model corresponding to the current working condition, and construct a flow model of the fuel gas pipeline network (ie, the aforementioned fuel gas flow model).

[0080] 205. According to the flow model, obtain the material balance equation and energy balance equation of each node and pipeline, as well as the convergence condition and accuracy optimization condition;

[0081] In addition, the composition data of the internal nodes are initialized, the material balance equation and energy conservation equation of each node, the material balance equation and energy conservation equation of each pipeline and the pressure drop equation of each pipeline are combined, and the flow model of the fuel gas in the pipeline network is constructed. When the calculation convergence conditions and accuracy optimization conditions are met, the calculation ends and the flow, pressure and composition of each node are obtained; the internal nodes are nodes other than gas sources and gas wells.

[0082] Specifically, the construction and solution implementation process of the fuel gas flow model in the pipeline network is as follows: Figure 2 shown.

[0083] The data collected by the acquisition prediction system as described in step 201 above include the flow rate F of the kth gas source. rk , the pressure of the kth gas source P rk , the composition analysis data of the kth gas source z xk , online analysis data S of sulfur content of the kth gas sourcek and the fuel gas flow F of the downstream u heating furnaces rt And the pressure data P of the remaining heating furnace;

[0084] Among them, F rk is the actual flow rate of gas source k, P rk is the actual pressure of the gas source k; z xk is the content of component x in the gas source k, S k is the online analysis data of sulfur content in gas source k; F rt is the actual flow rate of fuel gas of heating furnace t, and u is the number of heating furnaces in the refinery.

[0085] 2051. Based on the collected real-time data, initialize the composition data of the internal nodes, adopt the node composition transmission strategy based on the following formula (8) to formula (11) to perform iterative calculations, traverse each node with multiple pipelines to make it converge.

[0086] When the convergence condition is met, the fuel gas pressure P of the heating furnace t is solved according to the method of calculating the pressure drop in formula (6): ct and the actual measured pressure P of the fuel gas in the heating furnace t rt Satisfy the accuracy optimization conditions. If so, end the process and obtain the sulfur content S of the heating furnace of each pipe section in the pipe network. cj Otherwise, readjust the friction coefficient of the pipeline and re-obtain the pressure drop coefficient C according to formula (7): j , and perform iterative calculations according to (8) to (12).

[0087] That is, when the convergence condition and the precision optimization condition are met, the calculation is completed, and the flow, pressure and composition of each node are obtained, that is, the composition including the sulfur content of each heating furnace is obtained. This embodiment improves the accuracy of the calculation result according to the difference of the equivalent length of the pipeline.

[0088] The internal nodes initialized above are nodes other than the gas source and the gas sink.

[0089] In this embodiment, the node composition transmission strategy may be to copy the composition of the previous node to the next node according to the flow path of the fuel gas, so as to complete the initialization of the composition of each node;

[0090] Alternatively, in other embodiments, the node composition transmission strategy may be to copy the composition of an adjacent node to the nearest node to complete the initialization of the node composition. This embodiment is not limited thereto and is selected according to actual needs.

[0091] The following is an explanation of the formulas and calculation processes that need to be used.

[0092] 2051-1. According to the composition analysis data of each gas source xiThe relative molecular mass M of the fuel gas at node i is calculated by using formula (3): i , and then calculate the fuel gas standard density ρ at node i according to formula (4) i :

[0093] M i =∑W x z xi (3)

[0094]

[0095] W in formula (3) x represents the relative molecular mass of component x, z xi is the content of component x at node i, z xi Derived from LIMS laboratory analysis data.

[0096] 2051-2. The density of the fuel gas in pipeline j is the average value of the fuel gas density at nodes i and i+1 at both ends of pipeline j, ρ j :

[0097]

[0098] ρ i+1 is the standard density of fuel gas at node i, ρ j is the average density of fuel gas in pipeline j.

[0099] According to the Bernoulli equation, the pressure drop equation of the fuel gas in pipeline j is:

[0100] ΔP j =C j ·G j 2 (6)

[0101] Where j is the subscript of the pipeline, C j is the pressure drop coefficient of pipe j, G j is the mass flow rate of the fuel gas flowing through the pipeline j. Since the density of the fuel gas is relatively low, the gravitational potential energy is ignored in this embodiment, that is, the gravitational potential energy is not considered in all calculations.

[0102] And, get the length l of the jth pipeline in the refinery j , pipe diameter d j , the friction coefficient λ of pipe j j And the equivalent length of pipe fittings including elbows, valves, etc. j , C obtained by formula (7) j Substitute into formula (6) to calculate the pressure drop coefficient of each pipeline.

[0103]

[0104] 2051-3. Construct material balance equation:

[0105] For any node i, we have:

[0106] For any pipeline j, we have:

[0107] Construct the energy balance equation:

[0108] For any node i, we have:

[0109] For any pipeline j, we have:

[0110] In formula (8), N represents the number of pipe segments directly connected to the node, G j is the mass flow rate of the pipe j connected to the node i; r represents the direction, when the fuel gas flow direction points to the node i, r = 0; when the fuel gas flow direction points to the node i, r = 1;

[0111] In formula (9), M represents the number of nodes directly connected to the pipeline j, G i is the mass flow rate of node i connected to pipe j; r' represents the direction, when the flow of node i flows into pipe j, r' = 0; when the flow of node i flows out of pipe j, r' = 1;

[0112] In formula (10) and formula (11), P j is the pressure of the fuel gas flowing out of the pipeline connected to the node i, P i is the pressure at node i connected to pipe j.

[0113] The flow rate and pressure of each internal node are calculated by combining (01) to (09), and the composition of each internal node is calculated based on the flow rate and node arrangement.

[0114] During the calculation process, there are arrangements of nodes including: mixers (such as Figure 8 as shown) and separator (as Fig. 9 shown);

[0115] If the node is a mixer connection, the composition and flow of node one and the composition and flow of node two are known, and the composition of the mixed node is solved:

[0116]

[0117] If the node is a connection method of the separator, and the composition of a certain node is known, the composition of the decomposed node after decomposition is the same as the composition of the node;

[0118] The calculation is iterated continuously until the calculation converges and meets the calculation convergence condition: finally, the average of the absolute values ​​of the composition deviations of the n-1th and nth times is within the acceptable range:

[0119]

[0120] By adjusting the friction coefficient λ of each pipe j Improve the computational accuracy of flow models:

[0121]

[0122] The above F i represents the traffic of node i, z hx represents the content of the mixed node component x, m represents the number of nodes; P rt Indicates the actual measured pressure of the fuel gas in the heating furnace t, P ct represents the fuel gas pressure of heating furnace t calculated based on the flow model of fuel gas in the pipeline network, u represents the number of heating furnaces; δ is the convergence error, and τ is the accuracy error;

[0123] x is the serial number of the component, z ix is the content of component x at node i.

[0124] In the specific iterative calculation, in this embodiment, the node composition results calculated in the last time can be reassigned to the corresponding nodes for initial composition, until the calculation results of the last two times are less than the specified convergence error δ.

[0125] In this embodiment, the equivalent length of the pipeline is used to measure the pressure drop loss caused by valves, elbows and other pipe fittings. Due to differences in installation, maintenance and replacement time, the roughness of the pipeline will be different. After the same pipeline has been used for several years, its roughness will also change. In order to ensure the accuracy of the model, it is necessary to adjust the roughness of the pipeline, that is, the friction coefficient parameter of the pipeline, to ensure that the calculation result is within the acceptable accuracy error τ range.

[0126] Therefore, the accuracy and precision of pipeline pressure drop calculation are very important. In order to improve the accuracy of the flow model, this embodiment uses the equivalent length of each pipeline to adjust the equivalent length of each pipeline. j , in order to control the average relative error between the calculated pressure data and the collected pressure data within an acceptable range.

[0127] 206. After the fuel gas network flow model calculates the flow, pressure and composition data of each node, the sulfur content of the heating furnace fuel gas, combined with the fuel gas flow and flue gas flow, is used to calculate the SO2 concentration of the flue gas based on formula (1). The above composition data includes the flow, pressure, composition and sulfur content of the fuel gas of each heating furnace.

[0128] The calculated flue gas SO2 concentration is compared with the SO2 environmental protection limit, and an alarm is issued if it exceeds the limit.

[0129] Usually, the SO2 concentration in flue gas does not exceed 50mg / Nm 3 , more than 50mg / Nm 3 Alarm is issued based on the environmental protection limit of flue gas SO2 and the sulfur content limit of heating furnace fuel gas XS t and the flow rate F of each node calculated by the fuel gas pipeline network flow model i According to the layout characteristics of the nodes and the calculation method of the mixer and separator composition, the sulfur content limit XS of each node is calculated. i (including the sulfur content limit of the gas source XS k ), and the calculated sulfur content limit of the gas source XS k The sulfur content S of the gas source measured by the online analyzer k For comparison, if S k ≥XS k , an early warning of sulfur content in the gas source will be issued to remind the operation and dispatching personnel to intervene and deal with it in time to avoid excessive SO2 concentration in the flue gas of the downstream heating furnace.

[0130] It should be noted that the temperature remains unchanged in any of the above embodiments. Since the temperature has little effect on the sulfur content of the fuel gas during the entire pipeline network modeling process, the modeling process does not need to consider temperature changes. The fuel gas pipeline model is constructed directly based on the hydraulic equation of the pipeline network under the constraints of material balance and energy balance.

[0131] The above method achieves accurate prediction of SO2 concentration and can effectively implement early warning of manual intervention.

[0132] Embodiment 3

[0133] The methods of the above-mentioned first and second embodiments are described below with an example.

[0134] The main fuel gas sources of a refinery are: dry gas after primary catalytic stripping, dry gas after secondary catalytic stripping, PSA desorption gas, dry gas after gas cabinet stripping and natural gas. The source of fuel gas is referred to as gas source, and the flow and pressure data of each gas source are shown in Table 1 below. These data are real-time data measured by the flow meter and pressure gauge of each gas source. These data are uploaded to the real-time database and can be collected from the real-time database. The upstream of this embodiment is the gas supply end, that is, these gas sources.

[0135] Table 1 Flow rate and pressure of each gas source

[0136]

[0137] The composition analysis of each gas source comes from manual laboratory analysis data (LIMS analysis data, as shown in Table 2 below), but the sulfur content data comes from the sulfur content online analyzer. Because the frequency of manual laboratory analysis is too low, real-time monitoring cannot be achieved, especially when the sulfur content of a gas source exceeds the standard, it is too late to conduct laboratory analysis, so the sulfur content is obtained by the online analyzer. For other components except sulfur content, LIMS analysis data is used, because the composition data of each gas source during the stable production process of the device is basically stable within the interval time period of the laboratory analysis frequency. LIMS data is obtained from the LIMS database, and the real-time data of sulfur content is collected from the real-time database.

[0138] Table 2 Composition analysis of each gas source (LIMS analysis data)

[0139]

[0140] The gas consumption end downstream of the refinery is mainly the heating furnaces of some devices, which need to consume fuel gas, mainly including the heating furnaces of atmospheric and vacuum, reforming, hydrogenation and other units. The flow and pressure data of each heating furnace are also real-time data, which can be collected from the real-time database. The pressure and flow data of each downstream gas consumption end are shown in Table 3 below. The hydrogenation unit described in this embodiment includes many hydrogenation units, such as: diesel hydrogenation unit, wax oil hydrogenation unit, residual oil hydrogenation unit, etc., because the relative position of the pipeline network is similar, it will not be described in detail here.

[0141] Table 3 Pressure and flow rate of each gas consumption end

[0142]

[0143]

[0144] The fuel gas sources of the refinery include PSA (Pressure-Swing Absorption) desorbed gas, dry gas after catalytic desorption, dry gas after catalytic desorption, dry gas after gas cabinet desorption and natural gas. The main gas consumption ends are atmospheric and vacuum heating furnaces, reforming heating furnaces and heating furnaces of hydrogenation units. The main flow paths of fuel gas are as follows: Figure 3 and Figure 4 As shown. The "○" in the figure indicates the fuel gas source, and the "□" indicates the gas consumption end. The raw gas of PSA may come from the dry gas after the first catalytic desorption, or from the dry gas after the second catalytic desorption. The desorbed gas of PSA goes to the fuel gas pipeline network. When the raw gas of PSA comes from the first catalytic desorption, the dry gas after the second catalytic desorption is reformed to make fuel gas; when the raw gas of PSA comes from the second catalytic desorption, the dry gas after the first catalytic desorption goes to the fuel gas pipeline network.

[0145] Figure 5 is the mixing path diagram of the fuel gas flow, Figure 5 The four valves shown in the figure are manual valves (the "0" and "1" variables are manually input in the form of reverse control bit numbers to indicate the switch status of the valves, which are collected into the real-time database to determine the corresponding flow path of the fuel gas at this time. It should be noted that there are actually many manual valves in the pipeline topology diagram, but only those manual valves that allow the fuel gas to have several flow paths are input with "0" and "1" variables).

[0146] Since the price of automatic control valves is relatively high and the path switching of fuel gas is not frequent, not all valves in the fuel gas pipeline network in the refinery use automatic control valves with sensors (i.e., smart valves).

[0147] Figure 5 The valve switch status shown is: V1=0, V2=1; V3=1, V4=0. The corresponding working conditions are: the dry gas after the first catalytic degassing goes to the fuel gas pipeline network, the dry gas after the second catalytic degassing goes to PSA as raw gas, and the reformed fuel gas all comes from the fuel gas pipeline network.

[0148] Construct a fuel gas flow model in the pipeline network:

[0149] Step 1: Select flow data of 7 nodes and pressure data of the remaining 1 node from the 8 nodes (gas source, gas consumption end, intersection of three or more pipelines can be called nodes) of PSA desorption gas, first catalytic dry gas, second catalytic dry gas, gas cabinet dry gas, natural gas, atmospheric pressure reduction, reforming, and hydrogenation units, as shown in Table 4 below.

[0150] In this embodiment, the connection between pipelines is a node, excluding the connection of only two pipe sections (ie, pipelines), and each node is connected to at least three pipe sections.

[0151] Table 4 Flow and pressure data collected by pipeline network modeling

[0152]

[0153] Step 2: Collect LIMS analysis composition data and sulfur content online analysis data of each gas source, as shown in Table 2.

[0154] Figure 5 The piping relationship layout of the current flow path is shown in Figure 6 As shown, Figure 5 The current flow path in the pipeline network can be converted into a pipeline network topology diagram, that is, each pipe segment in the pipeline network is regarded as a line segment with certain physical properties. The pipeline network diagram composed of these line segments with certain physical and logical relationships forms a pipeline network topology diagram.

[0155] based on Figure 6 The pipeline relationship layout diagram shows that there are 13 pipe segments under the current flow path. Figure 7The displayed pipe network topology diagram shows that there are 14 nodes under the current flow path, of which 1, 2, 6, 12, 14, 11, 9, and 7 are external nodes, and 3, 4, 5, 8, 10, and 13 are internal nodes.

[0156] Here are some corresponding instructions for external nodes:

[0157] 1 node: PSA desorption gas; 2 nodes: dry gas after catalytic desorption;

[0158] Node 6: atmospheric and vacuum fuel gas; Node 7: dry gas after gas cabinet degassing;

[0159] 12 nodes: dry gas after secondary catalytic stripping; 9 nodes: natural gas;

[0160] 14 nodes: reforming fuel gas; 11 nodes: hydrogenation unit fuel gas.

[0161] Step 3: The collected gas source LIMS data is used as the initialization composition data of the gas source, and the initialization composition data of other nodes is collected from the composition data of the adjacent gas source, and the relative molecular mass and standard density of each node are calculated, that is, the above formulas (3) and (4) are used for calculation;

[0162] For example, the composition of node 9 can calculate the molecular weight and standard density of node 9; when initializing the molecular weight and density of node 11, the molecular weight or density of node 9 can be taken.

[0163] The fuel gas density in the pipeline can be calculated using the above formula (5).

[0164] Step 4: Based on the above formulas (7) and (6), calculate the pressure drop coefficient of each section of the pipeline.

[0165] For example: knowing the density and molecular weight of node 11 and the structural parameters of the pipeline (the length of the pipeline l j , Pipe diameter d j , and the equivalent length of pipe fittings including elbows, valves, etc. j ,) can calculate the pressure drop coefficient of pipe section Pipe13.

[0166] Step 5: Calculate the flow rate of each node by material balance, and calculate the pressure of each node by energy balance:

[0167] For example, the flow rate of node 11 can be calculated by material balance, and the pressure drop of Pipe 13 can be calculated from this, thereby calculating the pressure and flow rate of node 10.

[0168] After knowing the flow rate of each node, according to the principles of mixer nodes and separator nodes, the composition of the mixed flow can be calculated to obtain the sulfur content.

[0169] Step 6: When the average of the sum of the absolute values ​​of the deviations between the calculated node composition and the same node composition calculated in the previous calculation is within an acceptable range, the calculation is considered to be completed. Otherwise, the calculated composition will be used as the initial value for the next calculation until the deviation of the calculated result is within an acceptable range, that is, the above formula (13) is satisfied.

[0170] Step 7: Since the pipe friction coefficient is an uncertain estimated value, in order to improve the accuracy of the final result, the pipe friction coefficient can be adjusted so that the calculated result of the pressure is within the specified error range, that is, it satisfies the above formula (14).

[0171] That is to say, the calculated pressure data P ct The actual measured pressure data P of the heating furnace rt By comparing the results, the accuracy of the fuel gas pipeline network flow model can be evaluated. Adjust the friction coefficient λ of the pipeline j , which will affect the pipeline pressure drop parameter C j , which in turn affects the result of the final gas consumption end pressure calculation.

[0172] The flow model of the fuel gas (flow chart as shown in Figure 2 As shown in Table 2, the unknown parameters (mainly pressure parameters) can be calculated, and then the relative deviation between the calculated result and the actual pressure value is compared. If the average value of the absolute value of the relative deviation is within the specified error range, the result (including the pressure at the gas consumption end and the composition data including the sulfur content) is output; if the average value of the absolute value of the relative deviation is higher than the specified error, the friction coefficient of the pipeline is adjusted and the flow model calculation is performed until the final average value of the absolute value of the relative deviation is within the specified error range.

[0173] After obtaining the sulfur content data S of fuel gas at each gas consumption end ct Finally, under the framework of sulfur balance, combined with the fuel gas flow F of the heating furnace of each unit device rt and flue gas flow FY rt , based on formula (1), the sulfur dioxide concentration in the flue gas can be calculated.

[0174] Specifically, sulfur in the fuel gas will be converted into SO2 after the combustion reaction. The concentration of SO2 in the fuel gas is (mg / kg):

[0175] The SO2 concentration in the flue gas is (mg / Nm3):

[0176] SO2 will be partially converted into SO3, and the conversion rate η of SO2 to SO3 is generally 3%.

[0177] The SO2 concentration of flue gas in the heating furnace generally does not exceed 50mg / Nm3. If it exceeds 50mg / Nm3, an alarm will be triggered. The sulfur content limit of the fuel gas can be calculated from the SO2 concentration limit of the flue gas. If the sulfur content of the heating furnace fuel gas finally calculated by the flow model exceeds this value, an alarm can be triggered in advance to remind the operator to intervene and avoid accidents where the SO2 content of the flue gas exceeds the standard. The calculation formula for the alarm value of the sulfur content of the heating furnace fuel gas is as follows:

[0178] The test method of this embodiment establishes a fuel gas flow model, and then obtains information on the sulfur content in each heating furnace based on the real-time data and basic information of the refinery's current fuel gas, and then determines whether the limit value is reached. Compared with the existing online analyzers, the cost of use is very high, and the detection is not timely. At the same time, it cannot achieve the purpose of early warning to enable the refinery to intervene in advance.

[0179] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.

[0180] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0181] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0182] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A method for predicting and warning SO2 concentration in flue gas from a refinery heating furnace, characterized in that: include: S10. For the refinery to be analyzed, the flow path of the fuel gas in the pipeline network is determined according to the valve switch status in the fuel gas pipeline network, and a flow model of the fuel gas in the pipeline network is constructed. The flow model covers: nodes and pipelines connected between nodes; wherein the nodes include: gas sources, heating furnaces, and connection intersections between pipelines; S20, obtaining real-time data of the refinery and structural parameter information of the fuel gas pipeline network in the refinery, wherein the real-time data includes: gas source flow rate, pressure, composition test analysis data, sulfur content online analysis data, and fuel gas flow rate and pressure of the heating furnace; S30, initializing the composition data of the internal nodes, jointly establishing the material balance equation and energy conservation equation of each node, the material balance equation and energy conservation equation of each pipeline, and the pressure drop equation of each pipeline, constructing a flow model of the fuel gas in the pipeline network, and when the calculation convergence conditions and the accuracy optimization conditions are met, the calculation ends, and the flow, pressure and composition of each node are obtained; the internal nodes are nodes other than the gas source and the heating furnace; S40, calculating the sulfur content of the fuel gas of each heating furnace by the flow model, and calculating the SO2 concentration of the flue gas of the heating furnace, and issuing an alarm by judging whether the SO2 concentration of the flue gas of each heating furnace exceeds the environmental protection limit, and issuing an alarm message if it exceeds the limit; S50. Reversely calculate the sulfur content limit of the heating furnace fuel gas according to the environmental protection limit of SO2 concentration in the heating furnace flue gas, and reversely calculate the sulfur content limit of each gas source in combination with the flow rate of each node calculated by the flow model. Determine whether the online sulfur content analysis data of each gas source exceeds the calculated sulfur content limit of the gas source fuel gas, and implement an early warning if it exceeds.

2. The prediction and early warning method according to claim 1, characterized in that: S10, determining the current flow path of the fuel gas in the pipeline network according to the valve switch state in the fuel gas pipeline network, and constructing a flow model of the fuel gas in the pipeline network, including: S11. Valves in the refinery include manual valves and smart valves, and the switch status of each manual valve is collected; S12. Construct a multi-condition pipeline network topology model based on the historical flow path of the fuel gas in the refinery pipeline network; S13. Determine the current flow path of the fuel gas in the pipeline network according to the acquired current switch states of the manual valve and the intelligent valve and the multi-operating-condition pipeline network topology model.

3. The prediction and early warning method according to claim 1 or 2, characterized in that: S20, obtaining the real-time data of the refinery and the structural parameter information of the fuel gas pipeline network in the refinery, wherein the real-time data includes: gas source flow, pressure, composition test analysis data, sulfur content online analysis data and fuel gas flow and pressure of the heating furnace, including: Retrieving the real-time data from the refinery's real-time database and LIMS database through a pre-configured data interface, and retrieving the structural parameter information from a structural parameter information database; The real-time database stores real-time data detected by the flow meter of each gas source, real-time data detected by the pressure gauge of each gas source, artificial test analysis data of the corresponding gas source composition, and real-time data detected by the sulfur content online analyzer; The structural parameter information of the pipe network includes: the length l of the jth pipe j , the diameter of the jth pipe d j , friction coefficient λ of the jth pipeline j , the equivalent length le of the pipe fitting on the pipeline j j .

4. The prediction and early warning method according to claim 3, characterized in that: S30, initialize the composition data of the internal nodes, jointly establish the material balance equation and energy conservation equation of each node, the material balance equation and energy conservation equation of each pipeline, and the pressure drop equation of each pipeline, and construct a flow model of fuel gas in the pipeline network. When the calculation convergence conditions and accuracy optimization conditions are met, the calculation ends and the flow, pressure and composition of each node are obtained, including: Initialize the composition of the internal nodes and calculate the relative molecular mass from the composition: M i =∑W x from xi (01) Calculate the density of the node fuel gas from the relative molecular mass of the node: The density of the fuel gas in pipeline j is the average value of the fuel gas density at nodes i and i+1 at both ends of pipeline j: The pressure drop equation for pipe j is: ΔP j =C j ·G j 2 (04) Among them C j is the pressure drop coefficient: In formulas (01) to (05), M i is the relative molecular mass of the fuel gas at node i, W x is the relative molecular mass of component x, z xi is the content of component x at node i, z xi Derived from LIMS laboratory analysis data; ρ i is the standard density of fuel gas at node i, ρ i+1 is the standard density of fuel gas at node i, ρ j is the average density of fuel gas in pipeline j; ΔP j is the pressure drop of pipe j, C j is the pressure drop coefficient of pipe j, G j is the mass flow rate of fuel gas flowing through pipeline j; l j is the length of pipe j, le j is the equivalent length of the fitting on pipe j, d j is the inner diameter of pipe j, λ j is the friction coefficient of pipe j; Construct the material balance equations (06) and (07): For any node i, we have: For any pipeline j, we have: Construct the energy balance equations (08) and (09); For any node i, we have: For any pipeline j, we have: In formula (06), N represents the number of pipe segments directly connected to the node i, G j is the mass flow rate of the pipe j connected to the node i; r represents the direction, when the fuel gas flow direction points to the node i, r = 0; when the fuel gas flow direction points to the node i, r = 1; In formula (07), M represents the number of nodes directly connected to the pipeline j, G i is the mass flow rate of node i connected to pipe j; r' represents the direction, when the flow of node i flows into pipe j, r' = 0; when the flow of node i flows out of pipe j, r' = 1; The flow rate and pressure of each internal node are calculated by combining (01) to (09), and the composition of each internal node is calculated based on the flow rate and node arrangement: The node arrangements include: mixers and splitters, If the node is a mixer connection, the composition and flow of node one and the composition and flow of node two are known, and the composition of the mixed node is solved: If the node is a connection method of the separator, and the composition of a certain node is known, the composition of the decomposed node after decomposition is the same as the composition of the node; The calculation is iterated continuously until the calculation converges and meets the calculation convergence condition: the average of the absolute values ​​of the composition deviations of the n-1th and nth times is within the acceptable range; By adjusting the friction coefficient of each pipe j Improve the computational accuracy of the model: In formula (010) to formula (012), F i represents the traffic of node i, z hx represents the content of the mixed node component x, m represents the number of nodes; P rt Indicates the actual measured pressure of the fuel gas in the heating furnace t, P ct represents the fuel gas pressure of heating furnace t calculated based on the flow model of fuel gas in the pipeline network, u represents the number of heating furnaces; δ is the convergence error, and τ is the accuracy error.

5. The prediction and early warning method according to claim 4, characterized in that: S40, the sulfur content of the fuel gas of each heating furnace is calculated by the flow model, and the SO2 concentration of the flue gas of the heating furnace is calculated, and an alarm is implemented by judging whether the SO2 concentration of the flue gas of each heating furnace exceeds the environmental protection limit. If it exceeds, an alarm message is issued, including: The flow rate, pressure and composition data of each node are calculated by the fuel gas network flow model, wherein the composition data includes the flow rate, pressure, composition and sulfur content of the fuel gas of each heating furnace; The SO2 concentration of the flue gas is calculated based on the sulfur content of the heating furnace fuel gas, combined with the fuel gas flow rate and flue gas flow rate: In formula (013), (SO2) t is the SO2 concentration of flue gas from heating furnace t, S ct is the sulfur content of the fuel gas of the heating furnace t calculated by the flow model, mg / kg, η is the conversion rate of SO2 to SO3, F rt is the actual measured fuel gas flow rate t / h of heating furnace t, FY rt is the actual measured flue gas flow rate of heating furnace t Nm 3 / h; The calculated flue gas SO2 concentration is compared with the SO2 environmental protection limit, and an alarm is issued if it exceeds the limit.

6. The prediction and early warning method according to claim 5, characterized in that: S50, reversely calculate the sulfur content limit of the heating furnace fuel gas according to the environmental protection limit of SO2 concentration in the heating furnace flue gas, reversely calculate the sulfur content limit of each gas source in combination with the flow rate of each node calculated by the flow model, and judge whether the online sulfur content analysis data of each gas source exceeds the calculated sulfur content limit of the gas source fuel gas. If it exceeds, implement an early warning, including: Calculate the sulfur content limit of heating furnace fuel gas based on the environmental protection limit of flue gas SO2: The sulfur content limit of the fuel gas of the heating furnace is XS t and the flow rate F of each node calculated by the flow model equations (01) to (012) i According to the layout characteristics of the nodes and the calculation method of the mixer and separator composition, the sulfur content limit XS of each node is calculated. i And the sulfur content limit of the gas source XS k ; The calculated sulfur content limit of the gas source XS k The sulfur content S of the gas source measured by the online analyzer k For comparison, if S k ≥XS k , an early warning of sulfur content in the gas source will be issued.

7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for predicting and warning the SO2 concentration in the flue gas of a refinery heating furnace as described in any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for predicting and warning the SO2 concentration in the flue gas of a refinery heating furnace as described in any one of claims 1 to 6 are implemented.