Liquid pipeline positioning method and device

By acquiring and processing data on liquid pipelines, we can identify and capture air bags, which solves the safety threat caused by air bags during the commissioning of liquid pipelines, improves the safety of pipelines, and prevents accidents caused by accumulation of air blockage.

CN115681822BActive Publication Date: 2024-09-03CHINA UNIV OF PETROLEUM (BEIJING)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110858723.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-28
Publication Date
2024-09-03
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

Existing methods for putting liquid pipelines into production have low safety issues in areas with large height differences, resulting in the fragmentation and incomplete disappearance of gas-accumulated sections, and the backflow of bubbles to form air pockets, resulting in the accumulation of air blockage, which may lead to pipeline overpressure and pipe explosion accidents.

Method used

By acquiring the pipeline data and fluid data of the liquid pipeline, calculating the flow field data and bubble data, determining the air bag data according to the preset threshold, and capturing, positioning and tracking the air bag, the size and position of the air bag can be estimated and determined.

Benefits of technology

It improves the safety of liquid pipelines, prevents pipeline accidents caused by accumulation of air blockage, and ensures the stability of pipeline operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115681822B
    Figure CN115681822B
Patent Text Reader

Abstract

The present application provides a method and device for positioning a liquid pipeline, the method comprising: obtaining pipeline data of the liquid pipeline and fluid data in the liquid pipeline; obtaining flow field data and the number of bubbles in the liquid pipeline according to the pipeline data and the fluid data; determining the airbag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold, the airbag data characterizing the aggregation of the dispersed phase; and capturing, locating and tracking the airbags in the liquid pipeline according to the airbag data in the liquid pipeline. Compared with the prior art, the present application determines the airbag data in the liquid pipeline through flow field data, bubble data and a preset threshold, and captures, locates and tracks the airbags in the liquid pipeline according to the airbag data, thereby realizing the estimation and determination of the size and position of the airbags in the liquid pipeline, solving the safety threat of the airbags to the liquid pipeline and improving the safety of the liquid pipeline.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of large-drop liquid pipelines, and in particular to a method and device for positioning a liquid pipeline. Background Art

[0002] Oil and gas pipelines cross east and west, and run north and south, covering very complex terrain. The construction of oil and gas pipelines will pass through areas with continuous ups and downs and large drop heights. Before the liquid pipeline is put into formal operation, it is necessary to carry out pipeline commissioning to clean the pipeline, debug the equipment, and discharge the accumulated gas to ensure the safety of operation.

[0003] At present, the main way to put liquid pipelines into operation is water intermodal operation. In the water intermodal operation of large drop pipelines, due to the large drop, the water head will flow to the downhill section in the form of open channel flow after crossing the high point of the pipe section. At the low point of the pipeline, these liquid flows will accumulate and eventually form liquid plugs, resulting in gas accumulation in the downhill pipe section. In the continuous large drop pipeline water intermodal operation, a large number of gas accumulation sections will be formed. As the commissioning progresses, the liquid plug at the low point grows, and the liquid plug in the uphill section will continue to grow, so that the downhill gas accumulation section will be subject to a continuously increasing back pressure. When the back pressure exceeds a certain threshold, the tail of the gas accumulation section begins to break into small bubbles and migrate downstream.

[0004] However, in theory, through such a migration and exhaust method, during the commissioning of the large drop pipeline water transport, each gas accumulation section will be broken at a certain speed, shrink, and disappear. However, in related experiments, it was observed that the gas accumulation section did not disappear due to the breakage, and the broken bubbles did not all move downstream. In related experiments, it was observed that the broken bubbles would slow down or even flow back under the action of buoyancy in the downslope section, converge into long air bags at the downstream of the gas accumulation section, and eventually develop into new gas accumulation sections. After the bubbles regrouped and formed into air bags, the air bags moved with the action of the complex flow field in the large drop pipeline, moved in various structures of the pipeline, and merged and accumulated with each other, thus forming serious air resistance; at the same time, after the air bags developed to a certain scale, there would be a problem of bubble breakage at the tail. The characteristics of bubbles and air bags moving and transforming with each other during the large drop commissioning process make the air resistance in the pipe complex. If the air resistance accumulates too much, it will cause accidents such as pipeline overpressure and pipe burst. Therefore, the existing liquid pipeline commissioning method has the problem of low safety. Summary of the invention

[0005] The embodiments of the present application provide a method and device for positioning a liquid pipeline to solve the problem of low safety of the liquid pipeline commissioning method in the prior art.

[0006] A first aspect of the present application provides a method for positioning a liquid pipeline, the method comprising:

[0007] Acquiring pipeline data of the liquid pipeline and fluid data in the liquid pipeline;

[0008] According to the pipeline data and the fluid data, flow field data and bubble data of the liquid pipeline are obtained, wherein the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the liquid pipeline in the continuous phase;

[0009] Determining air bag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold, wherein the air bag data represents the aggregation of the dispersed phase;

[0010] The airbag in the liquid pipeline is captured, located and tracked according to the airbag data in the liquid pipeline.

[0011] In an optional implementation, obtaining the flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data includes:

[0012] Obtain staggered grid data of the liquid pipeline according to the pipeline data, wherein the staggered grid data includes main grid data and sub-grid data;

[0013] The flow field data and the bubble data are obtained according to the fluid data and the staggered grid data.

[0014] In an optional implementation, obtaining the flow field data and the bubble data according to the fluid data and the staggered grid data includes:

[0015] Obtaining the flow field equation and bubble migration equation of the liquid pipeline according to the fluid data;

[0016] Discretizing the flow field equation according to the staggered grid data to obtain the flow field data;

[0017] The bubble migration equation is discretized according to the staggered grid data to obtain the bubble data.

[0018] In an optional implementation, the primary grid data stores a first parameter, and the secondary grid data stores a second parameter, the first parameter includes pressure data and gas phase content data, and the second parameter includes fluid velocity data.

[0019] In an optional implementation, determining the air bag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold value includes:

[0020] According to the flow field data and the bubble data, multiple co-located grid data of the liquid pipeline are obtained, wherein the multiple co-located grid data includes bubble grid data and air bag grid data;

[0021] The air bag data in the liquid pipeline is determined according to the multiple co-located grid data and the preset threshold.

[0022] In an optional implementation, determining the airbag data in the liquid pipeline according to the multiple co-located grid data and the preset threshold comprises:

[0023] Determining whether bubbles in the bubble grid data are aggregated into air pockets according to the gas phase content in the bubble grid data and the preset threshold;

[0024] If yes, obtaining the airbag data in the airbag grid data corresponding to the bubble grid data;

[0025] If not, it is determined that the bubbles in the bubble grid data are not aggregated into the air pockets.

[0026] In an optional embodiment, the capturing, locating and tracking the airbag in the liquid pipeline according to the airbag data in the liquid pipeline includes:

[0027] The airbag in the liquid pipe is captured, located and tracked in the airbag grid data according to the airbag migration equation and the airbag data.

[0028] A second aspect of the present application provides a positioning device for a liquid pipeline, the device comprising:

[0029] An acquisition module, used for acquiring pipeline data of the liquid pipeline and fluid data in the liquid pipeline;

[0030] A processing module is used to obtain flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data, wherein the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the continuous phase; determine the air bag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold, wherein the air bag data represents the aggregation of the dispersed phase; and capture, locate and track the air bags in the liquid pipeline according to the air bag data in the liquid pipeline.

[0031] In an optional embodiment, the processing module is specifically used to obtain staggered grid data of the liquid pipeline according to the pipeline data, and the staggered grid data includes main grid data and sub-grid data;

[0032] The flow field data and the bubble data are obtained according to the fluid data and the staggered grid data.

[0033] In an optional implementation, the processing module is specifically used to obtain the flow field equation and the bubble migration equation of the liquid pipeline according to the fluid data;

[0034] Discretizing the flow field equation according to the staggered grid data to obtain the flow field data;

[0035] The bubble migration equation is discretized according to the staggered grid data to obtain the bubble data.

[0036] In an optional implementation, the primary grid data stores a first parameter, and the secondary grid data stores a second parameter, the first parameter includes pressure data and gas phase content data, and the second parameter includes fluid velocity data.

[0037] In an optional embodiment, the processing module is specifically used to obtain multiple co-located grid data of the liquid pipeline according to the flow field data and the bubble data, and the multiple co-located grid data includes bubble grid data and air bag grid data;

[0038] The air bag data in the liquid pipeline is determined according to the multiple co-located grid data and the preset threshold.

[0039] In an optional embodiment, the processing module is specifically used to determine whether the bubbles in the bubble grid data are aggregated into air pockets according to the gas phase content in the bubble grid data and the preset threshold;

[0040] If yes, obtaining the airbag data in the airbag grid data corresponding to the bubble grid data;

[0041] If not, it is determined that the bubbles in the bubble grid data are not aggregated into the air pockets.

[0042] In an optional embodiment, the processing module is specifically used to capture, locate and track the airbag in the liquid pipe in the airbag grid data according to the airbag migration equation and the airbag data.

[0043] A third aspect of the present application provides an electronic device, comprising: a processor and a memory;

[0044] The memory is used to store computer programs;

[0045] The processor is used to call and run the computer program stored in the memory to execute the method as described in the first aspect.

[0046] A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the method as described in the first aspect.

[0047] The fifth aspect of the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0048] The present application provides a method and device for positioning a liquid pipeline, the method comprising: obtaining pipeline data of the liquid pipeline and fluid data in the liquid pipeline; obtaining flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data, the flow field data characterizing the flow of the continuous phase in the liquid pipeline, and the bubble data characterizing the movement of the dispersed phase in the continuous phase in the liquid pipeline; determining the airbag data in the liquid pipeline according to the flow field data, the bubble data and the preset threshold, the airbag data characterizing the aggregation of the dispersed phase; and capturing, locating and tracking the airbag in the liquid pipeline according to the airbag data in the liquid pipeline. Compared with the prior art, the present application determines the airbag data in the liquid pipeline through the flow field data, the bubble data and the preset threshold, and captures, locates and tracks the airbag in the liquid pipeline according to the airbag data, thereby realizing the estimation and determination of the size and position of the airbag in the liquid pipeline, solving the threat of the airbag to the safety in the liquid pipeline, and improving the safety of the liquid pipeline. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Figure 1 A schematic diagram of an application scenario of a liquid pipeline positioning method provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of a flow chart of a method for locating a liquid pipeline provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the structure of a liquid pipeline provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of the formation of an air bag in a liquid pipeline provided in an embodiment of the present application;

[0054] Figure 5 A schematic flow chart of another method for locating a liquid pipeline provided in an embodiment of the present application;

[0055] Figure 6 A schematic diagram of the structure of a staggered grid provided in an embodiment of the present application;

[0056] Figure 7 A schematic diagram of a basic volume group and a calculation volume group provided in an embodiment of the present application;

[0057] Figure 8 A schematic diagram of a bubble force provided in an embodiment of the present application;

[0058] Fig. 9 A schematic diagram of bubble grid data provided in an embodiment of the present application;

[0059] Fig.10 A schematic diagram of airbag grid data provided in an embodiment of the present application;

[0060] Fig.11 A schematic diagram of airbag merging provided in an embodiment of the present application;

[0061] Fig.12 A schematic diagram of bubble shattering at the tail of an airbag provided in an embodiment of the present application;

[0062] Fig.13 A schematic diagram of another bubble fragmentation at the tail of an airbag provided in an embodiment of the present application;

[0063] Fig.14 A schematic diagram of bubble shattering at the tail of another airbag provided in an embodiment of the present application;

[0064] Fig.15 A schematic diagram of another bubble fragmentation at the tail of an airbag provided in an embodiment of the present application;

[0065] Fig.16 A schematic flow chart of another method for positioning a liquid pipeline provided in an embodiment of the application;

[0066] Fig.17 A schematic structural diagram of a positioning device for a liquid pipeline provided in an embodiment of the present application;

[0067] Fig.18 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0069] Oil and gas pipelines cross east and west and run north and south, covering a very complex terrain. The construction of oil and gas pipelines will pass through areas with continuous undulating large drop. Before the liquid pipeline is put into formal operation, it is necessary to commission the pipeline to clean the pipeline, debug the equipment, and discharge the accumulated gas to ensure the safety of operation. At present, the main commissioning methods for liquid pipelines are water intermodal commissioning. In the water intermodal commissioning method of large drop pipelines, due to the large drop, the water head will flow to the downhill section in the form of open channel flow after crossing the high point of the pipe section. At the low point of the pipeline, these liquid flows will accumulate and eventually form liquid plugs, resulting in gas accumulation in the downhill section. In the continuous large drop pipeline water intermodal commissioning, a large number of gas accumulation sections will be formed. As the commissioning progresses, the growth of the low point liquid plug and the growth of the uphill section liquid plug will continue, so that the downhill gas accumulation section will be subject to a continuously increasing back pressure. When the back pressure exceeds a certain threshold, the tail of the gas accumulation section begins to break into small bubbles and migrate downstream.

