Fluent-based atmospheric diffusion simulation method for pipeline flange leakage

Fluent software and the SST k-omega turbulence model are used to simulate flange leakage, which solves the problem of difficulty in effectively studying pipeline flange leakage in the existing technology, enables visual analysis and safety guidance of natural gas diffusion, and reduces experimental risks.

CN118569138APending Publication Date: 2024-08-30CHANGZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410784080.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult to effectively simulate and study the diffusion of natural gas caused by pipeline flange leakage with existing technology, and the experiments are costly and dangerous, and there is a lack of innovative models for flange leakage.

Method used

The Fluent software virtualizes the flange leakage source, defines interior boundary conditions, and combines the SST k-omega turbulence model to establish a three-dimensional model for gas diffusion simulation, obtain the three-dimensional distribution of natural gas concentration in the atmosphere, and simulate the gas diffusion behavior of flange leakage.

Benefits of technology

It realizes the visual analysis of the gas diffusion phenomenon of natural gas pipeline flange leakage, provides guidance for pipeline operation safety, reduces the experimental cost and risk, and provides safety measure suggestions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569138A
    Figure CN118569138A
Patent Text Reader

Abstract

The invention relates to the technical field of pipeline leakage, in particular to a Fluent-based atmospheric diffusion simulation method for pipeline flange leakage, which comprises the following steps: constructing a pipeline and flange space three-dimensional model by using SCDM; creating a computational domain and a solid domain, and setting a boundary type and grid division; detecting the grid quality, the model size, the model unit and the grid torsion resistance; setting the magnitude and direction of gravitational acceleration; setting an outer watershed, setting a pipeline and setting fluid in the pipeline; an SST k-omega turbulence model is adopted, an energy equation is started, and each subitem of the model adopts an off-term format; a second-order format is adopted for pressure, and a second-order windward format is adopted for momentum, turbulent kinetic energy, turbulent dissipation rate and components; setting a residual error; performing initialization calculation; setting iteration parameters and starting solving calculation; and carrying out post-processing on a calculation result by utilizing Tecplot. The problems that an existing method mainly solves the problem of leakage of a small hole model, and annular slit leakage is lacked to be analyzed are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of pipeline leakage, and in particular to an atmospheric diffusion simulation method of pipeline flange leakage based on Fluent. Background Art

[0002] In the oil and gas industry, oil and gas are mostly transported by pipelines. In addition to welding, the connections between pipelines are also connected by flanges. When the pipeline flange connection is ruptured or other serious mechanical damage occurs, it will cause leakage at the pipeline flange connection. The natural gas transported in the pipeline diffuses into the atmosphere under the action of pressure difference. Natural gas is flammable and explosive. Most of the research focuses on the leakage of small holes in the pipeline, while the diffusion characteristics of flange leakage are less studied. At present, in the field of pipeline leakage, the small hole model has been widely used in the field of Fluent software, and the method has been gradually updated. Especially after the rapid development of AI, the potential of CFD combined with deep learning is huge, which provides new inspiration for the innovation of research methods. However, as a classic leakage model, the small hole model has not been innovated in the research object (small hole).

[0003] Natural gas combustion and explosion accidents occur frequently after flange leakage, so it is necessary to study the diffusion of natural gas pipeline flange leakage. However, the cost of studying natural gas pipeline flange leakage through experiments is high and the risk is relatively large. With the development of CFD simulation software, the use of Fluent software to simulate the diffusion of natural gas pipeline flange leakage in the atmosphere has greater advantages, which can provide guidance for assessing the hazards of accidents and taking relevant measures after accidents. Summary of the invention

[0004] In view of the shortcomings of the existing methods, the present invention uses Fluent software to virtualize the 2mm pipes at both ends of the flange as flange leakage sources, and defines the boundary conditions as interior to simulate flange leakage; different from the conventional small hole leakage model in which holes are opened on the pipeline, the method of virtualizing the pipe at the connection between the flange and the pipeline as the flange leakage source can simulate the gas diffusion law when the pipeline flange leaks, obtain the three-dimensional distribution of concentration in the atmosphere, and visualize the diffusion behavior of the natural gas pipeline flange leakage in the atmosphere, providing guidance for the safety of pipeline operation.

