A three-phase separator digital twin simulation method and device

Through the digital twin simulation method of three-phase separator, the efficiency and safety problems of oil and gas-water separation technology under high moisture content are solved, efficient monitoring of equipment and crude oil quality prediction are achieved, and the "three oil production" process of the oil field is promoted.

CN113343600BActive Publication Date: 2024-11-05CHINA UNIV OF PETROLEUM (BEIJING)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110665630.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-11-05
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

The existing three-phase separation technology of oil, gas and water is difficult to achieve efficient and low-consumption separation effects under high moisture content conditions, resulting in overload operation and safety hazards of equipment, and it is difficult to accurately predict the separation efficiency of the separator.

Method used

The digital twin simulation method of three-phase separator is adopted to conduct digital twin simulation to monitor equipment operation and predict separation efficiency by establishing oil level, water level and pressure control equations, droplet flow motion model and dispersed phase mass balance model.

Benefits of technology

It realizes rapid and efficient analysis of the operating factors of the three-phase separator, saves human and material resources, improves the working efficiency of the separator and predicts the crude oil quality, promotes the "three oil production" process of the oil field, and is a three-phase separation of gravity oil, gas and water. The optimized design of the device provides a reference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113343600B_ABST
    Figure CN113343600B_ABST
Patent Text Reader

Abstract

The present invention provides a digital twin simulation method and device for a three-phase separator, and the digital twin simulation method for a three-phase separator includes: establishing the oil level control equation, the water level control equation, and the pressure control equation in the three-phase separator respectively; establishing a motion model for characterizing the flow of droplets; establishing a mass balance model of the dispersed phase in the three-phase separator in different regions; and performing digital twin simulation on the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation, and the motion model. The present invention can not only quickly and efficiently obtain the key factors that affect the operation of the separator system, but also timely grasp the operation status and working effect of the equipment, combine simulation with on-site conditions, complete the monitoring operation of the equipment, and save a lot of manpower and material resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of oil and natural gas development, and in particular to a three-phase separator digital twin simulation method and device. Background Art

[0002] In the field of oil and gas field development technology, oil well production is usually a mixture containing oil, gas, water and some impurities, and the mixture must be separated before it can be transported. The separation of oil, gas and water mainly uses a three-phase separator to complete the initial separation, and then conducts fine separation. The separation effect of the three-phase separator directly affects the quality of the external treatment fluid. Gravity separation is one of the most basic methods for treating oil field production. This method uses the density difference between different phases to achieve separation. The representative separator using this method is a horizontal gravity three-phase separator, which uses gravity separation to achieve the separation of oil, gas and water. The operating medium is a mixture of oil, gas and water. The gas phase floats up under the action of density difference, and the water phase sinks under the action of gravity, forming a certain proportion of oil, gas and water phases, thereby completing the separation process.

[0003] With the continuous development of water injection oil recovery technology, most of China's onshore oil fields have entered a high water content period. The comprehensive water content of produced fluids in some oil fields is as high as 80% or more, and some have even exceeded 90%. With the change of oil recovery methods and the passage of time, it has brought great challenges to the surface engineering of oil fields. The excessively high water content has caused the equipment in multiple processing links to be in an overloaded state, which seriously affects the treatment effect, especially the impact on the oil, gas and water three-phase separator. For example: the excessively high water content leads to a high water content in the crude oil at the outlet of the three-phase separator and a significant increase in the energy consumption of the heating furnace; at the same time, the oil content of the sewage at the outlet increases, and it needs to be settled and deoiled again before entering the treatment station. Therefore, the crude oil processing process becomes longer, the equipment increases, and the energy consumption investment increases, which seriously affects the economic benefits of the oil field, and even the equipment is overloaded for a long time, which brings serious safety hazards to production. Therefore, the oil, gas and water three-phase separation technology has become a research topic that has received more and more attention.

[0004] Among the existing oil, gas and water three-phase separation technologies, gravity separation technology is the most widely used. The key to gravity separation technology can be mainly attributed to four aspects: increasing the density difference between oil and water phases, increasing the particle size of the dispersed phase, reducing the viscosity of the continuous phase and reducing the droplet settling distance. From its development trend, crude oil dehydration technology pays more and more attention to how to make full use of the energy of the liquid itself. At the same time, through the reasonable design and optimization of the equipment structure of the separator, the separator equipment is developed towards energy saving, high efficiency and miniaturization. Therefore, it is particularly important to accurately predict the separation efficiency of the three-phase separator under different conditions (inlet flow components, flow rate, separator size, etc.). However, there are many factors that affect the operation of the three-phase separator, and it is limited by the test conditions of the surface gathering and transportation system of the oil and gas field or other production facilities. Therefore, it is difficult to adjust each influencing factor one by one to achieve the requirements of efficient and low-consumption operation of the process. Summary of the invention

