Hydrogen-mixed natural gas network dynamic simulation method and equipment considering green hydrogen injection diffusion process

By dynamically simulating the hydrogen-mixed natural gas network, the problem of hydrogen concentration uncertainty caused by green hydrogen injection was solved, the hydrogen distribution under different hydrogen production scenarios was evaluated, the safety and stability of the natural gas system were optimized, and the doping control was provided. Guidance on Hydrogen Systems.

CN118761209AInactive Publication Date: 2024-10-11NANJING NORMAL UNIVERSITY +1

Patent Information

Application Number
CN202410759630.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing technology directly injects green hydrogen produced from renewable energy into the natural gas pipeline network, the hydrogen concentration is uncertain, which may cause safety risks such as gas leakage, hydrogen embrittlement or explosion, and there is a lack of understanding of different renewable energy hydrogen production methods. Research on the adaptability to hydrogen doping in pipelines.

Method used

Provide a dynamic simulation method for mixed hydrogen natural gas networks that considers the injection and diffusion process of green hydrogen. By establishing an isothermal steady-state power flow calculation model, an electrolysis water hydrogen production model for renewable energy power generation scenarios, and a convection-diffusion model, the finite element node method and differential Format solution, simulate the convection and diffusion process of hydrogen and natural gas, and determine whether the hydrogen concentration exceeds the allowable upper limit.

Benefits of technology

This method can dynamically simulate a natural gas network with multiple hydrogen doping nodes and multiple types of green hydrogen injection, evaluate the hydrogen concentration distribution, optimize the configuration of energy storage facilities and the design of distributed hydrogen doping points, and improve the safety, reliability and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761209A_ABST
    Figure CN118761209A_ABST
Patent Text Reader

Abstract

The invention discloses a hydrogen-mixed natural gas network dynamic simulation method considering a green hydrogen injection diffusion process, and the method comprises the following steps: S1, building a load flow calculation model of an isothermal steady-state natural gas network when hydrogen doping is not considered, and solving the load flow calculation model through employing a finite element node method to obtain a load flow calculation result; s2, establishing a water electrolysis hydrogen production model of a renewable energy power generation scene at each node in the natural gas network; s3, establishing a variable diffusion coefficient convective diffusion model and a fixed diffusion coefficient convective diffusion model, and determining the adopted convective diffusion model according to the natural gas network parameters and the load flow calculation result; s4, establishing a hydrogen-mixed natural gas network dynamic simulation model considering the green hydrogen injection diffusion process; and S5, according to the determined convection diffusion model, solving the hydrogen-mixed natural gas network dynamic simulation model by adopting a central difference format or a windward difference format to obtain the hydrogen concentration of all pipelines in each time period and each position, and judging whether the hydrogen concentration exceeds an allowable upper limit value or not to finish simulation. According to the method, the hydrogen-mixed natural gas network dynamic simulation considering the green hydrogen injection diffusion process can be realized, and the safety risk is estimated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated energy system simulation, and in particular to a method and device for dynamic simulation of a mixed hydrogen natural gas network taking into account the green hydrogen injection and diffusion process. Background Art

[0002] Injecting hydrogen into the natural gas pipeline network can make full use of the existing natural gas infrastructure to achieve long-distance, large-scale transportation and utilization of hydrogen energy. Existing natural gas pipelines can withstand the transportation of hydrogen-enriched compressed natural gas (HCNG) within a certain range of hydrogen blending ratios after a certain degree of hydrogen resistance modification, or even without any modification. In order to promote the use of a high proportion of renewable energy and reduce carbon emissions in the whole society, the use of renewable energy to produce green hydrogen will become an important way to utilize secondary energy in the future. However, renewable energy power generation has obvious intermittent and volatile characteristics. If green hydrogen produced from renewable energy is directly injected into the natural gas pipeline network, the hydrogen concentration in the natural gas pipeline network will also show great uncertainty. The operating status of the pipeline is closely related to the hydrogen concentration. If the hydrogen concentration in the pipeline exceeds the allowable upper limit for a long time and at a high frequency, it may cause serious gas leakage, hydrogen embrittlement and even explosion, posing a threat to the reliability of the system power supply and the safety of the surrounding environment.

[0003] Considering the current lack of research on the dynamic changes of gas components in the natural gas network after hydrogen blending, and the lack of attention to the adaptability of different renewable energy hydrogen production methods and pipeline hydrogen blending, it is necessary to propose a dynamic simulation method for hydrogen-blended natural gas networks considering the green hydrogen injection and diffusion process, and explore the impact of hydrogen blending on natural gas infrastructure and its potential safety risks, so as to provide guiding suggestions for equipment configuration, pipeline modification and hydrogen blending station design of hydrogen-blended integrated energy systems. Summary of the invention

[0004] In view of the problems existing in the prior art, the object of the present invention is to provide a method and device for dynamic simulation of a mixed hydrogen natural gas network taking into account the green hydrogen injection and diffusion process.

[0005] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:

[0006] A dynamic simulation method for a hydrogen-mixed natural gas network considering a green hydrogen injection diffusion process comprises the following steps:

[0007] S1. Establish a flow calculation model for an isothermal steady-state natural gas network without considering hydrogen admixture, and use the finite element node method to solve it and obtain the flow calculation results;

[0008] S2. For the three renewable energy power generation scenarios of hydropower, wind power and solar power generation, a water electrolysis hydrogen production model is established for each node in the natural gas network;

[0009] S3. Establish a variable diffusion coefficient convection-diffusion model and a constant diffusion coefficient convection-diffusion model, and determine the convection-diffusion model to be used based on the natural gas network parameters and the flow calculation results;

[0010] S4. Establish a dynamic simulation model of a mixed hydrogen natural gas network taking into account the green hydrogen injection and diffusion process; wherein the green hydrogen injection is obtained by solving the water electrolysis hydrogen production model of the renewable energy power generation scenario at each node;