[0070] However, in theory, through such a migration and exhaust method, during the commissioning of the large drop pipeline water transport, each gas accumulation section will be broken at a certain speed, shrink, and disappear. However, in related experiments, it was observed that the gas accumulation section did not disappear due to the breakage, and the broken bubbles did not all move downstream. In related experiments, it was observed that the broken bubbles would slow down or even flow back under the action of buoyancy in the downslope section, converge into long air bags at the downstream of the gas accumulation section, and eventually develop into new gas accumulation sections. After the bubbles regrouped and formed into air bags, the air bags moved with the action of the complex flow field in the large drop pipeline, moved in various structures of the pipeline, and merged and accumulated with each other, thus forming serious air resistance; at the same time, after the air bags developed to a certain scale, there would be a problem of bubble breakage at the tail. The characteristics of bubbles and air bags moving and transforming with each other during the large drop commissioning process make the air resistance in the pipe complex. If the air resistance accumulates too much, it will cause accidents such as pipeline overpressure and pipe burst. Therefore, the existing liquid pipeline commissioning method has the problem of low safety.

[0071] To solve the above problems, the present application provides a method and device for positioning a liquid pipeline, which determines the airbag data in the liquid pipeline through flow field data, bubble data and preset thresholds, and captures, locates and tracks the airbags in the liquid pipeline according to the airbag data, thereby estimating and determining the size and position of the airbags in the liquid pipeline, solving the safety threat of the airbags to the liquid pipeline and improving the safety of the liquid pipeline.

[0072] The application scenarios of this application are described below.

[0073] Figure 1 A schematic diagram of an application scenario of a method for locating a liquid pipeline provided in an embodiment of the present application. Figure 1 As shown, it includes: a liquid pipeline 001, a terminal device 002 and a server 003. After the terminal device 002 obtains the pipeline data of the liquid pipeline 001 and the fluid data of the fluid transported in the liquid pipeline 001, it sends them to the server 003. The server 003 processes the pipeline data and the fluid data, obtains the airbag data in the liquid pipeline 001, and captures, locates and tracks the airbag in the liquid pipeline 001 according to the airbag data.

[0074] Optionally, after the terminal device 002 obtains the pipeline data of the liquid pipeline 001 and the fluid data of the fluid transported in the liquid pipeline 001, it processes the pipeline data and the fluid data to obtain the airbag data in the liquid pipeline 001, and captures, locates and tracks the airbag in the liquid pipeline 001 according to the airbag data. The pipeline data, fluid data, airbag data, etc. can be stored in the server 003 for subsequent use.

[0075] Among them, the terminal device can be a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a mobile phone, a tablet computer (pad), a wireless terminal in industrial control, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in a smart home, etc.

[0076] In the embodiment of the present application, the device for realizing the positioning function of the liquid pipeline can be a terminal device or a server, or a device capable of supporting the realization of the function, such as a chip system, which can be installed in the terminal device or the server. In the embodiment of the present application, the chip system can be composed of a chip, or can include a chip and other discrete devices.

[0077] It should be noted that the application scenarios of the technical solution of this application can be Figure 1 The present invention is not limited to the scenario in the embodiment of the present invention, and can also be applied to other scenarios where the positioning of liquid pipelines is required.

[0078] It can be understood that the above-mentioned liquid pipeline positioning method can be implemented by the liquid pipeline positioning device provided in the embodiment of the present application. The liquid pipeline positioning device can be part or all of a certain device, such as the above-mentioned terminal device, server or chip of the terminal device.

[0079] The following takes a positioning device for a liquid pipeline integrated or installed with relevant execution codes as an example to describe the technical solution of the embodiment of the present application in detail with a specific embodiment. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0080] Figure 2 The present invention provides a flow chart of a method for locating a liquid pipeline. The implementation of the present invention is a terminal device, and the specific process of locating the liquid pipeline is involved. Figure 2 As shown, the method includes:

[0081] S101. Acquire pipeline data of a liquid pipeline and fluid data in the liquid pipeline.

[0082] The pipeline data of the liquid pipeline includes pipeline diameter, pipeline elevation, pipeline mileage, pipeline roughness, etc. The fluid data includes fluid type, fluid velocity, flow rate, etc., wherein the fluid type may include water and oil.

[0083] It is known that the pipeline data and fluid data may change in the liquid pipeline. In the embodiment of the present application, when the pipeline data and fluid data change, the changed pipeline data and fluid data are obtained, and the liquid pipeline is described based on the changed pipeline data and fluid data.

[0084] S102. Obtain flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data.

[0085] Among them, the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the continuous phase in the liquid pipeline. The continuous phase refers to the substance that disperses other substances in the dispersed system, and the dispersed substance is called the dispersed phase.

[0086] In the embodiment of the present application, the fluid in the liquid pipeline is a continuous phase, and the gas phase dispersed in the fluid in the liquid pipeline is a dispersed phase. In the present application, there is no specific limitation on the types of the continuous phase and the dispersed phase. For example, multiple different types of dispersed phases can exist simultaneously in the continuous phase, and mass transfer and transfer between different dispersed phases, such as hydrate slurry flow and waxy crude oil flow.

[0087] The following is an explanation of the conditions of the dispersed phase and the continuous phase in the liquid pipeline.

[0088] Figure 3 A schematic diagram of the structure of a liquid pipeline provided in an embodiment of the present application is shown in FIG. Figure 3 As shown in the figure, in a liquid pipeline, the "U"-shaped pipe section consisting of a downhill section, a low point and an uphill section can be set as a basic unit. Figure 3 The figure shows one of the basic units. Figure 3 As shown, it includes: a gas accumulation section S1, a liquid plug S4 and broken bubbles S3. In the actual production process, as the production progresses, as the low-point liquid plug S4 grows, the liquid plug S4 in the uphill section will continue to grow, so that the downhill gas accumulation section will be subject to a continuously increasing back pressure. When the back pressure exceeds a certain threshold, the tail of the gas accumulation section begins to break into small bubbles, and the broken bubbles S3 migrate downstream. Theoretically, through such a migration and exhaust method, during the water intermodal commissioning of a large drop liquid pipeline, each gas accumulation section S1 will break at a certain speed, shrink, and disappear. However, in related experiments, it was observed that the gas accumulation section S1 did not disappear due to breaking, and the broken bubbles did not all migrate downstream. Figure 4 Schematic diagram of the formation of an air bag in a liquid pipeline provided in an embodiment of the present application, such as Figure 4As shown, it includes: gas accumulation section S1 and air bag S2. Among them, θ is the angle between the liquid pipeline and the ground. Among them, the liquid pipeline also includes a large number of broken bubbles. In actual engineering, the broken bubbles will slow down under the action of buoyancy during the migration to the downhill section, and even flow back. Finally, they will aggregate at the downstream of the gas accumulation section S1 to form air bag S2, and then develop into a new gas accumulation section S1; after the bubbles S3 are reassembled into air bags S2, the air bags S2 migrate under the action of the complex flow field in the liquid pipeline. When migrating in various structures of the liquid pipeline, the air bags S2 will merge and accumulate with each other, thereby forming serious air resistance in the liquid pipeline; at the same time, after the air bags S2 develop to a certain scale, there will be bubble crushing at the tail of the air bags S2. The characteristics of the bubbles S3 and the air bags S2 migrating and transforming with each other during the commissioning of the liquid pipeline make the air resistance in the liquid pipeline complicated. If the air resistance accumulates too much, it will cause pipeline overpressure and even pipe burst and other accidents. For example, a more serious "hump air blockage" is formed near the high point of the liquid pipeline, and several stagnant air blockages are formed in the downhill section of the pipeline. These air blockages are difficult to discharge from the liquid pipeline by relying on the hydraulic action of the fluid itself, but require the help of external forces such as exhaust valves.