[0005] In response to the problems in the prior art, the three-phase separator digital twin simulation method and device provided by the present invention can not only quickly and efficiently obtain the key factors affecting the operation of the separator system, but also timely grasp the equipment operation status and working results, combine simulation with on-site conditions, complete the monitoring operation of the equipment, and save a lot of manpower and material resources.

[0006] In a first aspect, the present invention provides a three-phase separator digital twin simulation method, comprising:

[0007] Establish the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively;

[0008] Establishing a motion model for characterizing droplet flows;

[0009] Establishing a mass balance model of the dispersed phase in each region of the three-phase separator;

[0010] A digital twin simulation of the three-phase separator is performed according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0011] In one embodiment, establishing a motion model for characterizing the flow of droplets includes:

[0012] Establishing a velocity equation of droplets in the vertical direction of the droplet flow in the three-phase separator;

[0013] The velocity equation of the droplet flow in the three-phase separator in the horizontal direction is established.

[0014] In one embodiment, the establishment of the oil level control equation, the water level control equation and the pressure control equation in the three-phase separator includes:

[0015] The oil level control equation, the water level control equation and the pressure control equation are established according to the radius, length, oil layer volume, water layer volume, liquid inlet volume, air inlet volume, air outlet flow rate, oil outlet flow rate, water outlet flow rate, gas phase volume, density, molar mass and temperature of the three-phase separator.

[0016] In one embodiment, the step of establishing a mass balance model of the dispersed phase in the three-phase separator by region includes:

[0017] In the horizontal direction, the three-phase separator is divided into a pure oil area, a water outlet area, and an oil-water coexistence area;

[0018] Dividing the oil-water coexistence zone into a plurality of zones in a vertical direction;

[0019] In the horizontal direction, a control equation for the flow of droplets in the oil-water coexistence zone driven by volume flow is established;

[0020] In the vertical direction, control equations of the droplet flow in the pure oil area and the water outlet area driven by non-volume flow are established respectively;

[0021] In the vertical direction, the control equations of the droplet flows in the multiple regions are established.

[0022] In one embodiment, the three-phase separator digital twin simulation method also includes: establishing a calculation model for the oil content at the water outlet and the water content at the oil outlet of the three-phase separator based on the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0023] In a second aspect, the present invention provides a three-phase separator digital twin simulation device, the device comprising:

[0024] A control equation establishment module, used to establish the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively;

[0025] A motion model building module, used to build a motion model for characterizing droplet flow;

[0026] A balance model building module, used to build a mass balance model of the dispersed phase in the three-phase separator by region;

[0027] A digital simulation module is used to perform digital twin simulation of the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0028] In one embodiment, the motion model building module includes:

[0029] A vertical equation establishing unit, used to establish a velocity equation of droplets in the vertical direction of the droplet flow in the three-phase separator;

[0030] A horizontal equation establishing unit, used to establish a motion velocity equation of the droplet flow in the three-phase separator in the horizontal direction;

[0031] The control equation establishing module is specifically used to establish the oil level control equation, the water level control equation and the pressure control equation according to the radius, length, oil layer volume, water layer volume, liquid inlet volume, air inlet volume, air outlet flow rate, oil outlet flow rate, water outlet flow rate, gas phase volume, density, molar mass and temperature of the three-phase separator.

[0032] In one embodiment, the equilibrium model building module includes:

[0033] A region division unit, used for dividing the three-phase separator into a pure oil region, a water outlet region and an oil-water coexistence region in a horizontal direction;

[0034] A region division subunit, used for dividing the oil-water coexistence zone into a plurality of regions in a vertical direction;

[0035] The oil-water coexistence zone equation establishing unit is used to establish the control equation of the droplet flow in the oil-water coexistence zone driven by volume flow in the horizontal direction;

[0036] A pure oil zone equation establishing unit is used to establish control equations of droplet flow in the pure oil zone and the water outlet zone driven by non-volume flow in the vertical direction;

[0037] A plurality of regional equation establishing units, used for establishing control equations of the droplet flow of the plurality of regions in the vertical direction;

[0038] The three-phase separator digital twin simulation device further includes:

[0039] The water content model establishment module is used to establish the water outlet oil content and oil outlet water content calculation model of the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0040] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a three-phase separator digital twin simulation method when executing the program.

[0041] In a fourth aspect, 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 three-phase separator digital twin simulation method.