[0005] The technical solution adopted by the present invention is: the atmospheric diffusion simulation method of pipeline flange leakage based on Fluent includes the following steps:

[0006] Step 1: Set the test pipe, flange geometry parameters and position data;

[0007] As a preferred embodiment of the present invention, the pipeline includes the pipeline diameter, pipeline length, and the type and content of the gas transported in the pipeline.

[0008] As a preferred embodiment of the present invention, the flange geometric parameters include: the specific position of the flange on the pipeline, the size of the flange and the width of the annular slit at the connection between the pipeline and the flange.

[0009] Step 2: Use SCDM to construct a three-dimensional model of the pipeline and flange space;

[0010] Step 3: Create computational domain and solid domain, set boundary type and perform meshing;

[0011] As a preferred embodiment of the present invention, the boundary types include: pipeline inlet, pipeline outlet, pipeline wall, outer flow domain and the ground of the outer flow domain.

[0012] As a preferred embodiment of the present invention, the boundaries of the pipeline are set to wall, the flange leakage virtual source boundary is set to interfere, the outer flow domain except the ground is set to outflow, the ground boundary condition is set to wall, the pipeline inlet is set to velocity inlet, and the pipeline outlet is set to pressure outlet.

[0013] Step 4: Check the mesh quality, model size, model unit and mesh distortion;

[0014] Step 5: Set the magnitude and direction of gravity acceleration;

[0015] Step 6: Set the outer flow domain to air, set the pipeline to solid, and set the fluid in the pipeline;

[0016] Step 7: Use the SST k-omega turbulence model, open the energy equation, and use the separated-term format for each sub-item of the model; the pressure uses the second-order format, and the momentum, turbulent kinetic energy, turbulent dissipation rate and each component use the second-order upwind format;

[0017] As a preferred embodiment of the present invention, the SST k-omega turbulence model includes:

[0018] Assume that the gas is incompressible and the medium flow is turbulent flow;

[0019] Turbulent kinetic energy equation:

[0020]

[0021] Specific dissipation rate equation:

[0022]

[0023] Where ρ is the fluid density; u i is the velocity component; k is the turbulent kinetic energy; ω is the specific dissipation rate; P kis the generation term of turbulent kinetic energy; μ is the dynamic viscosity; μ t is the turbulent viscosity; σ k , σ ω2 , β * , α, β are model constants; F1 is the mixing function.

[0024] Step 8: Residual setting;

[0025] Step nine, initialization calculation;

[0026] As a preferred embodiment of the present invention, initialization includes: pressure initialization and concentration initialization.

[0027] Step 10: Set the iteration parameters and start the solution calculation;

[0028] Step 11: Use Tecplot to post-process the calculation results;

[0029] As a preferred embodiment of the present invention, step eleven includes:

[0030] The migration changes and concentration distribution of natural gas pipeline flange leakage in the atmosphere are analyzed to obtain the leakage concentration, flange leakage, pressure, temperature and flow rate parameters in the pipeline at different positions in the calculation domain, and form concentration cloud maps, pressure cloud maps, temperature cloud maps, velocity linear graphs and leakage curves at different cross-sections.

[0031] Beneficial effects of the present invention:

[0032] 1. Establishing the CFD numerical simulation calculation domain based on the pipeline in normal production can simulate the phenomenon of gas diffusion in the atmosphere at the leakage point of the natural gas pipeline flange, analyze and study the migration phenomenon of the gas leaked in the atmosphere, provide suggestions for safety measures in case of flange leakage, and provide guidance for pipeline safety;