[0089] In the embodiment of the present application, flow field data and bubble data are determined based on pipeline data and fluid data, wherein the entire range of fluid flow is called a flow field. In a flow field, velocity and pressure, etc. may change. The flow field data may provide parameters such as fluid velocity required to determine bubble data.

[0090] In the embodiment of the present application, the states of the continuous phase and the dispersed phase in the liquid pipeline are constantly changing. Therefore, in the embodiment of the present application, the flow field data and the bubble data are calculated in real time, and the states of the fluid and the bubbles in the liquid pipeline are described based on the calculation results at each moment.

[0091] S103, determining the air bag data in the liquid pipeline according to the flow field data, the bubble data and the preset threshold value.

[0092] Among them, the air bag is characterized as the formation of bubbles due to the large number density of bubbles in a certain space, which leads to mutual aggregation. In the embodiment of the present application, the air bag data in the liquid pipeline is determined based on the flow field data and bubble data in each time step, wherein the air bag data represents the aggregation of the dispersed phase.

[0093] Optionally, when the gas phase content corresponding to the bubbles is greater than a preset threshold, it is determined that the corresponding bubbles are aggregated into air bags, and the corresponding air bag data is determined.

[0094] The following is an explanation of the bubbles and their breakup and aggregation in the liquid pipeline.

[0095] During the commissioning of the liquid pipeline, several gas accumulation sections will be formed in each downhill section. These gas accumulation sections will be broken into small bubbles and migrate downstream during the commissioning process. During the migration process, bubbles collide with each other under the action of turbulence. The greater the number density of bubbles, the greater the probability of collision, and the smaller the number density, the smaller the probability of collision. The number density refers to the number of bubbles per unit volume. After the collision, some bubbles will gather together to form larger bubbles; some bubbles will continue to break into smaller bubbles due to the action of liquid phase turbulence. Therefore, after bubbles of different sizes are broken out of the gas accumulation section, their migration downstream will be accompanied by different degrees of aggregation and breakage. For example, if several bubbles with a diameter of d are broken out at the end of a gas accumulation section, they will migrate downhill with the liquid flow. During the migration process, they may collide and merge with bubbles of other diameters, or they may merge with each other to form larger bubbles. In this way, the number of bubbles with a diameter of d will decrease; but at the same time, smaller bubbles will merge with each other and form bubbles with a diameter of d, so the number of bubbles with a diameter of d will increase. Conversely, bubbles with a diameter of d will break into smaller bubbles under the action of turbulence, so the number of bubbles will decrease; at the same time, if larger bubbles break into bubbles with a size of d, the number of bubbles will increase. During the production process, these bubbles break and aggregate all the time, and the bubble sizes also have a wide distribution range. If you want to determine the aggregation and breakage of bubbles of any size, the amount of calculation will become very huge; in addition, bubbles are affected by various forces during their migration downhill, and their migration characteristics will be more complicated.

[0096] S104, capturing, locating and tracking the airbags in the liquid pipeline according to the airbag data in the liquid pipeline.

[0097] Among them, the capture, positioning and tracking processing is to capture the movement of the airbag and the changes in the movement process in real time according to the airbag data, and to locate and track the captured airbag. Specifically, the airbag is located and tracked according to the airbag data at each moment.

[0098] For example, the aggregation and breakup of the corresponding airbags, as well as data such as position changes, can be determined based on the airbag data at each moment, thereby achieving the capture, positioning and tracking of the airbags.

[0099] The present application provides a method for positioning a liquid pipeline, the method comprising: obtaining pipeline data of the liquid pipeline and fluid data in the liquid pipeline; obtaining flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data, the flow field data characterizing the flow of the continuous phase in the liquid pipeline, and the bubble data characterizing the movement of the dispersed phase in the continuous phase in the liquid pipeline; determining the airbag data in the liquid pipeline according to the flow field data, the bubble data and the preset threshold, the airbag data characterizing the aggregation of the dispersed phase; and capturing, locating and tracking the airbag in the liquid pipeline according to the airbag data in the liquid pipeline. Compared with the prior art, the present application determines the airbag data in the liquid pipeline through the flow field data, the bubble data and the preset threshold, and captures, locates and tracks the airbag in the liquid pipeline according to the airbag data, thereby realizing the estimation and determination of the size and position of the airbag in the liquid pipeline, solving the safety threat of the airbag to the liquid pipeline and improving the safety of the liquid pipeline.

[0100] Based on the above embodiments, Figure 5 A schematic flow chart of another method for positioning a liquid pipeline provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the method includes:

[0101] S201. Acquire pipeline data of a liquid pipeline and fluid data in the liquid pipeline.

[0102] The technical terms, technical effects, technical features, and optional implementation methods of S201 can be found in Figure 2 As shown in S101, repeated contents will not be described again here.

[0103] S202. Obtain flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data.

[0104] In the implementation of this application, there is no limitation on the method of obtaining the flow field data and bubble data of the liquid pipeline based on the pipeline data and the fluid data. For example, a staggered grid method can be adopted to describe the liquid pipeline using a staggered grid, and then the flow field data and bubble data are obtained based on the fluid data.

[0105] Optionally, staggered grid data of the liquid pipeline is obtained according to the pipeline data, and the staggered grid data includes main grid data and sub-grid data; flow field data and bubble data are obtained according to the fluid data and the staggered grid data.

[0106] Among them, in the staggered grid data, the first parameter is stored on the main grid data, and the second parameter is stored on the sub-grid data. The first parameter includes pressure data and gas phase content data, etc., and the second parameter includes fluid velocity data, etc. Figure 6 A schematic diagram of a staggered grid structure provided in an embodiment of the present application is shown in FIG. Figure 6As shown, the staggered grid includes: a main grid S5 and a sub-grid S6, wherein the hollow circle in the main grid S5 represents a point in the liquid pipeline, one of which is the center point P, the flow direction of the fluid in the liquid pipeline is taken as the reference direction, the opposite direction of the flow direction is west w, and the flow direction is east E, wherein, φ k,W ,φ k,P and φ k,E They are respectively represented as the first parameters on point w, center point P and point E, exemplarily, pressure data, gas phase content data and density data, etc., wherein any point on the liquid pipeline can be used as the center point P; the hollow circle in the sub-grid S6 represents a point in the liquid pipeline, because it is staggered with the corresponding main grid S5, and on the east E side of the center point P on the main grid S5, the center point on the sub-grid S6 is represented by e, and the opposite direction of the flow direction is still west W. Accordingly, the east side of the center point e is set to east, represented by ee, wherein u k,W 、u k,e and u k,ee Represented as fluid velocity data at the corresponding point.