[0042] From the above description, it can be seen that the digital twin simulation method and device of the three-phase separator provided by the embodiment of the present invention first establish the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively; establish a motion model for characterizing the flow of droplets; then, establish a mass balance model of the dispersed phase in the three-phase separator in different regions; finally, perform digital twin simulation on the three-phase separator according to the oil level control equation, water level control equation, pressure control equation and motion model. On the one hand, the present invention can realize the calculation and prediction of the oil, gas and water three-phase separation efficiency in the three-phase separator; when applied to the field of oil field development, the separator can be operated in the best working condition to improve the working efficiency, and the quality of crude oil after preliminary treatment can be predicted, which is helpful to promote the "tertiary oil recovery" process of the oil field. At the same time, it also helps to achieve the safety guarantee of oil product flow. On the other hand, the present invention can also serve as the basis for technical research on energy saving and consumption reduction of oil and gas transmission pipelines and simulation of oil and gas gathering and transportation processes. It has a certain reference value for the future optimization design of gravity oil, gas and water three-phase separators. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] Figure 1 Schematic diagram of the process of the three-phase separator digital twin simulation method in the embodiment of the present invention Figure 1 ;

[0045] Figure 2 Schematic diagram of a droplet flow model of a three-phase separator in an embodiment of the present invention;

[0046] Figure 3 is a flow chart of step 200 in an embodiment of the present invention;

[0047] Figure 4 is a flow chart of step 100 in an embodiment of the present invention;

[0048] Figure 5 is a flow chart of step 300 in an embodiment of the present invention;

[0049] Figure 6 Schematic diagram of a three-phase separator index discretization method in an embodiment of the present invention;

[0050] Figure 7 Schematic diagram of the spatial division of a three-phase separator in an embodiment of the present invention;

[0051] Figure 8 Schematic diagram of the process of the three-phase separator digital twin simulation method in the embodiment of the present invention Figure 2 ;

[0052] Fig. 9 It is a flow chart of a three-phase separator digital twin simulation method in a specific application example of the present invention;

[0053] Fig.10 It is a curve of the change of the oil phase liquid level in the three-phase separator over time in a specific application example of the present invention;

[0054] Fig.11 is a curve showing the change of the water phase level in the three-phase separator over time in a specific application example of the present invention;

[0055] Fig.12 is a curve showing the change of pressure in a three-phase separator over time in a specific application example of the present invention;

[0056] Fig.13 The curve of oil outflow rate at the outlet of the three-phase separator changing with time in a specific application example of the present invention;

[0057] Fig.14 The curve of the water outflow rate at the outlet of the three-phase separator changing with time in a specific application example of the present invention;

[0058] Fig.15 The curve of oil content at the outlet of the three-phase separator changing with time in the specific application example of the present invention;

[0059] Fig.16 The curve of the water content at the oil outlet of the three-phase separator changing with time in the specific application example of the present invention;

[0060] Fig.17 Schematic diagram of the composition of a three-phase separator digital twin simulation device in an embodiment of the present invention;

[0061] Fig.18 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0062] Digital oil and gas fields are the product of the deep integration of modern oil and gas industry and advanced information technology. The goal is to conduct full-space, continuous, real-time or quasi-real-time digital collection, visual simulation and digital management of the entire process of oil and gas field exploration, evaluation, development, production and gathering and transportation, as well as the entire life cycle of core assets, so as to optimize the production process, improve asset utilization, improve management efficiency and operation level, improve HSE (health, safety and environmental management system), and increase the net present value of assets. Its key indicators are: comprehensive business coverage, reliable and effective data, and meet the needs of production process control, scientific research and evaluation, and technical and economic scientific decision-making. Domestic oil and gas field enterprises have launched a wave of digital and intelligent construction in combination with their own informationization, industrialization integration and transformation and development needs. As an indispensable basic equipment unit in the oil and gas field, digital simulation of the three-phase separator is a necessary condition for realizing digitalization and intelligence in the oil and gas field.

[0063] Based on the above background, the embodiment of the present invention provides a specific implementation method of a three-phase separator digital twin simulation method, see Figure 1 , the method specifically includes the following contents:

[0064] Step 100: Establish the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively.

[0065] It should be noted that the motion velocity model in step 200 includes the motion velocity model of the droplets in the horizontal direction and the motion velocity model in the vertical direction in the three-phase separator. The oil level refers to the oil level position (i.e., the oil-water interface position); the water level refers to the water level position (i.e., the gas-liquid interface position).

[0066] Step 200: Establish a motion model for characterizing the flow of droplets.

[0067] It should be noted that step 200 needs to assume that the flows above and below the oil-water interface are independent stable flows. In addition, in the embodiment of the present invention, the following definitions are made: the droplet transport generated by volume flow is called convection flow, and the droplet flow driven by buoyancy is called non-convective flow. Figure 2 Convective flow (due to volume motion) is indicated by white arrows; non-convective (buoyancy-driven) water flow is indicated by black double arrows; non-convective (buoyancy-driven) oil flow is indicated by black single arrows.

[0068] Step 300: Establishing a mass balance model of the dispersed phase in each region in the three-phase separator;

[0069] It can be understood that the dispersed substance is the dispersed phase, also known as the diffuse phase, while the continuous medium is called the continuous phase.