[0033] 2. The present invention improves the leakage source based on the leakage of the small hole model, and the present invention can be applied in the field of flange leakage through the method of virtual width;

[0034] 3. The SST k-omega turbulence model is used to simulate flange leakage. By taking advantage of the standard k-ω model and k-ε model, it has a strong boundary prediction area in the free vortex area and the boundary layer area, can accurately predict the turbulent loss rate, and is suitable for the field of flange leakage diffusion. The outflow boundary type is used at the outlet of the processing pipeline. Compared with the outlet boundary type, it can automatically adjust the outflow according to the flow changes in the pipeline, and the phenomenon is more natural in the simulation of the external flow field. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1It is a flow chart of the atmospheric diffusion simulation method of pipeline flange leakage based on Fluent of the present invention;

[0036] Figure 2 It is a simplified schematic diagram of the natural gas pipeline flange leakage model of the present invention;

[0037] Figure 3 A three-dimensional schematic diagram of a natural gas pipeline flange leakage model of the present invention;

[0038] Figure 4 It is a grid schematic diagram of the natural gas pipeline flange leakage model of the present invention;

[0039] Figure 5 Figure 1 is a diagram of the leakage diffusion phenomenon of the flange of a DN25 natural gas pipeline at different times of the present invention;

[0040] Figure 2 , 3 In the figure, 1. pipe inlet, 2. pipe wall, 3. annular slit, 4. flange, 5. pipe, 6. pipe outlet; 7. external flow basin. DETAILED DESCRIPTION

[0041] The present invention is further described below in conjunction with the accompanying drawings and embodiments. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore it only shows the components related to the present invention.

[0042] like Figure 1 As shown in the figure, the atmospheric diffusion simulation method of pipeline flange leakage based on Fluent includes the following steps:

[0043] Step 1: Set the geometric parameters and position data of the test pipe 5 and flange 4;

[0044] The pipeline includes the pipeline diameter, pipeline length, type and content of the gas transported in the pipeline;

[0045] Flange geometric parameters include: the specific position of the flange in the pipeline, the size of the flange;

[0046] The pipeline flange leakage is simplified into a model processing method. By defining a virtual source, the flange leakage is defined as the annular slit at both ends of the pipeline where the pipeline and the flange leak. The width of the virtual annular slit, that is, the width of the virtual leakage source, is determined according to the leakage degree of the flange. Figure 2 as shown; Figure 2As shown, the fluid enters from the pipeline inlet 1 and flows out from the pipeline outlet 6. During the flow of the pipeline 5, an annular slit 6 is formed at the connection between the flange 4 and the pipeline 5. The annular slit 6 is taken as the leakage source as the analysis object. Since the definition of flange leakage degree is relatively abstract, the leakage rate is used to reflect the flange leakage degree. Therefore, the width of the leakage source is adjusted according to the actual situation. When the flange leaks slightly, the interfere boundary condition is used to simulate the flange leakage.

[0047] Step 2: Use SCDM to Figure 2 Establish a three-dimensional model of the analysis space. Figure 3 As shown;

[0048] According to the pipeline geometric parameters, position and flange geometric dimensions, leakage location and slit width, a three-dimensional model of the required analysis space is established to reflect the degree of flange leakage;

[0049] like Figure 2 As shown, the flange leakage is the width of the annular slit at the connection between the flange and the pipe, which is 2 mm.

[0050] Step 3: Create a computational domain and solid domain based on the geometric parameters and position data of the pipeline and flange in step 1, set the boundary type of the pipeline inlet to velocity inlet or pressure inlet, the boundary type of the pipeline outlet to free flow outlet or pressure outlet, the boundary type of the pipeline wall to wall, the boundary type of the five surfaces of the outer flow domain to free flow outlet or ambient pressure outlet, and the boundary type of the ground of the outer flow domain to wall; select the appropriate meshing type based on the model information, mesh the model, and output the mesh file. The mesh file is as follows: Figure 4 shown.