[0107] In the embodiments of the present application, there is no limitation on the method of obtaining flow field data and bubble data based on fluid data and staggered grid data. For example, the flow field equation and bubble transport equation of the liquid pipeline are obtained based on the fluid data; the flow field equation is discretized based on the staggered grid data to obtain the flow field data; the bubble transport equation is discretized based on the staggered grid data to obtain the bubble data.

[0108] The flow field equation and bubble migration equation in this application are explained below.

[0109] In the embodiments of the present application, a People Balance Model (PBM) is used to describe the aggregation and fragmentation of bubbles in a liquid pipeline.

[0110] Specifically, the population balance model of bubbles solves the problem that the possible sizes of bubbles are infinite. First, the bubbles in the liquid pipe are divided into M basic volume groups (v1, v2, ..., v M ), that is, to define a volume range that basically includes the volume of bubbles that may appear under different working conditions (v1~v M ), based on the basic volume group, we get (M-1) calculated volume groups (g1, g2, ..., g M-1 ), where M is an integer. This is done to avoid volume exceeding the limit during the calculation process. For example, if the volume is v M When a bubble combines with other bubbles to form a larger bubble that exceeds the boundary, calculation cannot continue. Figure 7A schematic diagram of a basic volume group and a calculation volume group provided in an embodiment of the present application is shown in FIG. Figure 7 As shown in the figure, the conversion relationship between the calculated volume group and the basic volume group is: g1+g2=2v2, and so on, until g M-1 . Figure 7 It can also be seen that in the basic volume group, a bubble with a volume v between v1 and v2 will be allocated to the calculation volume groups g1 and g2 according to a certain ratio during calculation. In this way, bubbles of different sizes within this range can be allocated to g1~g2 according to a certain ratio. M-1 The bubble aggregation and breakup formula can then be used to calculate the bubble size distribution at different times and locations.

[0111] In the embodiment of the present application, there is no limitation on the formula for bubble aggregation and fragmentation. For example, the formula for bubble aggregation and fragmentation includes:

[0112]

[0113] Where n(v, t) represents the number density of bubbles with a volume of u at the tth moment; u b represents the velocity of the bubble; c(·) represents the collision probability; β(·) represents the size distribution coefficient of the bubble; b(·) represents the breakup probability; C B represents the positive source term of bubble aggregation; C D represents the negative source term of bubble aggregation; B B represents the positive source term of bubble breaking; B D The negative source term represents the bubble breakup; the first term on the left side of the equal sign in formula (1) represents the transient term of the bubble, and the second term represents the mass conservation term. The positive source term and negative source term in formula (1) are defined from the concepts of "birth" and "death". If two small bubbles merge into a large bubble, it means that the two small bubbles "die" and the large bubble "is born". On the contrary, if a large bubble breaks into two small bubbles, it can be regarded as a large bubble "dies" and two small bubbles "are born". As time goes by, bubbles between different calculation volume groups will interact with each other and their numbers will evolve differently, just like in a society, due to changes in population birth rate and death rate, the population numbers of different age stages are presented in different periods. The so-called population balance model of bubbles introduces positive source terms (birth rate) and negative source terms (death rate) to describe the distribution of bubble number density presented at different times.

[0114] Furthermore, the Euler-Lagrange method is used to describe the fluid in the liquid pipeline to obtain the flow field equation and the bubble transport equation for the migration of bubbles of different sizes in the downhill section.

[0115] Specifically, in the bubble migration in the downhill section, the bubble migration is carried out in the liquid plug section after the gas accumulation section is broken. If the bubble migration is to be studied, it is first necessary to complete the hydraulic calculation of the downhill section of the fluid in the large drop liquid pipeline to obtain the flow field equation. In this application, a one-dimensional two-fluid model is used to obtain the flow field equation:

[0116]

[0117] Among them, M k represents the source term; the upper equation in formula (2) is the continuity equation, and the lower equation is the momentum equation. Where, k = g, 1, i.e. gas phase, liquid phase; a represents the gravitational acceleration; α k represents the phase fraction of each phase, ρ k represents the density of each phase, u k represents the velocity of each phase, Γ k represents the friction terms of each phase, and P represents the pressure.

[0118] Formula (2) can be used to calculate the basic flow field data such as liquid phase velocity required for bubble migration calculation.

[0119] Furthermore, the bubble migration equation is listed according to formula (1):

[0120]

[0121] Among them, the upper formula in formula (3) is the bubble number density equation, that is, formula (1), and it is also the bubble continuity equation listed by the Euler method, and the lower formula is the bubble momentum equation listed by the Lagrange method. Therefore, formula (3) combines the Euler method and the Lagrange method to describe the migration characteristics of bubbles, so this method is called the Euler-Lagrange method. Among them, in formula (3), F b is the resultant force on the bubble in the flow direction, m b is the corresponding bubble mass. Figure 8 A schematic diagram of a bubble force provided in an embodiment of the present application, such as Figure 8 As shown in the figure, the bubble flow direction is the direction of the X axis in the coordinate system, and the direction perpendicular to the X axis is the direction of the Y axis. The point where the bubble is located is the center point to establish a coordinate system, u L ,u B Indicates the flow direction of liquid and gas phases, F bou Indicates the buoyancy of the bubble, F Drag represents the drag force of the liquid flow on the bubble, m b g is the gravity on the bubble, g represents the acceleration of gravity, and the net force on the bubble is F b for:

[0122] F b =(m b F buo )cosθ+FDrag (4)

[0123] Furthermore, the flow field equation is discretized according to the staggered grid data to obtain the flow field data; and the bubble migration equation is discretized according to the staggered grid data to obtain the bubble data.

[0124] Specifically, the first-order upwind scheme is used to discretize formula (2) to obtain:

[0125]

[0126]

[0127] Then, according to the same staggered grid data, formula (3) is discretized to obtain:

[0128]

[0129]

[0130] After completing the calculation of the above equations, flow field data and bubble data can be obtained, for example, the velocity and number density of each group of bubbles in the flow field.

[0131] S203, determining the air bag data in the liquid pipeline according to the flow field data, the bubble data and the preset threshold value.

[0132] In the embodiment of the present application, the airbag data can be obtained according to the method of multiple collocation grids. Optionally, multiple collocation grid data of the liquid pipeline is obtained according to the flow field data and the bubble data, and the multiple collocation grid data includes bubble grid data and airbag grid data; the airbag data in the liquid pipeline is determined according to the multiple collocation grid data and a preset threshold.