[0070] Step 400: Perform digital twin simulation on the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0071] By using the parameters and models determined in steps 100 to 300, a mathematical simulation model of the oil, gas and water three-phase separation equipment is comprehensively established, and accurate separation efficiency of the three-phase separator can be obtained after programming and calculation. In addition, the separator can be operated in the best working condition to improve the working efficiency, and the quality of crude oil after preliminary treatment can be predicted, which is helpful to promote the "tertiary oil recovery" process of the oil field. At the same time, it also helps to achieve the safety guarantee of oil product flow.

[0072] From the above description, it can be seen that the digital twin simulation method of the three-phase separator provided by the embodiment of the present invention first establishes the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively; establishes a motion model for characterizing the flow of droplets; then, establishes a mass balance model of the dispersed phase in the three-phase separator in different regions; finally, the three-phase separator is digitally simulated according to the oil level control equation, water level control equation, pressure control equation and motion model. The present invention can not only quickly and efficiently obtain the key factors affecting the operation of the separator system, but also timely grasp the operation status and working effect of the equipment, combine simulation with on-site conditions, complete the monitoring operation of the equipment, and save a lot of manpower and material resources.

[0073] In one embodiment, see Figure 3 , step 200 further comprises:

[0074] Step 201: establishing a velocity equation of droplets in the vertical direction of the droplet flow in the three-phase separator;

[0075] Step 202: Establish a velocity equation for the horizontal direction of the droplet flow in the three-phase separator.

[0076] When step 201 and step 202 are implemented, they are specifically as follows:

[0077] The vertical sedimentation or buoyancy velocity of dispersed phase particles is calculated by selecting the corresponding formula according to the flow area, specifically:

[0078] In the laminar flow region, Stokes' formula is used:

[0079] Transition zone, using Allen's empirical formula:

[0080] In the turbulent region, Newton's empirical formula is used:

[0081] Where g is the acceleration due to gravity, in m / s; d is the diameter of the dispersed phase particles, in m; Δρ is the density difference between the dispersed phase and the continuous phase, in kg / m 3 ; ρ is the density of the continuous phase, in kg / m 3 ; μ is the viscosity of the continuous phase, unit: Pa·s.

[0082] The flow region where the dispersed phase particles are located can be determined based on the relationship between the dispersed phase particle diameter and the critical diameter. The critical diameter calculation formula for the laminar flow zone and the transition zone is:

[0083]

[0084] The critical diameter between the transition zone and the turbulent zone is calculated as:

[0085]

[0086] The meanings of the parameters in the above two equations are consistent with those in equations (1) to (3). When d < d1, the dispersed phase particles are in the laminar flow region; when d1 < d < d2, the dispersed phase particles are in the transition region; when d2 < d, the dispersed phase particles are in the turbulent flow region.

[0087] The lateral velocity of the droplets in the gravity separator is given by:

[0088]

[0089]

[0090] In the formula, is the horizontal movement speed of water droplets in the continuous oil layer, in m / s; The horizontal movement speed of oil droplets in a continuous water layer, in m / s; They are the water outlet flow rate and the oil outlet flow rate, in m 3 / s; F Δw 、F Δo are the volume changes of water phase and oil phase calculated according to the changes of water layer and oil layer liquid level per unit time, in m3 / s; N w 、N o A is the number of layers divided into water layer and oil layer, dimensionless; left,w , A left,o They are the lateral areas of water layer and oil layer respectively, unit: m2.

[0091] In one embodiment, see Figure 4 , step 100 further comprises:

[0092] Step 101: Establish the oil level control equation, the water level control equation and the pressure control equation according to the radius, length, oil layer volume, water layer volume, liquid inlet, air inlet, air outlet flow, oil outlet flow, water outlet flow, gas phase volume, density, molar mass and temperature of the three-phase separator.

[0093] Specifically, the control equations of oil level, water level and pressure in the three-phase separator are:

[0094] Oil Level:

[0095] In the formula, It is the internal angle determined by the volume change of the liquid phase in the separator at time t+1; is the flow rate of oil-water mixture flowing into the separator at time t, in m 3 / s; is the sewage flow rate out of the outlet at time t, in m 3 / s; is the oil flow rate out of the oil outlet at time t, in m 3 / s; is the volume of the water layer at time t, in m 3 ; is the volume of the oil layer at time t, in m 3 ; L is the separator length, unit: m; R is the separator radius, unit: m.

[0096] Water Level:

[0097] In the formula, It is the internal angle determined by the volume change of the water phase in the separator at time t+1; the meanings of other parameters are the same as in the above formula.

[0098] pressure:

[0099] in