[0011] S5. According to the determined convection-diffusion model, the central difference format or the upwind difference format is used to solve the dynamic simulation model of the mixed hydrogen natural gas network, and the hydrogen concentration of all pipelines at each time period and each location is obtained, and it is determined whether it exceeds the allowable upper limit value to complete the simulation.

[0012] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above method.

[0013] Compared with the prior art, the present invention has the following beneficial effects:

[0014] The method of the present invention can dynamically simulate a natural gas network with multiple hydrogen blending nodes and multiple types of green hydrogen injection, and simulate the convection diffusion process of hydrogen and natural gas in the pipeline after blending; by using this dynamic simulation method, researchers can evaluate the dynamic distribution of hydrogen concentration in the natural gas network under different hydrogen production and hydrogen blending scenarios, adjust the day-ahead scheduling strategy of the hydrogen blending integrated energy system, optimize the configuration of energy storage facilities and the design of distributed hydrogen blending points, and improve the safety, reliability and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a flow chart of a method for dynamic simulation of a mixed hydrogen natural gas network taking into account the green hydrogen injection and diffusion process provided by an embodiment of the present invention;

[0016] Figure 2 It is a flow chart of isothermal steady-state natural gas network flow calculation in the present invention;

[0017] Figure 3 is a diagram of a hydrogen-blended natural gas network structure in an embodiment of the present invention;

[0018] Figure 4 is the isothermal steady-state power flow calculation result of the natural gas network in the embodiment of the present invention;

[0019] Figure 5is the wind and solar power output curve of scenario I in the embodiment of the present invention;

[0020] Figure 6 is the wind-solar output curve of scenario II in the embodiment of the present invention;

[0021] Figure 7 is the wind-solar output curve of scenario III in the embodiment of the present invention;

[0022] Figure 8 is the average hydrogen mass concentration of each pipeline in the three scenarios in the embodiment of the present invention;

[0023] Fig. 9 It is the duration of the pipeline hydrogen concentration exceeding the limit in scenarios I and III in the embodiment of the present invention. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0025] The embodiment of the present invention provides a method for dynamic simulation of a hydrogen-mixed natural gas network taking into account the green hydrogen injection and diffusion process. Figure 1 The method of the present invention comprises the following steps:

[0026] S1. Establish a flow calculation model for an isothermal steady-state natural gas network without considering hydrogen admixture, and use the finite element node method to solve it and obtain the flow calculation results.

[0027] The embodiment of the present invention is Figure 3 The 7-node hydrogen-mixed natural gas network shown is used as a calculation example for explanation. Its rated pressure level is 0.8MPa, and node 7 is the reference node. Assuming that there is a hydropower station near node 7, the hydrogen produced by the surplus hydropower will be injected into node 7. Similarly, it is assumed that node 2 is the injection node for green hydrogen produced by the wind farm, and node 4 is the injection node for green hydrogen produced by the photovoltaic power station. The natural gas network pipeline parameters are shown in Table 1, and the load parameters are shown in Table 2.

[0028] Table 1. Parameters of 7-node natural gas network pipeline in the embodiment

[0029]

[0030] Table 2. Gas load of natural gas network at 7 nodes in the embodiment

[0031]

[0032] The specific process of establishing the power flow calculation model of the isothermal steady-state natural gas network without considering hydrogen admixture is as follows:

[0033] First, for a loop-free natural gas network, the network state can be described by two basic matrices: the node-pipeline association matrix A and the loop-pipeline matrix B. In the embodiment, there is no loop, so the loop-pipeline matrix is ​​not discussed. Assuming that the reference node pressure is known, according to Kirchhoff's first law, the element a of the node-pipeline association matrix A can be deduced ij :

[0034]

[0035] In this example,

[0036] According to Kirchhoff's first law, for any node, the flow rate into the node is equal to the flow rate out of the node, also known as the node flow equation:

[0037] Alpha (i-1)×j Q j×1 =q (i-1)×1 (2)

[0038] Where q is the gas load matrix, m 3 / s; Q is the branch flow matrix, m 3 / s.

[0039] The pipeline pressure drop is related to the pressure difference between the upper and lower ends of the pipeline, also known as the pipeline pressure drop equation:

[0040]

[0041] Where Δp is the pipeline pressure drop matrix, Pa; p is the pressure of the node relative to the reference node, Pa, which is the actual pressure minus the reference pressure.

[0042] The relationship between pipeline flow rate and pipeline pressure drop is called the pipeline flow pressure drop equation:

[0043] Δp = S|Q|Q (4)

[0044] Where S represents the pipeline flow resistance coefficient matrix.

[0045] For low-pressure networks (0-0.01MPa), the calculation method for pipeline pressure drop and pipeline flow resistance coefficient is:

[0046]

[0047] In the formula, Δp ab represents the pipeline pressure drop between nodes a and b, Pa; p a With p b Respectively represent the pressure of nodes a and b, Pa; λ represents the hydraulic friction coefficient of the pipeline, and its relationship with the Reynolds number Re is related to the gas flow mode; d represents the inner diameter of the pipeline, mm; ρ represents the gas density, kg / m3 ; T n represents standard temperature, 273.15K; T represents pipeline temperature, K; L represents pipeline length, m; κ 1 Represents the empirical constant of the low-voltage network, with a value of 6.26×10 7 .

[0048] For medium and high pressure networks (>0.01MPa), the calculation method of pipeline pressure drop and pipeline flow resistance coefficient is:

[0049]

[0050] Where Z is the compression factor; κ 2 It represents the empirical constant of medium and high voltage network, and its value is 1.27×10 10 .

[0051] In this example, the natural gas network belongs to a medium-high pressure network, and the calculation method of pipeline pressure drop and pipeline flow resistance coefficient adopts formula (5).

[0052] Define a j×j diagonal admittance matrix G, whose element g ij The calculation method is:

[0053]

[0054] Combining the above equations (2)-(4) and equation (6), the matrix form of the relationship between pipeline flow and node pressure is obtained, as shown in equations (7) and (8).

[0055]

[0056] Let Y = AGA, equation (8) can be rewritten as equation (9):

[0057] Y (i-1)×(i-1) p (i-1)×1 =q (i-1)×1 (6)

[0058] The method of using finite element node method to solve the power flow calculation model is as follows: Figure 2 As shown, including:

[0059] Step S11: input the physical parameters of the natural gas network, form a node-pipeline association matrix A, and select a reference node;

[0060] Step S12: Initializing the gas flow rate of each pipeline to form an initial value of the pipeline gas flow rate matrix Q;

[0061] Step S13: Calculate the pipeline flow resistance coefficient matrix S, and calculate the diagonal admittance matrix G according to the flow resistance coefficient matrix S and the pipeline gas flow matrix Q calculated in the last iteration;

[0062] Step S14: According to Y=AGA T Calculate and obtain the intermediate matrix Y;

[0063] Step S15: Calculate the gas load matrix q according to ΑQ=q, and calculate the node pressure matrix p according to the gas load matrix q and the intermediate matrix Y according to the formula Yp=q;

[0064] Step S16: According to the node pressure matrix p, according to the formula Δp=A T p calculates the pipeline pressure drop matrix Δp;

[0065] Step S17: Update the pipeline gas flow matrix Q according to Q=GΔp;

[0066] Step S18: Determine whether the iteration termination condition is met. If so, output the node pressure matrix p and the pipeline gas flow matrix Q as the power flow calculation results and the solution is terminated. Otherwise, proceed to step S19.

[0067] Step S19: Update the pipeline gas flow matrix Q to the average of the previous two calculation results, enter step S13, and start the next iteration.

[0068] Based on the above method, the natural gas pipeline network in this example is modeled and tidal current is calculated. The tidal current calculation results of pipeline flow and node pressure and the annotations in the natural gas network are as follows: Figure 4 As shown, the initial calculation value is provided for the dynamic simulation of the mixed hydrogen natural gas network after the subsequent green hydrogen injection.

[0069] S2. For the three renewable energy power generation scenarios of hydropower, wind power and solar power generation, a water electrolysis hydrogen production model is established for each node in the natural gas network.

[0070] This step specifically includes:

[0071] S21, establish a water electrolysis hydrogen production model for hydropower generation scenarios at each node in the natural gas network:

[0072] The calculation method of the output power of the hydropower station is:

[0073] P hydro,out = γHQ water η hydro ×10 -6 (7)

[0074] Where P hydro,out is the output power of the hydropower station, MW; γ is the specific gravity of water, 9810N / m 3 ; H is the effective water head, m; Q water is the water flow rate, m 3 / s; ηhydro It is the efficiency of the hydropower station units, including turbine efficiency and generator efficiency.

[0075] The output of a hydropower station can be divided into two parts: one part is connected to the grid for operation, and the other part is surplus and cannot be connected to the grid, but can be used to produce hydrogen. The calculation method for the power generation of a hydropower station used for hydrogen production by electrolysis of water is as follows:

[0076]

[0077] Where P hydro-H The power generation of the hydropower station used to produce hydrogen by electrolysis of water, MW; The maximum electrical power that a hydropower station can connect to the grid, in MW.

[0078] According to formula (8), the amount of hydrogen produced by water electrolysis is proportional to the water flow rate. The water flow rate of the hydropower station is relatively stable and can be considered to be basically unchanged on a 24-hour time scale. Therefore, after the hydrogen produced by the surplus hydropower is fully mixed with natural gas in the hydrogen blending station, the hydrogen concentration of the hydrogen-mixed natural gas injected into the natural gas network is unchanged and can be regarded as a constant.

[0079] S22, establish a water electrolysis hydrogen production model for wind power generation scenarios at each node in the natural gas network:

[0080] The wind speed modeling adopts the widely used four-component wind model, so the wind speed V acting on the wind turbine is wind It is expressed as:

[0081] V wind = V A + V B + V C + V D (9)

[0082] Where V A , V B , V C and V D They are basic component, mutation component, gradual component and random component, m / s.

[0083] The calculation methods of each wind force component are as follows:

[0084]

[0085] In the formula, A wb With K wb are the scaling parameter and shape parameter of the Weibull distribution respectively; Γ is the gamma function.

[0086]

[0087] Where, T1G Indicates the time when the mutation starts, min; T G Indicates the change period, min; max G is the maximum value of the sudden change wind speed, m / s.

[0088]

[0089] Where max R represents the maximum wind speed, m / s; T 1R is the time when the gradient starts, min; T 2R is the time for the gradual termination, min; T R is the holding time after the gradient, min.

[0090]

[0091] Where N sam Represents the number of spectrum sampling points; i is the index of the sampling point, and i∈[1,…,N sam ];ω i is the frequency of each frequency band, rad / s; represents a random variable that follows a uniform distribution in the interval [0,2π]; Δω is the sampling step, rad / s; K N is the surface roughness coefficient, which is 0.004; F is the disturbance range; μ is the average wind speed at relative height, m / s.

[0092] For a wind farm with certain parameters, its output power is proportional to the cube of the wind speed:

[0093]

[0094] Where P wind,out is the output power of the wind farm, MW; C wind Represents the efficiency of wind energy utilization, which depends on the type and operating conditions of the wind turbine; ρ air is the air density, kg / m 3 ; A wt is the area swept by the fan blades, m 2 .

[0095] Similar to hydropower stations, the output of wind farms can be divided into two parts: one part is connected to the upper grid, and the other part is used to produce hydrogen. The wind power that can be used to produce hydrogen is expressed as follows:

[0096]

[0097] Where P wind-H The power generation of wind farms used for hydrogen production by water electrolysis, MW; The maximum electric power that the wind farm can connect to the grid, MW.