[0133] Specifically, the flow field data and bubble data obtained by the above calculations may include, for example, hydraulic parameters of the flow field, the velocity of each group of bubbles, and the updated number density after considering the aggregation and breakup of bubbles. In a liquid pipeline, the velocity and number density of each bubble group at each time step, each distance step, can be calculated in real time, and then the formation of air pockets and the mass transfer and migration of bubbles in the liquid pipeline are captured, located and tracked based on the multi-co-located grid data to obtain the air pocket data in the liquid pipeline.

[0134] In the embodiment of the present application, there is no limitation on the method of determining the airbag data according to the preset threshold value, and it can be explained according to the specific situation. For example, according to the gas phase content in the bubble grid data and the preset threshold value, it is determined whether the bubbles in the bubble grid data are aggregated into airbags; if so, the airbag data is obtained in the airbag grid data corresponding to the bubble grid data; if not, it is determined that the bubbles in the bubble grid data are not aggregated into airbags.

[0135] Specifically, if you want to describe the aggregation of bubbles into air bags, you need to list the critical conditions for the transformation of bubbles into air bags, that is, the preset threshold. There is no restriction on the setting of the preset threshold in the embodiment of the present application. For example, if the air bag continues to swallow bubbles, it will grow into a longer Taylor bubble, that is, an air accumulation segment. Therefore, the air bag is essentially a Taylor bubble and can be defined as a shorter Taylor bubble. The air bag is formed by the mutual aggregation of bubbles due to the large number density of bubbles in a certain space, which also conforms to the transition characteristics from bubble flow to slug flow. Through research, a large number of relevant literature shows that many researchers have done a lot of research on the flow pattern transition conditions, and their conclusions can be summarized as follows: within a certain space, bubbles will collide and merge randomly to form some slightly larger single bubbles. With the increase of gas flow, at these lower liquid flow rates, the bubble density increases and reaches a critical point, where the dispersed bubbles become so tightly packed together that many collisions occur, and the speed of aggregation into larger bubbles increases sharply, which leads to the transition to slug flow. A large number of experiments have shown that the gas phase content in the bubble flow rarely exceeds 0.35; when the gas content is between 0.25 and 0.3, the bubble flow will transform into a slug flow. Considering the actual situation, 0.3 is taken as the conversion boundary point in the embodiment of the present application, that is, the preset threshold in the embodiment of the present application is 0.3.

[0136] It can be understood that the sum of the cross-sectional areas of each group of bubbles divided by the cross-sectional area of ​​the pipe is the gas phase content of the cross section. If its value is greater than or equal to 0.3, it is considered that the conditions for forming air pockets are met here. Specifically, it can be expressed by the following formula:

[0137]

[0138] Wherein, D represents the diameter of the liquid pipeline, and D is a variable quantity during the calculation process, that is, it changes according to the actual situation of the liquid pipeline.

[0139] S204, capturing, locating and tracking the airbags in the liquid pipeline according to the airbag data in the liquid pipeline.

[0140] Specifically, the airbag in the liquid pipe is captured, located and tracked in the airbag grid data according to the airbag migration equation and the airbag data.

[0141] The following describes the cases of bubble grid data and air bag grid data.

[0142] Fig. 9 A schematic diagram of bubble grid data provided in an embodiment of the present application, Fig.10 A schematic diagram of airbag grid data provided in an embodiment of the present application, such as Fig. 9 As shown, α b (x1), α b (x2) represents the gas phase content of bubbles at x = x1 and x = x2, respectively, cri represents the preset threshold value of gas phase holdup, α A (x1) represents the gas phase content of a single air cell at X = x1. Fig. 9 and Fig.10 The process of airbag positioning is shown in Figure 1. When the gas phase content of the bubble at grid x1 exceeds the preset threshold mentioned in formula (9), the airbag at x1 is formed and captured by the airbag grid data. At the same time, because of the mass transfer from the bubble to the airbag, when the gas phase content of the airbag becomes α A , the current number of bubbles at x1 will return to zero, which is the same as the α at x1 in the bubble grid data. b That is, as long as the gas phase content in a certain bubble grid data exceeds the standard listed in formula (9), it will be marked as a gas cell grid that captures the gas cell, and the grid will move in the gas cell grid, which is a multi-coordinate grid of the Lagrangian grid of the bubble and stores information such as volume fraction and velocity.

[0143] In the embodiment of the present application, the application of multiple co-located grids composed of bubble grids and air bag grids can provide parallel calculation of bubbles and air bags in the same grid, which means that such a grid can describe multiple gas phase forms at the same time and place.

[0144] Next, the positioning process of the airbag in the airbag mesh data will be described.

[0145] First, the migration of the airbag is explained. The migration equation of the airbag can be described according to the migration equation of the bubble according to formula (3). However, after the airbag is formed, it will be subject to more complex forces. There are similarities and differences with the forces that bubbles are subject to in the liquid flow. The similarities are that both are subject to the drag force of the liquid flow and the buoyancy. The difference is that due to the buoyancy, the airbag will "stick" to the pipe wall in the inclined pipe section and migrate. Therefore, when migrating, it will be subject to the friction of the pipe wall, and the interface between the airbag and the pipe wall is also affected by the surface tension. Therefore, in the migration equation of the airbag, the force on the airbag is:

[0146]

[0147] Among them, F R represents the resultant force, D D represents the drag coefficient, ρ represents the density, A CS represents the cross-sectional area of ​​the airbag along the flow direction, A p is the projected area of ​​the airbag on the upper tube wall, u is the velocity, V b is the volume of the air pocket or bubble, f b represents the friction coefficient between air and the tube wall, γ represents the surface tension coefficient, and L i represents the interface length between gas and liquid, α is the contact angle of air, and θ is the slope of the pipeline. The subscripts l, b, s, and i represent liquid, long air pocket, slip, and interface, respectively, where the interface refers to the contact surface between gas and liquid. After the air pocket is captured by the air pocket grid data, the movement of the air pocket is described by equation (10). In summary, the Euler-Lagrangian coupled population balance model can be used to predict bubble migration and reaggregation during the water intermodal operation of liquid pipelines.

[0148] Specifically, due to the different phase fractions of the airbags, they move in the airbag grid with different combined forces; therefore, it is possible that two individual airbags merge into one continuous airbag. Fig.11 A schematic diagram of an airbag merging provided in an embodiment of the present application, such as Fig.11 As shown, Fig.11 The α in represents the gas phase fraction, the subscript A represents a single air cell, and C represents a continuous air cell. The merging process occurs with the change of characteristics and forces. Considering the conservation of mass of the merged air cell, its cross-sectional area, volume, mass, velocity, and force will be updated:

[0149]

[0150]

[0151] Wherein, in formula (11), v and M represent volume and mass respectively, n represents the number of individual airbags participating in the merging process, subscript i represents individual airbags, c represents continuous airbags, and it is noted that each grid evenly distributes the total value of continuous values; in formula (12), A i represents the interface cross-sectional area between the liquid film and the air bag, f i represents the interface friction coefficient. As the length of the continuous airbag increases, the effect of the interface friction of the liquid film becomes non-negligible, which is expressed as the last term of the continuous airbag resultant force in equation (12). The continuous airbags will move in the airbag grid with updated parameters, resultant force and velocity, and as they move in the grid, they may "swallow" more single or even continuous airbags.