[0100] Where Z is the compressibility factor, dimensionless; R is the gas constant, unit J / mol·K; T t+1 is the temperature at time t+1, in K; is the amount of gas substance flowing in at time t+1, in mol; is the amount of gas flowing out at time t+1, in mol; n t is the amount of gas in the separator at time t; are the gas flow rate at the outlet and the gas flow rate at the inlet at time t, in m3 / s; are the outflowing gas density and inflowing gas density at time t, in kg / m3; They are the molar mass of the gas flowing out of the outlet and the molar mass of the gas flowing into the inlet, respectively, in kg / mol.

[0101] Droplet number density: Number density refers to the number of particles or substances per unit volume. Several types of droplets are considered in the model. The droplet type is identified by the serial number k. The volume calculation formula for a single particle of the kth type of droplet is:

[0102]

[0103] Where, d k is the diameter of the kth type of droplet, in m.

[0104] When the water content of the oil layer is known, the percentage of water droplets of type k WC k The calculation formula is:

[0105] WC k =WC×Ψ k (12)

[0106] Where WC is the initial inlet reservoir water content, dimensionless; k is the percentage of the kth type of water droplets in the total water droplets, dimensionless.

[0107] Correspondingly, when the oil content of the water layer is known, the percentage of oil droplets in the kth type OC k for:

[0108] OC k =OC×ω k (13)

[0109] Where OC is the oil content of the inlet water layer, dimensionless; ω k It is the percentage of the kth type of oil droplets in the total oil droplets, dimensionless.

[0110] The number of water droplets of the kth type flowing into the entire oil layer is N w,k The calculation formula is:

[0111]

[0112] In the formula, is the liquid flow rate into the oil phase, unit: m 3 / s; V w,k is the volume of a single droplet of type k, in m 3 .

[0113] Correspondingly, the number of k-th type of oil droplets flowing into the entire water phase is N o,k The calculation formula is:

[0114]

[0115] In the formula, is the liquid flow rate into the water phase, in m 3 / s; V o,k is the volume of a single oil droplet of type k, in m 3 The specific number of water droplets flowing into each layer of the oil phase can be obtained by multiplying the total number of water droplets by the proportion of the cross-sectional area of ​​the control volume of this layer. The number of oil droplets flowing into each layer of the water phase control volume is calculated in the same way.

[0116] The number density ni(k) of the droplets of the kth particle size category in each small control volume (i, j) in the model ,l) The number of droplets of this size is divided by the control volume to calculate:

[0117]

[0118] In the formula, is the total number of droplets of type k in the control volume (i, j), dimensionless; V (i,j) is the volume of the control volume (i,j), in m 3 .

[0119] In one embodiment, see Figure 5 , step 300 further comprises:

[0120] Step 301: Dividing the three-phase separator into a pure oil area, a water outlet area, and an oil-water coexistence area in the horizontal direction;

[0121] Step 302: Divide the oil-water coexistence zone into multiple regions in the vertical direction;

[0122] In step 301 and step 302, based on the three-phase separator structure ( Figure 2 ), taking into account the inlet zone and the main separation zone. In the main separation zone, water droplets settle in the continuous oil layer, and oil droplets rise in suspension in the continuous water layer. When the dispersed droplets reach the interface, they merge with their respective continuous phases through the oil-water interface. At the end of the main separation zone, the water in the remaining oil dispersed inside the weir adjacent to it flows out from the water outlet of the separator weir. The oil remaining above the interface and to the left of the weir flows over the weir and is collected from the oil outlet.

[0123] The main separation area is divided into small control volumes indexed by (i, j). The discretization method used can ensure that the oil-water interface is not in the control volume. The water layer, that is, the liquid volume below the oil-water interface, is divided into N x - 1 equally spaced horizontal segments and N w equally spaced vertical segments, forming N w (Nx -1) control volume. The oil layer on the left side of the weir is divided into N x - 1 equally spaced horizontal segments and N o equally spaced vertical segments, forming N o (N x -1) control volume. On the right side of the weir, there is a horizontal section and N o +N w vertical segments. Therefore, there are a total of N x (N w +N o ) control body. Figure 6 In, there are N x =10, N w =3 and N o =3. Control volume (i,j) with V (i,j) Indicates that from left to right i corresponds to i=1 to i=N x , and from bottom to top j corresponds to j=1 to j=(N w +N o ).

[0124] Next, see Figure 7 The three-phase separator is divided into a pure oil zone (zone VIII), a water outlet zone (zone VII) and oil-water coexistence zones (zones I, II, III, IV, V and VI) in the horizontal direction.

[0125] Step 303: In the horizontal direction, establishing a control equation for the flow of droplets in the oil-water coexistence zone driven by volume flow;

[0126] Step 304: in the vertical direction, respectively establishing control equations of the droplet flow in the pure oil area and the water outlet area driven by non-volumetric flow;

[0127] Step 305: In the vertical direction, establishing control equations for the flow of droplets in the multiple regions.