[0051] In this embodiment, the boundary condition types are as follows: the boundaries of the pipelines are all set to wall, the flange leakage virtual source boundary is set to interferer, the outer flow domain except the ground is set to outflow, the ground boundary condition is set to wall, the pipeline inlet is set to velocity inlet, and the pipeline outlet is set to pressure outlet.

[0052] Step 4: Import the mesh into Fluent, check the mesh quality, check the model size and model unit, and check the mesh distortion and other important parameters that affect the mesh quality. If the mesh distortion is greater than or equal to 0.8, return to step 3. If the mesh distortion is less than 0.8 and the overall mesh quality is greater than 0.7, proceed to step 5.

[0053] Step 5. Set the magnitude and direction of gravitational acceleration and set the solver to transient.

[0054] Step 6. Add materials and define material physical parameters, set the outer flow domain to air, the pipeline to solid, and the fluid in the pipeline to methane or the gas transported by the pipeline;

[0055] Step 7. Select the turbulence model, turn on the energy equation, and set the gas in the pipeline to 100% methane gas; the solution model is the SST k-omega turbulence model, and each sub-item uses the out-of-term format; the pressure uses the second-order format, and the momentum, turbulent kinetic energy, turbulent dissipation rate and each component use the second-order upwind format.

[0056] Select the SST k-omega turbulence model, assuming that the gas is incompressible and the medium flow is turbulent. The SST k-omega turbulence model is as follows:

[0057] Turbulent kinetic energy equation (k equation):

[0058]

[0059] Specific dissipation rate equation (ω equation):

[0060]

[0061] The mixing function F1 is defined as follows:

[0062]

[0063] in,

[0064]

[0065] Where ρ is the fluid density; u i is the velocity component; k is the turbulent kinetic energy; ω is the specific dissipation rate; P k is the generation term of turbulent kinetic energy; μ is the dynamic viscosity; μ t is the turbulent viscosity; σ k , σ ω , β * , α, β are model constants; F1 is the mixing function, v is the velocity; x, y are coordinates used to combine the advantages of the standard k-ω model and the k-ε model.

[0066] Step 8. Residual setting: Set the residuals of all parameters in the residual setting to 0.000001.

[0067] Step nine, initialization calculation;

[0068] Step 91, pressure initialization: Since the pressure pipeline is connected to the atmosphere at the moment of leakage, the pressure in the pipeline is instantly reduced to atmospheric pressure; therefore, when setting the pressure of the pipeline, standard initialization is adopted, specifically, all components except the flow basin are set to the pipeline operating pressure for initialization through the present invention.

[0069] Step 92, concentration initialization: initialize the concentration of methane gas in the pipeline to 1, and at the same time determine that the initial concentration of methane gas in the outer flow area is 0, that is, ensure that the initial concentration of air in the outer flow area is 1.

[0070] Step 10. Set the iteration parameters and start the solution calculation: the iteration parameters include the time step, the number of time steps and the maximum number of iteration steps; if the calculated residual value tends to be stable or is lower than the set residual value, it is determined to be converged and the calculation is completed in step 11; if the result does not converge, it is necessary to return to steps 2 to 9, recheck the parameter settings of the model and mesh division and the initialization and iteration parameters until the calculation results of the subsequent steps converge; set the time step to 0.01s and the number of calculation steps to 10,000 steps.

[0071] Step 11. Use Tecplot to post-process the calculation results, analyze the migration change process and concentration distribution of the natural gas pipeline flange leakage in the atmosphere, obtain the leakage concentration, flange leakage, pressure, temperature and flow rate parameters in the pipeline at different positions in the calculation domain, and form concentration cloud maps, pressure cloud maps, temperature cloud maps, velocity line graphs and leakage curves at different cross-sections.

[0072] Assume the following leakage scenario: a pipe with a diameter of DN25 and a length of 1m has a matching flange in the middle that leaks. The flange is a galvanized threaded flange made in accordance with the national standard GB / T 9119. Figure 5 As shown, the methane concentration distribution of flange leakage at different times shows the flow and diffusion behavior of natural gas after the leakage.