[0152] It is understandable that the bubble breaking phenomenon at the tail of the airbag will continue until the aspect ratio of the airbag drops to 5 or below, so the bubble breaking process will continue until it reaches the standard. The aspect ratio of the airbag can be calculated by L / D1, where L represents the length of the airbag and D1 represents the diameter of the liquid pipeline.

[0153] Fig.12 A schematic diagram of bubble fragmentation at the tail of an airbag provided in an embodiment of the present application, Fig.13 A schematic diagram of another bubble fragmentation at the tail of an airbag provided in an embodiment of the present application, Fig.14 A schematic diagram of bubble shattering at the tail of another airbag provided in an embodiment of the present application, Fig.15 A schematic diagram of another bubble fragmentation at the tail of an airbag provided in an embodiment of the present application is shown in FIG. Fig.12 and Fig.13 As shown in , when bubble breakage occurs at the tail of the airbag, the bubbles will transfer mass from the airbag grid to the bubble grid, resulting in an increase in the bubble gas phase content in the airbag grid. Fig.13 As shown, when the bubble breaking process starts in the tail of the airbag S7 at the grid X=x6, the bubbles will break from the tail of the airbag, and the gas phase content of the entrained bubbles is α be At the same time, if Fig.14 As shown in Figure 2, these bubbles will be transferred from the air pocket grid to the bubble grid, causing the gas phase fraction of x6 in the bubble grid to rise to α b (x6)+α be (x6), correspondingly, Fig.15 As shown in the figure, after these bubbles are transferred from the airbag grid to the bubble grid, the gas phase content of the bubble at the tail of the airbag at x6 in the airbag grid S7 becomes 0. It is worth noting that no matter it is a continuous airbag or a single airbag, bubble breakage will occur until the standard is reached. By applying the above airbag capture and tracking model, the process of airbag generation, capture and continuous state change will be described, and it will be captured, located and tracked along the liquid pipeline.

[0154] The multi-co-located grid method provided in the embodiments of the present application can be applied to study the mass transfer and transfer of dispersed phases in continuous phases. Exemplarily, it can be used to describe a continuous phase and multiple dispersed phases, for example, parallel calculation of multiple dispersed phases in a pipeline or other transport medium. Specifically, in a liquid pipeline, water can be a continuous phase, and bubbles and air pockets are dispersed phases.

[0155] In addition, in the field of deep-sea water pipelines and urban drainage pipelines, there is a problem of obstructed gas migration in pipe sections with large height differences. Therefore, it is necessary to describe and calculate bubble migration and air bag capture. The liquid pipeline positioning method provided in the embodiment of the present application can be well applied to the field of deep-sea water pipelines and urban drainage pipelines.

[0156] The present invention provides a method for positioning a liquid pipeline, the method comprising: obtaining pipeline data of the liquid pipeline and fluid data in the liquid pipeline; obtaining flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data, wherein the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the continuous phase in the liquid pipeline; determining the airbag data in the liquid pipeline according to the flow field data, the bubble data and the preset threshold, wherein the airbag data represents the aggregation of the dispersed phase; and capturing, locating and tracking the airbag in the liquid pipeline according to the airbag data in the liquid pipeline. Compared with the prior art, the present invention determines the airbag data in the liquid pipeline through the flow field data, the bubble data and the preset threshold, and captures, locates and tracks the airbag in the liquid pipeline according to the airbag data, thereby realizing the estimation and determination of the size and position of the airbag in the liquid pipeline. In addition, through the application of multiple co-located grid technology, the bubbles and the migration of the airbags in the liquid pipeline and the mass transfer between the two can be simultaneously described, and the distribution and change of the gas phase during the production process can be more accurately described, thereby solving the safety threat of the airbag to the liquid pipeline and improving the safety of the liquid pipeline.

[0157] Based on the above embodiments, Fig.16 A schematic flow chart of another method for positioning a liquid pipeline provided in an embodiment of the application is shown as follows: Fig.16 As shown, the method includes:

[0158] S301. Acquire pipeline data of a liquid pipeline and fluid data in the liquid pipeline.

[0159] S302, obtaining staggered grid data of the liquid pipeline according to the pipeline data.

[0160] S303. Obtain the flow field equation and bubble migration equation of the liquid pipeline according to the fluid data.

[0161] S304, discretizing the flow field equation according to the staggered grid data to obtain flow field data.

[0162] S305, discretizing the bubble migration equation according to the staggered grid data to obtain bubble data.

[0163] S306. Obtain multiple co-located grid data of the liquid pipeline according to the flow field data and the bubble data.

[0164] S307, determining the air bag data in the liquid pipeline according to the multiple co-located grid data and a preset threshold.

[0165] S308: Determine whether the bubbles in the bubble grid data are aggregated into air pockets according to the gas phase content in the bubble grid data and a preset threshold.

[0166] S309: Determine whether the bubbles in the bubble grid data are not aggregated into air pockets.

[0167] In this step, the terminal device determines whether the bubbles in the bubble grid data are aggregated into air pockets according to the gas phase content in the bubble grid data and a preset threshold value, and if so, determines that the bubbles in the bubble grid data are not aggregated into air pockets.

[0168] S310, obtaining airbag data from the airbag grid data corresponding to the bubble grid data.

[0169] In this step, the terminal device determines whether the bubbles in the bubble grid data are aggregated into air bags according to the gas phase content in the bubble grid data and a preset threshold value, and if not, obtains the air bag data in the air bag grid data corresponding to the bubble grid data.

[0170] S311. Capture, locate and track the airbag in the liquid pipeline in the airbag grid data according to the airbag migration equation and the airbag data.

[0171] In this step, after the terminal device obtains the airbag data in the airbag grid data corresponding to the bubble grid data, it captures, locates and tracks the airbag in the liquid pipe in the airbag grid data according to the airbag migration equation and the airbag data.

[0172] The technical terms, technical effects, technical features, and optional implementation methods of S301-S311 can be referred to Figure 5 It is understood that S201-S204 shown in the figure will not be repeated here for the repeated contents.

[0173] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0174] The present application also provides a positioning device for a liquid pipeline, Fig.17 This is a schematic diagram of the structure of a liquid pipeline positioning device provided in an embodiment of the present application. The liquid pipeline positioning device can be implemented by software, hardware, or a combination of both to execute the liquid pipeline positioning method in the above embodiment. Fig.17 As shown, the positioning device 400 for the liquid pipeline includes: an acquisition module 401 and a processing module 402 .

[0175] An acquisition module 401 is used to acquire pipeline data of a liquid pipeline and fluid data in the liquid pipeline;