[0098] S23, establish a water electrolysis hydrogen production model for solar power generation scenarios at each node in the natural gas network:

[0099] Light intensity S solar Divided into two components: illumination component S A , W / m 2 and the random attenuation component S B , W / m 2 , the calculation method is as follows:

[0100]

[0101] In the formula, The maximum light intensity statistical value in a certain area can be obtained from the local light intensity statistical data, W / m 2 ; T r and T d Respectively represent sunrise time and sunset time, min.

[0102] S Bi =-λ l S A X i (17)

[0103] Where, X i Obeys Bernoulli distribution; λ l It indicates the degree to which clouds weaken the light intensity, and its average value can be obtained by simple on-site experimental measurements.

[0104] From the above, we can see that the total light intensity is:

[0105] S solar =S A +S B (18)

[0106] Under constant temperature conditions, for photovoltaic arrays with various parameters determined, the maximum power point has a strong positive correlation with the lighting conditions, as shown below:

[0107] P solar,out =S solar ×cosθ×η m ×A pv ×η pv ×10 -6 (19)

[0108] Where P solar,out is the output power of the photovoltaic power station, MW; θ is the incident angle of the photovoltaic panel, °; η m and η pv are the efficiency of MPPT and photovoltaic panel respectively; A pv is the area of ​​the photovoltaic panel, m 2.

[0109] Similar to hydropower plants and wind farms, the power generation of photovoltaic power plants can be divided into two parts, of which the part that can be used for hydrogen production is described by the following formula:

[0110]

[0111] Where P solar-H is the electricity generated by the photovoltaic power station used for water electrolysis to produce hydrogen, MW; The maximum electrical power that a photovoltaic power station can connect to the grid, MW.

[0112] In this example, in order to consider the differences in the output characteristics of hydropower, wind power, and solar power generation in the dynamic simulation of the hybrid hydrogen natural gas network, three hydrogen production blending scenarios are set: Scenario I is a high-proportion solar energy penetration scenario, Scenario II is a high-proportion wind energy penetration scenario, and Scenario III is a balanced penetration scenario of solar energy and wind energy. It should be pointed out that the hydropower generation at node 7 is the same in the three scenarios. The renewable energy parameter settings for the three scenarios are shown in Tables 3 to 11.

[0113] Table 3. Parameters of the wind speed mutation component in Example Scenario I

[0114]

[0115] Table 4. Parameters of the wind speed gradient component in the embodiment scenario I

[0116]

[0117] Table 5. Parameters of illumination intensity illumination component in embodiment scene I

[0118]

[0119] Table 6. Parameters of the wind speed mutation component in Example Scenario II

[0120]

[0121] Table 7. Parameters of the wind speed gradient component in Example Scenario II

[0122]

[0123] Table 8. Parameters of the illumination intensity illumination component in the embodiment scene II

[0124]

[0125] Table 9. Parameters of the wind speed mutation component in Example Scenario III

[0126]

[0127] Table 10. Parameters of the wind speed gradient component in Example Scenario II

[0128]

[0129] Table 11. Parameters of the illumination component of illumination intensity in the embodiment scenario III

[0130]

[0131] Based on the above data, the simulation results of the electric power of wind farms and photovoltaic power stations that can be used for hydrogen production at nodes 2 and 4 under the three scenarios are as follows: Figures 5 to 7 shown.

[0132] S3. Establish a variable diffusion coefficient convection-diffusion model and a constant diffusion coefficient convection-diffusion model, and determine the convection-diffusion model to be used based on the natural gas network parameters and flow calculation results.

[0133] First, a mathematical model of the convection and diffusion process of natural gas mixed with hydrogen is established:

[0134] Convection is the transfer of concentration due to the bulk motion of the fluid. Assuming the reference velocity is the velocity of the highly concentrated species, the convective flux N can be expressed as:

[0135] N= Cα (21)

[0136] Where C is the mass concentration of the gas, kg / m 3 ; α is the fluid velocity, m / s.

[0137] Combined with the continuity equation (22), the concentration change caused by convection at a certain location can be obtained, as shown in equation (23):

[0138]

[0139] Where t is the time index, min; x is the pipe length index, m; ρ is the gas density, kg / m 3 ; v is the gas flow rate, m / s; u represents the gas velocity changing along the pipeline, m / s.

[0140] In a natural gas pipeline, assuming that natural gas flows continuously and at a uniform speed, we have And the mass of the entire fluid is conserved. Then, the one-dimensional convection equation is as follows:

[0141]

[0142] This equation has an analytical solution, which describes the process of concentration C propagating in a certain direction with a speed α.

[0143] According to Fick's first law, the molar flux due to diffusion is proportional to the concentration gradient as shown below:

[0144]

[0145] Where J is the diffusion flux, which is defined as the ratio of the amount of molecules passing through a unit cross-section in a very short time to the time, kg / m 2 ·s; D is the diffusion coefficient, which is related to temperature, fluid viscosity and molecular size, m 2 / s.

[0146] The empirical calculation formula for the diffusion coefficient D is as follows:

[0147]

[0148] Where, T is the gas temperature, K; p is the total pressure, Pa; M A and M B is the molecular weight of components A and B, g / mol; ΣV A and ΣV B is the molecular diffusion volume of components A and B, cm 3 / mol; ξ is only related to temperature and gas type. When the temperature is constant, ξ can be regarded as a constant.

[0149] Fick's first law is only applicable to steady-state calculations, while the diffusion of hydrogen components in hydrogen-blended natural gas should be considered from a dynamic perspective. Therefore, combined with the continuity equation (28), Fick's second law is derived, as shown in equation (29):

[0150]

[0151] Secondly, a variable diffusion coefficient convection-diffusion model is established:

[0152] This embodiment adopts a variable diffusion coefficient convection-diffusion model. When the effects of convection and diffusion are considered simultaneously and without external power input, the convection-diffusion equation with a variable diffusion coefficient is obtained:

[0153]

[0154] In a natural gas pipeline, when the gas velocity is much less than 0.3 Mach, the gas can be regarded as an incompressible gas. According to the Fanning formula, the pipeline pressure loss is as follows:

[0155]

[0156] For a section of pipeline, based on the calculated hydrogen concentration in the upstream pipeline, the density in equation (31) is updated according to equation (34), which will be explained later. Then, the pressure p at a point in the pipeline is xThe relationship with its position coordinate x is:

[0157] p x = p - kL x (32)

[0158] Assume that the hydrogen concentration in the pipeline is zero at the initial moment, and the hydrogen concentration at the pipeline hydrogen injection node is known. Based on this boundary condition and initial value, the convection-diffusion model with variable diffusion coefficient is obtained as follows:

[0159]

[0160] Where T is the time boundary. Considering that the dispatch time of natural gas generally takes several hours, the value is 1440 min (24 h); L is the pipeline length, m. k is an intermediate variable, and the calculation method is given in formula (34); C (0, t) represents the hydrogen concentration at the head end of the pipeline at each time, in kg / m 3 ; C(x,0) represents the hydrogen concentration at the pipeline position x at the initial moment, in kg / m 3 ; is the value of hydrogen concentration in the pipeline at the initial time, in kg / m 3 ; p(0) is the pressure at the beginning of the pipeline, in Pa; p inlet It is the pressure at the beginning of the pipeline, in Pa.

[0161] The convection-diffusion model with a constant diffusion coefficient is:

[0162]

[0163] Where C(L,T) is the hydrogen concentration at the end of the pipeline at the end of the moment, in kg / m 3 .

[0164] When the inner diameter of the pipeline in the natural gas network model is greater than the preset threshold, the pressure difference is less than the preset threshold, and the convection term coefficient is much greater than the diffusion term coefficient, that is, when convection is dominant, the fixed diffusion coefficient convection-diffusion model is used, otherwise the variable diffusion coefficient convection-diffusion model is used.

[0165] S4. Establish a dynamic simulation model of a mixed hydrogen natural gas network that takes into account the green hydrogen injection and diffusion process. The green hydrogen injection is obtained by solving the water electrolysis hydrogen production model of the renewable energy power generation scenario at each node.

[0166] It can be seen from equations (26) and (27) that the diffusion coefficient D is proportional to the pressure p. Assuming that the hydrogen is fully mixed with the natural gas after being injected into the hydrogen blending station, the concentration of the hydrogen-mixed natural gas injected from the hydrogen blending station into the downstream natural gas network is uniform.

[0167] This embodiment adopts a method of fixed - volume gas blending, that is, the volume of the gas blending zone is fixed. The mass concentration of hydrogen is expressed as C m , and the density of the mixed gas can be calculated according to Equation (34):

[0168]

[0169] where ρ is the density of the gas before hydrogen doping, ρ' is the density of the blended gas, kg / m 3 .

[0170] The gas compressibility factor Z is related to the gas concentration C m and the pressure p. When the gas components of the hydrogen - mixed natural gas are determined and the hydrogen concentration is low, the relationship between Z and p can be linearly fitted as follows:

[0171] Z = ap + b (35)

[0172] where a = a(C m ,T) and b = b(C m ,T) are fitting coefficients. The unit of a is Pa -1 , and b is dimensionless.

[0173] The real - gas state equation is shown in Equation (36):

[0174] pM = ρZRT (36)

[0175] where M represents the molar mass, kg / mol; R is the universal gas constant, J / (mol·K); T is the temperature, K.

[0176] It can be seen from Equation (36) that when the molar mass M and pressure ρ of the gas in the upstream pipeline are known, the relationship between Z and p can be determined. Therefore, the values of Z and p can be determined according to the intersection point of the curves plotted by Equation (35) and Equation (36), and then the value of the diffusion coefficient D is updated.

[0177] S5. According to the determined convective - diffusion model, use the central - difference format or the upwind - difference format to solve the dynamic simulation model of the hydrogen - mixed natural gas network, obtain the hydrogen concentration at each time period and each position of all pipelines, and determine whether it exceeds the allowable upper limit value to complete the simulation.

[0178] The specific solution method of the upwind - difference format is as follows:

[0179] S51B. Divide the solution domain Ω={(x,t)|0 < x < L,0 < t < T} equally, set m,n∈N + , N + as positive integers, set the spatial step size the time step size

[0180] S52B. If the determined convective-diffusion model is a convective-diffusion model with variable diffusion coefficient, substitute the relationship between the diffusion coefficient and the pipe length in equations (26) and (31) into equation (30) to obtain an explicit upwind difference scheme. The central difference scheme equation is established as shown in equation (40):

[0181]

[0182] If the determined convective-diffusion model is a convective-diffusion model with constant diffusion coefficient, the central difference scheme equation is established as follows:

[0183]

[0184] In the formula, the format represents the hydrogen concentration at time period #, position at the pipe length of *, x i =iΔx, t j =jΔt;

[0185] In this example, a convective-diffusion model with variable diffusion coefficient is adopted, so formula (40) is used.

[0186] S53B. Set the initial value of the hydrogen concentration at each hydrogen injection node to the value at the outlet of the upstream pipe connected to it, and solve the central difference scheme equation to obtain the hydrogen concentration at each time period and each position of all pipes.

[0187] The solution of the central difference format can also be adopted. The specific method is as follows:

[0188] S51A. Divide the solution domain Ω={(x, t)|0<x<L, 0<t<T} equally, and set m, n∈N + , N + as positive integers, and set the spatial step size and the time step size

[0189] S52A. If the determined convective-diffusion model is a convective-diffusion model with variable diffusion coefficient, establish the upwind difference scheme equation as follows:

[0190]