[0128] In steps 303 to 305, the number density of the k-th dispersed phase particles in any control volume (i, j) at the t+1th time is equal to the number density of the k-th dispersed phase particles in the control volume (i, j) at the previous time t plus the change in the number density of the k-th dispersed phase particles in the control volume (i, j), and the calculation formula is:

[0129]

[0130] Where n (i,j),(t) Δn represents the number density of the kth dispersed phase particles in the control volume (i, j) at the previous time t, in units of pieces; (i,j),(t+1)represents the change in the number density of the kth dispersed phase particles in the control volume (i, j), which is numerically equal to the change in the number density caused by the flow in the x direction plus the change in the number density caused by the flow in the y direction.

[0131]

[0132] Among them, the number of changes in the x direction of the k-th dispersed phase particles of the control body (i, j) at time t+1 is It is equal to the inflow to the left grid minus the outflow to the right grid; it controls the change in the y direction of the kth dispersed phase particle of the volume (i, j) at time t+1. It is equal to the inflow from the upper grid minus the outflow to the lower grid, and the calculation formulas are:

[0133]

[0134]

[0135] Among them, v k,x (t) represents the velocity of the k-th droplet along the x direction at time t, represents the velocity of the k-th droplet along the y direction at time t, represents the surface area on the left side of the control volume (i, j), represents the bottom surface area of ​​the control volume (i,j), represents the number density of the kth type of droplets in the control volume (i, j) at time t.

[0136] Specifically, the control volume equation of the droplet in the oil-water coexistence zone driven by volume flow is:

[0137] (1) The calculation formula for the change in the number of dispersed phase particles caused by lateral convection in regions Ⅰ, Ⅱ, Ⅲ, Ⅳ, Ⅴ, and Ⅵ is:

[0138] When i=1, that is, in the first column of grid control volume, the change in the number of dispersed phase particles caused by lateral convection is equal to the number of particles flowing in from the inlet minus the number of particles flowing out to the right grid:

[0139]

[0140] i=2~(N x -2) That is, in the second to the second to last column of grid control volumes, the change in the number of dispersed phase particles caused by lateral convection is equal to the number of particles flowing in from the left grid minus the number of particles flowing out from the right grid:

[0141]

[0142] (2) Longitudinal convection

[0143] 1) Region VII

[0144] When j=1-2:

[0145]

[0146] When j=3, that is, in the control volume (9,3):

[0147]

[0148] When j=4, that is, in the control volume (9,4):

[0149]

[0150] When j=5, that is, in the control volume (9,5):

[0151]

[0152] When j=6, that is, in the control volume (9,6):

[0153]

[0154] 2) Region VIII

[0155] j=N w +N o hour:

[0156]

[0157] j=1~(N w +N o -1):

[0158]

[0159] (3) Longitudinal non-convection

[0160] Area I

[0161]

[0162] II Area

[0163]

[0164] Area III

[0165]

[0166] IV Region

[0167]

[0168] Area V

[0169]

[0170] Region VI

[0171]

[0172] In addition, an additional intermediate layer called a dense packing layer or emulsion layer is added to the third and fourth layers of the oil-water interface. In some cases, this intermediate layer is produced because the surface characteristics of certain chemicals (such as asphaltenes present in some crude oils) hinder the separation process. The coefficient α is called the retention factor, which is numerically equal to the ratio of the number of oil droplets (water droplets) entering the water layer (oil layer) through the interface to the total number of oil droplets (water droplets). In the separation efficiency model, the control volume (N x -1,1) is the oil content in the wastewater discharged from the three-phase separator; the control volume (N x , the water content in 1) is the water content of the oil product obtained after treatment by the three-phase separator. Oil content of the discharged wastewater at time t and the water content at the oil outlet at time t The calculation formulas are:

[0173]

[0174]

[0175] Where V k represents the volume of each k-th dispersed phase particle, represents the control volume at time t (N x , 1) the number density of the kth dispersed phase particles; represents the control volume at time t (N x , 1) The number density of the kth type of dispersed phase particles.

[0176] In one embodiment, see Figure 8 , the three-phase separator digital twin simulation method also includes:

[0177] Step 500: Establish a calculation model for the oil content at the water outlet and the water content at the oil outlet of the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0178] When step 500 is implemented, the oil-water interface in the three-phase separator is first determined. Further, the oil-water interface is determined by the water content at the inlet of the three-phase separator, the total liquid flow rate flowing into the three-phase separator, the proportion of water flowing into the three-phase separator that enters the continuous water layer, and the proportion of oil flowing into the three-phase separator that enters the continuous oil layer.