[0176] Processing module 402 is used to obtain flow field data and bubble data of the liquid pipeline based on the pipeline data and the fluid data, the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the continuous phase in the liquid pipeline; determine the air bag data in the liquid pipeline based on the flow field data, the bubble data and the preset threshold, the air bag data represents the aggregation of the dispersed phase; capture, locate and track the air bags in the liquid pipeline based on the air bag data in the liquid pipeline.

[0177] In an optional implementation, the processing module 402 is specifically used to obtain staggered grid data of the liquid pipeline according to the pipeline data, and the staggered grid data includes main grid data and sub-grid data;

[0178] Flow field data and bubble data are obtained based on the fluid data and staggered grid data.

[0179] In an optional implementation, the processing module 402 is specifically used to obtain the flow field equation and the bubble migration equation of the liquid pipeline according to the fluid data;

[0180] Discretize the flow field equation according to the staggered grid data to obtain the flow field data;

[0181] The bubble migration equation is discretized according to the staggered grid data to obtain the bubble data.

[0182] In an optional implementation, the primary grid data stores a first parameter, and the secondary grid data stores a second parameter, the first parameter includes pressure data and gas phase content data, and the second parameter includes fluid velocity data.

[0183] In an optional embodiment, the processing module 402 is specifically used to obtain multiple co-located grid data of the liquid pipeline according to the flow field data and the bubble data, and the multiple co-located grid data includes bubble grid data and air bag grid data;

[0184] The air pocket data in the liquid pipeline is determined based on the multi-co-located grid data and a preset threshold.

[0185] In an optional implementation, the processing module 402 is specifically configured to determine whether bubbles in the bubble grid data are aggregated into air pockets according to the gas phase content in the bubble grid data and a preset threshold;

[0186] If yes, obtain the airbag data in the airbag grid data corresponding to the bubble grid data;

[0187] If not, it is determined that the bubbles in the bubble grid data are not aggregated into air pockets.

[0188] In an optional implementation, the processing module 402 is specifically configured to capture, locate and track the airbag in the liquid pipe in the airbag grid data according to the airbag transport equation and the airbag data.

[0189] It should be noted that the positioning device for the liquid pipeline provided in the embodiment of the present application can be used to execute the method provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be repeated here.

[0190] Fig.18 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.18 As shown, the electronic device may include: at least one processor 501 and a memory 502 . Fig.18 An electronic device is shown using a processor as an example.

[0191] The memory 502 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.

[0192] The memory 502 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0193] The processor 501 is used to execute the computer execution instructions stored in the memory 502 to implement the above-mentioned liquid pipeline positioning method;

[0194] The processor 501 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0195] Optionally, in a specific implementation, if the communication interface, the memory 502 and the processor 501 are implemented independently, the communication interface, the memory 502 and the processor 501 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0196] Optionally, in a specific implementation, if the communication interface, the memory 502 and the processor 501 are integrated on a chip, the communication interface, the memory 502 and the processor 501 can communicate through an internal interface.

[0197] The present application also provides a chip, including a processor and an interface. The interface is used to input and output data or instructions processed by the processor. The processor is used to execute the method provided in the above method embodiment. The chip can be used in a positioning device for a liquid pipeline.

[0198] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program information, and the program information is used for the above-mentioned liquid pipeline positioning method.

[0199] An embodiment of the present application also provides a program, which, when executed by a processor, is used to execute the liquid pipeline positioning method provided by the above method embodiment.

[0200] The present application also provides a program product, such as a computer-readable storage medium, in which instructions are stored. When the program product is run on a computer, the computer executes the liquid pipeline positioning method provided by the above method embodiment.

[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

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

Claims

1. A method for positioning a liquid pipeline, characterized in that: The method comprises: Acquiring pipeline data of the liquid pipeline and fluid data in the liquid pipeline; According to the pipeline data and the fluid data, flow field data and bubble data of the liquid pipeline are obtained, wherein the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the liquid pipeline in the continuous phase; Determining air bag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold, wherein the air bag data represents the aggregation of the dispersed phase; The airbag in the liquid pipeline is captured, located and tracked according to the airbag data in the liquid pipeline.

2. The positioning method according to claim 1, characterized in that: The step of obtaining the flow field data and the bubble data of the liquid pipeline according to the pipeline data and the fluid data includes: Obtain staggered grid data of the liquid pipeline according to the pipeline data, wherein the staggered grid data includes main grid data and sub-grid data; The flow field data and the bubble data are obtained according to the fluid data and the staggered grid data.

3. The positioning method according to claim 2, characterized in that: The step of obtaining the flow field data and the bubble data according to the fluid data and the staggered grid data comprises: Obtaining the flow field equation and bubble migration equation of the liquid pipeline according to the fluid data; Discretizing the flow field equation according to the staggered grid data to obtain the flow field data; The bubble migration equation is discretized according to the staggered grid data to obtain the bubble data.

4. The positioning method according to claim 3, characterized in that: The main grid data stores a first parameter, and the sub-grid data stores a second parameter, the first parameter includes pressure data and gas phase content data, and the second parameter includes fluid velocity data.

5. The positioning method according to claim 4, characterized in that: The step of determining the air bag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold value includes: According to the flow field data and the bubble data, multiple co-located grid data of the liquid pipeline are obtained, wherein the multiple co-located grid data includes bubble grid data and air bag grid data; The air bag data in the liquid pipeline is determined according to the multiple co-located grid data and the preset threshold.

6. The positioning method according to claim 5, characterized in that: The step of determining the airbag data in the liquid pipeline according to the multiple co-located grid data and the preset threshold value includes: Determining whether bubbles in the bubble grid data are aggregated into air pockets according to the gas phase content in the bubble grid data and the preset threshold; If yes, obtaining the airbag data in the airbag grid data corresponding to the bubble grid data; If not, it is determined that the bubbles in the bubble grid data are not aggregated into the air pockets.

7. The positioning method according to claim 6, characterized in that: The capturing, positioning and tracking of the airbag in the liquid pipeline according to the airbag data in the liquid pipeline includes: The airbag in the liquid pipe is captured, located and tracked in the airbag grid data according to the airbag migration equation and the airbag data.

8. A positioning device for a liquid pipeline, characterized in that: The device comprises: An acquisition module, used for acquiring pipeline data of the liquid pipeline and fluid data in the liquid pipeline; A processing module is used to obtain flow field data and bubble data of the liquid pipeline according to the pipeline data and the fluid data, wherein the flow field data represents the flow of the continuous phase in the liquid pipeline, and the bubble data represents the movement of the dispersed phase in the continuous phase; determine the air bag data in the liquid pipeline according to the flow field data, the bubble data and a preset threshold, wherein the air bag data represents the aggregation of the dispersed phase; and capture, locate and track the air bags in the liquid pipeline according to the air bag data in the liquid pipeline.

9. An electronic device, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.