[0191] If the determined convective-diffusion model is a convective-diffusion model with constant diffusion coefficient, establish the upwind difference scheme equation as follows:

[0192]

[0193] In the formula, the format represents the hydrogen concentration at time period #, position at the pipe length of *, x i =iΔx, t j =jΔt;

[0194] S53A, setting the initial value of the hydrogen concentration of each hydrogen blending node to the value at the outlet of the upstream pipeline connected to it, and solving the central difference format equation to obtain the hydrogen concentration of all pipelines at each time period and each position.

[0195] At this point, the distribution of hydrogen concentration C in the natural gas pipeline can be obtained. In order to determine whether the hydrogen concentration exceeds the allowable range, the hydrogen concentration needs to be converted into a mass fraction, as shown in formula (44).

[0196]

[0197] In the formula, f m is the mass fraction, ranging from 0 to 1.

[0198] The relationship between the mass fraction and volume fraction of hydrogen in hydrogen-mixed natural gas is shown in formula (45):

[0199]

[0200] In the formula, f v is the volume fraction, varying between 0 and 1.

[0201] Based on the above modeling and simulation methods and Figure 4 The isothermal steady-state flow calculation results of the natural gas network are used as the initial value input to obtain the hydrogen concentration exceeding the limit of each natural gas pipeline under three scenarios, as shown in Tables 12 to 14.

[0202] Table 12. Hydrogen concentration exceeding the limit in each pipeline in scenario I

[0203]

[0204] Table 13. Hydrogen concentration exceeding the limit in each pipeline in scenario II

[0205]

[0206] Table 14. Hydrogen concentration exceeding the limit in each pipeline in scenario III

[0207]

[0208] It can be seen that in scenarios I and III, pipelines 5 and 6 have different degrees of hydrogen concentration exceeding the limit, while in scenario II, the hydrogen concentration of all pipelines at all times is within the safe range, that is, less than 3.03%. For horizontal comparison, Figure 8 and 9 The average hydrogen mass concentration and over-limit duration of pipelines under three scenarios are given and analyzed as follows:

[0209] (1) Scenario I: Solar energy resources are relatively abundant, while wind energy resources are relatively scarce. The hydrogen concentration in pipelines 3 and 4 did not exceed the limit, but due to the influence of the midday light intensity, the hydrogen concentration in pipelines 5 and 6 exceeded the limit to a certain extent for nearly 50% of the day. In addition, compared with other scenarios, the hydrogen concentration exceeding the limit problem was the most serious in scenario I, and the average hydrogen concentration of all pipelines was the lowest during the entire simulation period.

[0210] (2) Scenario II: Wind energy resources are relatively abundant, and solar energy resources are relatively scarce. When the amount of hydrogen injected into the natural gas network is the highest, the hydrogen concentration is close to the upper limit but does not exceed the upper limit, and the system is always in a safe operating state.

[0211] (3) Scenario III: Solar and wind resources are relatively balanced, and the hydrogen concentrations in pipelines 3 and 4 are still within the limit. Similar to Scenario I, the hydrogen concentrations in pipelines 5 and 6 exceed the limit during part of the afternoon and afternoon. However, the duration of the hydrogen concentration exceeding the limit in pipelines 5 and 6 is significantly shorter than that in Scenario I.

[0212] Based on the above analysis, the following conclusions can be drawn:

[0213] (1) Solar power generation is greatly affected by the intensity of daylight. Excessive hydrogen production near the peak intensity of light can easily lead to excessive hydrogen concentration. At the same time, the overall level of hydrogen production from solar power generation is low, resulting in uneven hydrogen concentration in the pipeline at different times. When the surplus renewable energy is mainly solar energy, using only water electrolysis to produce hydrogen to absorb solar energy has certain limitations and may bring risks to the safe and stable operation of natural gas pipelines.

[0214] (2) Compared with solar energy, hydropower and wind power generation are relatively stable ways of producing hydrogen. Among them, hydropower is the most stable and adjustable, and it can even be considered that the output power remains unchanged within a scheduling day. Compared with solar power generation, wind power generation can produce a higher amount of hydrogen in a day, and the peak-to-valley difference of wind power within a day is smaller than that of solar power, which is a relatively uniform way of producing hydrogen. Therefore, it is more feasible to use water electrolysis to produce hydrogen to consume surplus wind energy.

[0215] (3) By utilizing the natural complementary characteristics of solar energy and wind energy, the wind-solar balanced scenario can improve the problem of hydrogen concentration exceeding the limit in the solar energy-dominated scenario.

[0216] The embodiment of the present invention further provides a computer device to provide services for implementing the method of the above embodiment of the present invention. The device may include: a memory storing a computer executable program; a processor 302 coupled to the memory; the processor calls the computer executable program stored in the memory to execute the steps in the method described in the first embodiment.

[0217] The memory may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the memory may be used to read and write non-removable, non-volatile magnetic media (commonly referred to as "hard drives"). A program / utility having a set (at least one) of program modules may be stored in, for example, the memory, such program modules including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The computer executable program of the program module typically performs the functions and / or methods in the embodiments described in the present invention.

[0218] The processor executes various functional applications and data processing by running the program stored in the memory, such as implementing the method provided in the first embodiment of the present invention.

[0219] The code of the computer executable program can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" language or similar programming languages.