[0073] Depend on Figure 5 The distribution characteristics of flange leakage can be clearly seen in the figure, which is different from the jet distribution characteristics of small hole leakage in the pipeline. The leakage rate of flange leakage in this scenario is relatively low, and no extremely obvious jet is formed. The leakage directly above the flange is larger than the leakage directly below the flange. A stable leakage range is formed on both sides of the flange leakage, which continues to diffuse into the atmosphere, but the diffusion rate is getting slower and slower.

[0074] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent is characterized by: The following steps are involved: Step 1: Set the test pipe, flange geometry parameters and position data; Step 2: Use SCDM to build a three-dimensional model of the pipeline and flange space; Step 3: Create computational domain and solid domain, set boundary type and perform meshing; Step 4: Check the mesh quality, model size, model unit and mesh distortion; Step 5: Set the magnitude and direction of gravity acceleration; Step 6: Set the outer flow domain to air, set the pipeline to solid, and set the fluid in the pipeline; Step 7: Use the SST k-omega turbulence model, open the energy equation, and use the separated-term format for each sub-item of the model; the pressure uses the second-order format, and the momentum, turbulent kinetic energy, turbulent dissipation rate and each component use the second-order upwind format; Step 8: Residual setting; Step nine, initialization calculation; Step 10: Set the iteration parameters and start the solution calculation; Step 11: Use Tecplot to post-process the calculation results.

2. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 1 is characterized in that: The SST k-omega turbulence model includes: Assume that the gas is incompressible and the medium flow is turbulent flow; Turbulent kinetic energy equation: Specific dissipation rate equation: Where ρ is the fluid density; u i is the velocity component; k is the turbulent kinetic energy; ω is the specific dissipation rate; P k is the generation term of turbulent kinetic energy; μ is the dynamic viscosity; μ t is the turbulent viscosity; σ k , σ ω2 , β * , α, β are model constants; F1 is the mixing function.

3. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 1 is characterized in that: The pipeline includes the pipeline diameter, pipeline length, and the type and content of the gas transported in the pipeline.

4. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 1 is characterized in that: Flange geometric parameters include: the specific position of the flange in the pipeline, the size of the flange, and the width of the annular gap at the connection between the pipeline and the flange.

5. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 1 is characterized in that: Boundary types include: pipe inlet, pipe outlet, pipe wall, outer flow domain, and the ground of the outer flow domain.

6. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 5 is characterized in that: The boundaries of the pipeline are all set to wall, the flange leakage virtual source boundary is set to interfere, the external flow domain except the ground is set to outflow, the ground boundary condition is set to wall, the pipeline inlet is set to velocity inlet, and the pipeline outlet is set to pressure outlet.

7. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 1 is characterized in that: Initialization includes: Pressure initialization and concentration initialization.

8. The atmospheric diffusion simulation method of pipeline flange leakage based on Fluent according to claim 1 is characterized in that: Step 11 includes: The migration changes and concentration distribution of natural gas pipeline flange leakage in the atmosphere are analyzed to obtain the leakage concentration, flange leakage, pressure, temperature and flow rate parameters in the pipeline at different positions in the calculation domain, and form concentration cloud maps, pressure cloud maps, temperature cloud maps, velocity linear graphs and leakage curves at different cross-sections.

9. Fluent-based atmospheric diffusion simulation system for pipeline flange leakage, characterized by: include: a memory for storing instructions executable by a processor; A processor, used for executing instructions to implement the atmospheric diffusion simulation method of pipeline flange leakage based on Fluent as described in any one of claims 1-8.

10. A computer readable medium storing computer program code, characterized in that: When the computer program code is executed by a processor, the computer program code implements the atmospheric diffusion simulation method of pipeline flange leakage based on Fluent as described in any one of claims 1 to 8.