[0179] Next, based on buoyancy drive, according to the oil-water interface, the water content at the inlet of the three-phase separator, the total liquid flow rate flowing into the three-phase separator, the proportion of water flowing into the three-phase separator entering the continuous water layer, and the proportion of oil flowing into the three-phase separator entering the continuous oil layer, a flow model of the droplet flow entering the oil layer and a flow model of the droplet flow entering the water layer were established respectively.

[0180] Specifically, the liquid flow rate entering the oil layer and the liquid flow into the water layer The calculation formulas are:

[0181]

[0182]

[0183] Where: γ w γ is the proportion of water separated in the inlet area that eventually enters the continuous water layer, dimensionless; o ε is the proportion of the oil separated from the inlet area that enters the continuous oil layer, dimensionless; in is the water content of the oil-water mixture flowing into the separator, dimensionless; is the flow rate of oil-water mixture at the separator inlet, in m 3 / s.

[0184] Finally, based on formula (38), formula (39) and the oil level control equation, water level control equation, pressure control equation and motion model, a calculation model for the oil content at the water outlet and the water content at the oil outlet of the three-phase separator is established, so that the oil content at the water outlet and the water content at the oil outlet of the three-phase separator can be accurately calculated.

[0185] To further illustrate the present solution, the present invention also provides a specific application example of the three-phase separator digital twin simulation method, which specifically includes the following contents, see Fig. 9 .

[0186] First, the specific model of the three-phase separator in this specific application example is introduced, see Table 1.

[0187] Table 1 Basic parameters of three-phase separator

[0188]

[0189] S1: Develop a motion model for characterizing droplet flow.

[0190] S2: Establish the velocity model of droplet flow, the oil level control equation, the water level control equation and the pressure control equation in the three-phase separator respectively.

[0191] S3: Establish a mass balance model of the dispersed phase in the three-phase separator by region.

[0192] S4: Perform digital twin simulation of the three-phase separator based on the flow model, motion speed model, oil level control equation, water level control equation, and pressure control equation.

[0193] Referring to step S1 to step S4, after setting the parameters, first simulate the filling process of the three-phase separator to obtain the curves of the oil phase level, water phase level, pressure, water outflow, and oil outflow over time; read these data at each moment and simulate and simulate the established model to obtain the water content of the oil outlet and the oil content of the water outlet at each moment, see Figures 10 to 16 .

[0194] The embodiment of the present invention provides a specific implementation of a three-phase separator digital twin simulation device capable of implementing a three-phase separator digital twin simulation method, see Fig.17 , the three-phase separator digital twin simulation device specifically includes the following contents:

[0195] A control equation establishing module 10 is used to establish an oil level control equation, a water level control equation and a pressure control equation in a three-phase separator respectively;

[0196] A motion model building module 20, used to build a motion model for characterizing the flow of droplets;

[0197] A balance model building module 30, used to build a mass balance model of the dispersed phase in the three-phase separator by region;

[0198] The digital simulation module 40 is used to perform digital twin simulation on the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0199] In one embodiment, the motion model building module includes:

[0200] A vertical equation establishing unit, used to establish a velocity equation of droplets in the vertical direction of the droplet flow in the three-phase separator;

[0201] A horizontal equation establishing unit, used to establish a motion velocity equation of the droplet flow in the three-phase separator in the horizontal direction;

[0202] The control equation establishment module is specifically used to establish the oil level control equation, the water level control equation and the pressure control equation according to the radius, length, oil layer volume, water layer volume, liquid inlet volume, air inlet volume, air outlet flow rate, oil outlet flow rate, water outlet flow rate, gas phase volume, density, molar mass and temperature of the three-phase separator.

[0203] In one embodiment, the equilibrium model building module includes:

[0204] A region division unit, used for dividing the three-phase separator into a pure oil region, a water outlet region and an oil-water coexistence region in a horizontal direction;

[0205] A region division subunit, used for dividing the oil-water coexistence zone into a plurality of regions in a vertical direction;

[0206] The oil-water coexistence zone equation establishing unit is used to establish the control equation of the droplet flow in the oil-water coexistence zone driven by volume flow in the horizontal direction;

[0207] A pure oil zone equation establishing unit is used to establish control equations of droplet flow in the pure oil zone and the water outlet zone driven by non-volume flow in the vertical direction;

[0208] A plurality of regional equation establishing units, used for establishing control equations of the droplet flow of the plurality of regions in the vertical direction;

[0209] The three-phase separator digital twin simulation device further includes:

[0210] The water content model establishment module is used to establish the water outlet oil content and oil outlet water content calculation model of the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model.

[0211] The embodiments of the present application also provide a specific implementation of an electronic device capable of implementing all steps in the three-phase separator digital twin simulation method in the above embodiments, see Fig.18 , electronic equipment specifically includes the following:

[0212] Processor (processor) 1201, memory (memory) 1202, communication interface (CommunicationsInterface) 1203 and bus 1204;