[0220] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A dynamic simulation method for a hydrogen-mixed natural gas network considering the green hydrogen injection and diffusion process. It is characterized in that The following steps are involved: S1. Establish a flow calculation model for an isothermal steady-state natural gas network without considering hydrogen admixture, and use the finite element node method to solve it and obtain the flow calculation results; S2. For the three renewable energy power generation scenarios of hydropower, wind power and solar power generation, a water electrolysis hydrogen production model is established for each node in the natural gas network; S3. Establish a variable diffusion coefficient convection-diffusion model and a constant diffusion coefficient convection-diffusion model, and determine the convection-diffusion model to be used based on the natural gas network parameters and the flow calculation results; S4. Establish a dynamic simulation model of a mixed hydrogen natural gas network taking into account the green hydrogen injection and diffusion process; wherein the green hydrogen injection is obtained by solving the water electrolysis hydrogen production model of the renewable energy power generation scenario at each node; S5. According to the determined convection-diffusion model, the central difference format or the upwind difference format is used to solve the dynamic simulation model of the mixed hydrogen natural gas network, and the hydrogen concentration of all pipelines at each time period and each location is obtained, and it is determined whether it exceeds the allowable upper limit value to complete the simulation.

2. According to claim 1, the dynamic simulation method of the mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process, It is characterized in that The power flow calculation model of the isothermal steady-state natural gas network without considering hydrogen admixture is specifically: Q=GΔp Δp=A T p Yp=q ΑQ=q Y=AGA T Where Q is the pipeline gas flow matrix, unit is m 3 / s; A is the node-pipeline association matrix, where the association relationship a between node i and pipeline j is ij satisfy: G is a diagonal admittance matrix, whose element g in the i-th row and j-th column is ij satisfy: Q j represents the gas flow rate of pipe j in Q, S j Represents the flow resistance coefficient of the jth pipeline in the pipeline flow resistance coefficient matrix, satisfying: λ represents the hydraulic friction coefficient of the pipeline, and its relationship with the Reynolds number Re is related to the gas flow pattern; d represents the inner diameter of the pipeline, in mm; ρ represents the gas density, in kg / m 3 ; T n represents standard temperature, 273.15K; T represents pipeline temperature, unit is K; L represents pipeline length, unit is m; κ 1 Represents the empirical constant of the low-voltage network, with a value of 6.26×10 7 , Z represents the compression factor; κ 2 It represents the empirical constant of medium and high voltage network, and its value is 1.27×10 10 ; Δp is the pipeline pressure drop matrix, in Pa, where the pipeline pressure drop Δp between node i and node i* is ii* satisfy: p i With p i* They represent the pressure of node i and node i*, in Pa; p 0 represents the reference node pressure; p is the node pressure matrix, whose elements are p i ; q is the air load matrix, unit is m 3 / s; Y is the intermediate matrix.

3. According to claim 2, the dynamic simulation method of the mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process, It is characterized in that The finite element node method is used to solve and obtain the power flow calculation results, which specifically include: Step S11: input the physical parameters of the natural gas network, form a node-pipeline association matrix A, and select a reference node; Step S12: Initializing the gas flow rate of each pipeline to form an initial value of the pipeline gas flow rate matrix Q; Step S13: Calculate the pipeline flow resistance coefficient matrix S, and calculate the diagonal admittance matrix G according to the flow resistance coefficient matrix S and the pipeline gas flow matrix Q calculated in the last iteration; Step S14: According to Y=AGA T Calculate and obtain the intermediate matrix Y; Step S15: Calculate the gas load matrix q according to ΑQ=q, and calculate the node pressure matrix p according to the gas load matrix q and the intermediate matrix Y according to the formula Yp=q; Step S16: According to the node pressure matrix p, according to the formula Δp=A T p calculates the pipeline pressure drop matrix Δp; Step S17: Update the pipeline gas flow matrix Q according to Q=GΔp; Step S18: Determine whether the iteration termination condition is met. If so, output the node pressure matrix p and the pipeline gas flow matrix Q as the power flow calculation results and the solution is terminated. Otherwise, proceed to step S19. Step S19: Update the pipeline gas flow matrix Q to the average of the previous two calculation results, enter step S13, and start the next iteration.

4. According to claim 1, the dynamic simulation method of the mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process, It is characterized in that Step S2 specifically includes: S21. Establish a water electrolysis hydrogen production model for hydropower generation scenarios at each node in the natural gas network: P hydro,out =γHQ water the hydro ×10 -6 Where P hydro,out is the output power of the hydropower station, in MW; γ is the specific gravity of water, specifically 9810N / m 3 ; H is the effective water head, in m; Q water is the water flow rate, in m 3 / s; η hydro is the efficiency of the hydropower station unit, including the turbine efficiency and generator efficiency; P hydro-H The power generation of the hydropower station used for electrolysis of water to produce hydrogen, in MW; The maximum electric power that a hydropower station can connect to the grid, in MW; S22. Establish a water electrolysis hydrogen production model for wind power generation scenarios at each node in the natural gas network: V wind =V A +V B +V C +V D Where V wind Indicates the wind speed acting on the fan, V A , V B , V C and V D They are basic component, mutation component, gradual component and random component, with the unit being m / s; A wb With K wb are the scaling parameter and shape parameter of the Weibull distribution respectively; Γ is the gamma function; t represents time, T 1G Indicates the time when the mutation starts, in min; T G Indicates the change period, in min; max G is the maximum value of the sudden change in wind speed, in m / s; max R is the maximum wind speed, in m / s; T 1R is the time when the gradient starts, in min; T 2R is the time when the gradient ends, in min; T R is the holding time after the gradual change, in min; N sam Represents the number of spectrum sampling points; i is the index of the sampling point, and i∈[1,…,N sam ];ω i is the frequency of each frequency band, in rad / s; S V (ω i ) indicates V D Zhong and ω i Related fractional functions; represents a random variable that follows a uniform distribution in the interval [0,2π]; Δω is the sampling step length in rad / s; K N is the surface roughness coefficient, which is 0.004; F is the disturbance range; μ is the average wind speed at relative height, in m / s; P wind,out is the output power of the wind farm, MW; C wind Represents the efficiency of wind energy utilization, which depends on the type and operating conditions of the wind turbine; ρ air is the air density, in kg / m 3 ; A wt is the area swept by the fan blades, in m 2 ;P wind-H The power generation of wind farms used for hydrogen production by water electrolysis, in MW; It is the maximum electric power that the wind farm can connect to the grid, in MW. S23. Establish a water electrolysis hydrogen production model for solar power generation scenarios at each node in the natural gas network: S Bi =-λ l S A X i S solar =S A +S B P solar,out =S solar ×cosθ×η m ×A pv ×η pv ×10 -6 In the formula, S A is the illumination component, in W / m 2 , t represents time, It is the statistical value of the maximum light intensity in a certain area, which can be obtained from the local light intensity statistical data, and the unit is W / m 2 ; T r and T d Respectively represent sunrise time and sunset time, the unit is min; S B is the random attenuation component, S Bi is the random attenuation component of the i-th period, X i is a variable that follows the Bernoulli distribution; l Indicates the degree to which clouds weaken the light intensity; S solar is the total light intensity, in W / m 2 ;P solar,out is the output power of the photovoltaic power station, in MW; θ is the incident angle of the photovoltaic panel, in degrees; η m and η pv are the efficiency of MPPT and photovoltaic panel respectively; A pv is the area of ​​the photovoltaic panel in m 2 ;P solar-H The power generation of the photovoltaic power station used for water electrolysis to produce hydrogen, in MW; It is the maximum electric power that a photovoltaic power station can connect to the grid, in MW.

5. The method for dynamic simulation of a mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process according to claim 1, It is characterized in that The convection-diffusion model with variable diffusion coefficient is specifically: Where C is the concentration of hydrogen, in kg / m 3 ; α is the fluid velocity, in m / s, t is the time index, in min; x is the pipe length index, in m; T is the time boundary; L is the length of the pipeline, in meters; D is the diffusion coefficient; p is the total pressure, in Pa; λ is the friction coefficient of the pipeline, dimensionless; ρ is the gas density, in kg / m 3 ; u represents the gas velocity along the pipeline, in m / s; C(0,t) represents the hydrogen concentration at the head end of the pipeline at each time, in kg / m 3 ; C(x,0) represents the hydrogen concentration at the pipeline position x at the initial moment, in kg / m 3 ; C H2 is the value of hydrogen concentration in the pipeline at the initial time, in kg / m 3 ; p(0) is the pressure at the beginning of the pipeline, in Pa; p inlet is the value of the pressure at the beginning of the pipeline, in Pa; ξ is an intermediate variable, satisfying: M A and M B is the molecular weight of natural gas and hydrogen, in g / mol; ΣV A and ΣV B is the molecular diffusion volume of natural gas and hydrogen, in cm 3 / mol; The constant diffusion coefficient convection-diffusion model is: Where C(L,T) is the hydrogen concentration at the end of the pipeline at the end of the moment, in kg / m 3 .

6. The method for dynamic simulation of a mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process according to claim 1, It is characterized in that In step S3, when the inner diameter of the pipeline in the natural gas network model is greater than the preset threshold, the pressure difference is less than the preset threshold, and the convection term coefficient is much greater than the diffusion term coefficient, that is, when convection is dominant, the fixed diffusion coefficient convection-diffusion model is adopted, otherwise the variable diffusion coefficient convection-diffusion model is adopted.

7. The method for dynamic simulation of a mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process according to claim 5, It is characterized in that In step S4, the dynamic simulation model of the mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process is specifically: pM=ρ'ZRT Z=ap+b Where p is pressure, M is molar mass, unit is kg / mol; ρ and ρ' are the gas densities of mixed hydrogen natural gas before and after green hydrogen injection, Z is the gas compressibility factor; R is the universal gas constant, unit is J / (mol·K); T is temperature, unit is K; a and b are fitting coefficients, and C is the concentration of hydrogen.

8. The method for dynamic simulation of a mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process according to claim 7, It is characterized in that In step S5, the solution method of the central difference format is specifically: S51A. The solution domain Ω = {(x, t)|0 < x < L, 0 < t < T} is equally divided, and m, n ∈ N are set + , N + is a positive integer, and the spatial step size and the time step size S52A. If the determined convection-diffusion model is a variable diffusion coefficient convection-diffusion model, the central difference format equation is established as: If the determined convection-diffusion model is a constant diffusion coefficient convection-diffusion model, the central difference format equation is established as: In the formula, the format Indicates the hydrogen concentration in the time period # and the position of the pipeline length *, x i =iΔx,t j =jΔt; S53A, setting the initial value of the hydrogen concentration of each hydrogen blending node to the value at the outlet of the upstream pipeline connected to it, and solving the central difference format equation to obtain the hydrogen concentration of all pipelines at each time period and each position.

9. The method for dynamic simulation of a mixed hydrogen natural gas network considering the green hydrogen injection and diffusion process according to claim 7, It is characterized in that In step S5, the solution method of the upwind difference format is specifically: S51B. Divide the solution domain Ω={(x,t)|0 < x < L, 0 < t < T} into equal intervals, and set m,n ∈ N + , N + as positive integers, and set the spatial step size and the time step size S52B. If the determined convection-diffusion model is a variable diffusion coefficient convection-diffusion model, the upwind difference format equation is established as: If the determined convection-diffusion model is a constant diffusion coefficient convection-diffusion model, the upwind difference format equation is established as: In the formula, the format Indicates the hydrogen concentration in the time period # and the position of the pipeline length *, x i =iΔx,t j =jΔt; S53B, setting the initial value of the hydrogen concentration of each hydrogen blending node to the value at the outlet of the upstream pipeline connected to it, and solving the central difference format equation to obtain the hydrogen concentration of all pipelines at each time period and each position.

10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, Features: The processor executes the computer program to implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Modeling method for medium-low pressure gas distribution pipe network of hydrogen-doped natural gas

    CN112257355A

  • Simulation Method and System for Combined Power Flow in Multi-Energy Coupled Systems at Multiple Time Scales

    CN114936440A

Cited By

  • Gas safety emergency training system based on VR

    CN120656358A