[0213] The processor 1201 , the memory 1202 , and the communication interface 1203 communicate with each other via the bus 1204 ; the communication interface 1203 is used to implement information transmission between relevant devices such as server-side devices, measurement devices, and user-side devices.

[0214] The processor 1201 is used to call the computer program in the memory 1202. When the processor executes the computer program, all the steps in the three-phase separator digital twin simulation method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0215] Step 100: Establishing a flow model of droplet flow driven by buoyancy;

[0216] Step 200: establishing a velocity model of droplet flow, an oil level control equation, a water level control equation, and a pressure control equation in a three-phase separator respectively;

[0217] Step 300: Establishing a mass balance model of the dispersed phase in each region in the three-phase separator;

[0218] Step 400: Perform digital twin simulation on the three-phase separator according to the flow model, the motion speed model, the oil level control equation, the water level control equation and the pressure control equation.

[0219] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0220] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0221] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0222] Although the embodiments of this specification provide method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements not only includes those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.

[0223] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A three-phase separator digital twin simulation method, characterized in that: include: Establish the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively; Establishing a motion model for characterizing droplet flows; Establishing a mass balance model of the dispersed phase in each region of the three-phase separator; Performing digital twin simulation on the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model; The establishment of the oil level control equation, the water level control equation and the pressure control equation in the three-phase separator includes: The oil level control equation, the water level control equation and the pressure control equation are established according to the radius, length, oil layer volume, water layer volume, liquid inlet, air inlet, air outlet flow, oil outlet flow, water outlet flow, gas phase volume, density, molar mass and temperature of the three-phase separator; A mass balance model of the dispersed phase is established in each region of the three-phase separator, including: In the horizontal direction, the three-phase separator is divided into a pure oil area, a water outlet area, and an oil-water coexistence area; Dividing the oil-water coexistence zone into a plurality of zones in a vertical direction; In the horizontal direction, a control equation for the flow of droplets in the oil-water coexistence zone driven by volume flow is established; In the vertical direction, control equations of the droplet flow in the pure oil area and the water outlet area driven by non-volume flow are established respectively; In the vertical direction, the control equations of the droplet flows in the multiple regions are established.

2. The three-phase separator digital twin simulation method according to claim 1, characterized in that: The motion model established for characterizing the flow of droplets includes: Establishing a velocity equation of droplets in the vertical direction of the droplet flow in the three-phase separator; The velocity equation of the droplet flow in the three-phase separator in the horizontal direction is established.

3. The three-phase separator digital twin simulation method according to claim 1, characterized in that: Also includes: A calculation model for the oil content at the water outlet and the water content at the oil outlet of the three-phase separator is established based on the oil level control equation, the water level control equation, the pressure control equation and the motion model.

4. A three-phase separator digital twin simulation device, characterized in that: include: A control equation establishment module, used to establish the oil level control equation, water level control equation and pressure control equation in the three-phase separator respectively; A motion model building module, used to build a motion model for characterizing droplet flow; A balance model building module, used to build a mass balance model of the dispersed phase in the three-phase separator by region; A digital simulation module, used for performing digital twin simulation of the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model; The equilibrium model building module includes: A region division unit, used for dividing the three-phase separator into a pure oil region, a water outlet region and an oil-water coexistence region in a horizontal direction; A region division subunit, used for dividing the oil-water coexistence zone into a plurality of regions in a vertical direction; The oil-water coexistence zone equation establishing unit is used to establish the control equation of the droplet flow in the oil-water coexistence zone driven by volume flow in the horizontal direction; A pure oil zone equation establishing unit is used to establish control equations of droplet flow in the pure oil zone and the water outlet zone driven by non-volume flow in the vertical direction; A plurality of regional equation establishing units, used for establishing control equations of the droplet flow of the plurality of regions in the vertical direction; The three-phase separator digital twin simulation device further includes: A water content model establishment module, used to establish a calculation model of the water outlet oil content and the oil outlet water content of the three-phase separator according to the oil level control equation, the water level control equation, the pressure control equation and the motion model; The control equation establishment module is specifically used to establish the oil level control equation, the water level control equation and the pressure control equation according to the radius, length, oil layer volume, water layer volume, liquid inlet volume, air inlet volume, air outlet flow rate, oil outlet flow rate, water outlet flow rate, gas phase volume, density, molar mass and temperature of the three-phase separator.

5. The three-phase separator digital twin simulation device according to claim 4, characterized in that: The motion model building module includes: A vertical equation establishing unit, used to establish a velocity equation of droplets in the vertical direction of the droplet flow in the three-phase separator; The horizontal equation establishing unit is used to establish the motion velocity equation of the droplet flow in the horizontal direction in the three-phase separator.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the three-phase separator digital twin simulation method according to any one of claims 1 to 2 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the three-phase separator digital twin simulation method described in any one of claims 1 to 2 are implemented.