A high temperature and high pressure foam detection test device and detection test method

By designing high -temperature and high -pressure foam detection test devices, the industrial camera recognizes the bubble boundary and scale line to automatically measure the half -life of the foam analytical fluid, solve the defect that is difficult to measure in the existing technology, and achieve accurate measurement under high temperature and high pressure conditions.

CN118980797BActive Publication Date: 2025-01-24BEI JING DE MEI GAO KE KE JI GU FEN YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411412107.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-01-24
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

The prior art is difficult to automatically measure the half-life of foam liquid, especially in reservoir foam displacement simulation tests.

Method used

A high -temperature and high -pressure foam detection test device is designed, including high -temperature high -pressure visual pressure compartment, foam sensing device, differential pressure transmitter, pressure controller and electronic control system. Through real -time shooting foam images of industrial cameras, identify the bubble boundary and scale line, calculate the real -time foam height of the foam, and determine the semi -dead period when reaching the preset value.

Benefits of technology

It realizes the automatic and accurate measurement of the foam liquid-leaking half-life under high temperature and high pressure conditions, and solves the problem of difficulty in measuring this problem in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118980797B_ABST
    Figure CN118980797B_ABST
Patent Text Reader

Abstract

The present invention provides a high-temperature and high-pressure foam detection test device and a detection test method. Reservoir foam can be injected into a high-temperature and high-pressure resistant high-temperature and high-pressure visual pressure chamber. Under the control of an electronic control system, a differential pressure transmitter, a pressure controller and a sampler body of the high-temperature and high-pressure visual pressure chamber can control the reservoir foam at any pressure and temperature to simulate the foam attenuation under high temperature and high pressure. The real-time foam height of the foam to be detected is detected by a foam sensor device combined with a corresponding foam height acquisition algorithm. When the real-time foam height of the foam to be detected reaches a preset value, the liquid separation half-life of the foam to be detected is determined based on a calculation center, and the liquid separation half-life of the foam to be detected can be automatically and accurately obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of foam effluent half-life calculation, and in particular to a high-temperature and high-pressure foam detection test device and a detection test method. Background Art

[0002] In conventional reservoir foam displacement simulation tests, the quality, diameter, height and half-life of foam are generally tested, but there is no good measurement method for the half-life of foam liquid separation. At present, in reservoir foam displacement simulation tests, foam is usually generated by a foam generator and injected into a two-dimensional sand model. The half-life of foam is observed and calculated through a visual window. However, it is difficult to directly and automatically measure the half-life of foam liquid separation in a two-dimensional sand filling model. Therefore, the development of a high-temperature and high-pressure foam detection test device and a corresponding detection test method is of great significance to solving the problem of how to measure the half-life of liquid separation of reservoir foam. Summary of the invention

[0003] The present invention provides a high-temperature and high-pressure foam detection test device and a detection test method, which are used to solve the defect that it is difficult to automatically measure the half-life of foam effusion in the prior art.

[0004] The present invention provides a high-temperature and high-pressure foam detection test device, comprising:

[0005] High temperature and high pressure visual pressure chamber, foam sensor, differential pressure transmitter, pressure controller, electronic control system and computing center;

[0006] The high-temperature and high-pressure visual pressure chamber comprises an upper plug, a sampler body, a visual window cover, a pressure chamber visual window and a lower plug; wherein the foam to be detected enters the sampler body from the upper plug or the lower plug; the sampler body is used to heat the foam to be detected based on the temperature control instruction issued by the electronic control system; the visual window cover is used to display or hide the pressure chamber visual window; the pressure chamber visual window is a visual window with a scale, which is used to observe the foam to be detected in the sampler body;

[0007] The differential pressure transmitter is used to measure the pressure in the high temperature and high pressure visual pressure chamber;

[0008] The pressure controller is used to control the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instruction issued by the electronic control system and the detection result of the differential pressure transmitter;

[0009] The foam sensor device is used to detect the foam height of the foam to be detected;

[0010] The calculation center is used to determine the liquid separation half-life of the foam to be detected when the foam sensor device detects that the real-time foam height of the foam to be detected reaches a preset value.

[0011] According to a high-temperature and high-pressure foam detection test device provided by the present invention, the foam sensing device includes an industrial camera; the real-time foam height of the foam to be detected is obtained by performing foam boundary recognition and scale line recognition on the scaled foam image taken by the industrial camera through the visual window of the pressure chamber.

[0012] According to a high-temperature and high-pressure foam detection test device provided by the present invention, the industrial camera is connected to a movable track, and the industrial camera can slide up and down along the movable track.

[0013] According to a high-temperature and high-pressure foam detection test device provided by the present invention, the foam sensing device includes a displacement sensor.

[0014] The present invention also provides a detection test method of the high temperature and high pressure foam detection test device as described in any one of the above, comprising:

[0015] Control the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and issue temperature control instructions and pressure control instructions to the sampler body and the pressure controller respectively based on the electronic control system, so that the sampler body heats the foam to be detected based on the temperature control instructions issued by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instructions issued by the electronic control system and the detection result of the differential pressure transmitter;

[0016] The real-time foam height of the foam to be detected detected by the foam sensing device is acquired based on the computing center, and the liquid separation half-life of the foam to be detected is determined when the real-time foam height of the foam to be detected reaches a preset value.

[0017] According to a detection test method provided by the present invention, the determining of the liquid separation half-life of the foam to be detected comprises:

[0018] Determining the time when the real-time foam height of the foam to be detected reaches a preset value;

[0019] The liquid separation half-life of the foam to be detected is determined based on the time when the real-time foam height of the foam to be detected reaches a preset value and the initial time.

[0020] According to a detection test method provided by the present invention, the real-time foam height of the foam to be detected is obtained based on the following steps:

[0021] Acquire a current scaled foam image captured by an industrial camera in real time through the visual window of the pressure chamber;

[0022] Performing scale line recognition on the current foam image with scale lines to obtain the position of each scale line in the current foam image with scale lines;

[0023] Performing foam boundary recognition on the current scaled foam image based on a foam boundary recognition model to obtain a foam boundary position in the current scaled foam image;

[0024] Based on the foam boundary position and the positions of the scale lines, the real-time foam height of the foam to be detected is determined.

[0025] According to a detection test method provided by the present invention, the foam boundary recognition model is trained based on the following steps:

[0026] Predicting the sample scaled foam image based on the foam boundary prediction branch and the foam region prediction branch of the shared encoder in the foam boundary recognition model respectively, to obtain a foam boundary map and a foam region map of the sample scaled foam image;

[0027] determining an auxiliary matching loss based on a matching degree between the foam boundary map and the foam area map;

[0028] Based on the difference between the foam boundary map and the annotated foam boundary map, the difference between the foam region map and the annotated region map, and the auxiliary matching loss, the parameters of the foam boundary recognition model are updated.

[0029] According to a detection test method provided by the present invention, the bubble boundary prediction branch and the bubble area prediction branch are constructed based on an encoder-decoder model.

[0030] According to a detection test method provided by the present invention, the current scaled foam image is captured in real time by the industrial camera based on the following steps:

[0031] Based on the foam height decreasing rate and the shooting time of the last scaled foam image, the position of the industrial camera is adjusted, and the visual window of the pressure chamber is photographed based on the adjusted industrial camera to obtain the current scaled foam image;

[0032] Wherein, the foam height decreasing speed is determined based on the historical foam height within a preset time period.

[0033] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned detection test methods is implemented.

[0034] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the detection test method described in any one of the above is implemented.

[0035] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the detection test method described above is implemented.

[0036] The present invention provides a high-temperature and high-pressure foam detection test device and a detection test method. The reservoir foam can be injected into a high-temperature and high-pressure resistant high-temperature and high-pressure visual pressure chamber. Under the control of an electronic control system, the reservoir foam can be controlled at any pressure and temperature based on a differential pressure transmitter, a pressure controller and a sampler body of the high-temperature and high-pressure visual pressure chamber to simulate the foam attenuation under high temperature and high pressure. The real-time foam height of the foam to be detected is detected by a foam sensing device combined with a corresponding foam height acquisition algorithm. When the real-time foam height of the foam to be detected reaches a preset value, the liquid separation half-life of the foam to be detected is determined based on a calculation center, and the liquid separation half-life of the foam to be detected can be automatically and accurately obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] 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 work.

[0038] Figure 1 It is a structural schematic diagram of a high-temperature and high-pressure foam detection test device provided by the present invention;

[0039] Figure 2 It is a structural schematic diagram of a high-temperature and high-pressure visual pressure chamber provided by the present invention;

[0040] Figure 3 It is a schematic diagram of the flow chart of the detection test method provided by the present invention;

[0041] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0043] Figure 1 Schematic diagram of a high temperature and high pressure foam detection test device provided by the present invention. Figure 1 As shown, the device comprises:

[0044] High temperature and high pressure visual pressure chamber 110, foam sensor device 120, differential pressure transmitter 130, pressure controller 140, electronic control system 150 and computing center 160;

[0045] Among them, Figure 2 As shown, the high-temperature and high-pressure visual pressure chamber 110 can be made of high-temperature and high-pressure resistant materials, and includes an upper plug 1, a sampler body 2, a visual window cover 3, a pressure chamber visual window 4, and a lower plug 5. Here, the foam to be detected can enter the foam carrying container 6 of the sampler body 2 from the upper plug 1 or the lower plug 5; the sampler body 2 is used to heat the foam to be detected based on the temperature control instruction issued by the electronic control system 150; the visual window cover 3 is used to display or hide the pressure chamber visual window 4; the pressure chamber visual window 4 is a visual window with a scale, which is used to observe the foam to be detected in the sampler body 2, and it can be a sapphire window;

[0046] The differential pressure transmitter 130 is used to measure the pressure in the high temperature and high pressure visible pressure chamber 110;

[0047] The pressure controller 140 is used to control the pressure in the high-temperature and high-pressure visible pressure chamber 110 based on the pressure control instruction issued by the electronic control system 150 and the detection result of the differential pressure transmitter 130;

[0048] The foam sensor device 120 is used to detect the foam height of the foam to be detected;

[0049] The computing center 160 is used to determine the liquid separation half-life of the foam to be detected when the foam sensor device 120 detects that the real-time foam height of the foam to be detected reaches a preset value.

[0050] In some embodiments, the foam sensing device 120 includes an industrial camera; the real-time foam height of the foam to be detected is obtained by performing foam boundary recognition and scale line recognition on the foam image with scale taken by the industrial camera on the pressure chamber visual window 4. The industrial camera is connected to a movable track, and the industrial camera can slide up and down along the movable track under the control of the electronic control system 150.

[0051] In other embodiments, the foam sensing device 120 includes a displacement sensor.

[0052] According to the device provided by the embodiment of the present invention, the reservoir foam can be injected into a high-temperature and high-pressure visual pressure chamber that is resistant to high temperature and high pressure. Under the control of the electronic control system, the reservoir foam can be controlled at any pressure and temperature based on the differential pressure transmitter, the pressure controller and the sampler body of the high-temperature and high-pressure visual pressure chamber to simulate the foam attenuation under high temperature and high pressure, and the liquid separation half-life of the reservoir foam can be automatically determined based on the real-time detection of the foam height through the foam sensor device and the computing center.

[0053] The detection test method provided by the present invention is described below. The detection test method described below and the high-temperature and high-pressure foam detection test device described above can be referenced to each other.

[0054] Based on any of the above embodiments, Figure 3 Schematic diagram of the flow of the detection test method provided by the present invention, which is used to simulate the foam decay and determine the liquid separation half-life of the reservoir foam based on the high temperature and high pressure foam detection test device. Figure 3 As shown, the method includes:

[0055] Step 310, controlling the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and sending temperature control instructions and pressure control instructions to the sampler body and the pressure controller respectively based on the electronic control system, so that the sampler body heats the foam to be detected based on the temperature control instructions sent by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instructions sent by the electronic control system and the detection result of the differential pressure transmitter;

[0056] Step 320, based on the computing center, the real-time foam height of the foam to be detected detected by the foam sensing device is obtained, and when the real-time foam height of the foam to be detected reaches a preset value, the liquid separation half-life of the foam to be detected is determined.

[0057] Specifically, after the foam to be tested is injected into the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, the electronic control system is used to send temperature control instructions and pressure control instructions to the sampler body and the pressure controller respectively, so that on the one hand, the heating rod in the sampler body can heat the foam to be tested based on the temperature control instruction issued by the electronic control system, and heat its temperature to a preset temperature value; on the other hand, the pressure controller can control the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instruction issued by the electronic control system and the real-time pressure detection results fed back by the differential pressure transmitter, and control the pressure in the chamber to a preset pressure value.

[0058] Subsequently, the real-time foam height during the attenuation process of the foam to be detected can be monitored in real time based on the foam sensing device, and the liquid precipitation half-life of the foam to be detected can be determined when the real-time foam height of the foam to be detected reaches a preset value (for example, half of the initial value of the foam height after the foam to be detected is injected into the high-temperature and high-pressure visual pressure chamber and the temperature and pressure in the chamber are stabilized). Here, the time when the real-time foam height of the foam to be detected reaches the preset value can be determined, and the time difference between the initial time after the foam to be detected is injected into the high-temperature and high-pressure visual pressure chamber and the temperature and pressure in the chamber are stabilized and the time when the real-time foam height reaches the preset value can be determined as the liquid precipitation half-life of the foam to be detected.

[0059] In some embodiments, when the foam sensing device includes an industrial camera, in order to obtain the real-time foam height of the foam to be detected in real time, the current scaled foam image taken by the industrial camera on the visual window of the pressure chamber in real time can be obtained. In some embodiments, considering that the shooting angle will affect the scale reading, in order to take a more accurate scaled foam image to more accurately determine the real-time foam height, the position of the industrial camera can be adjusted based on the foam height drop rate and the shooting time of the previous scaled foam image, so that the industrial camera is as flush with the current foam interface as possible, and the pressure chamber visual window is photographed based on the adjusted industrial camera to obtain the current scaled foam image. Among them, the foam height drop speed is determined based on the historical foam height within a preset time period. For example, based on the historical foam height obtained at each time point within the preset time period, the average of the drop speeds of the historical foam heights at two adjacent time points can be obtained as the above-mentioned foam height drop speed. Subsequently, the scale line recognition of the current scaled foam image can be performed using a pre-set scale line pattern based on pattern recognition technology to obtain the position of each scale line in the current scaled foam image.

[0060] In addition, the current scaled foam image can also be subjected to foam boundary recognition based on the foam boundary recognition model to obtain the foam boundary position in the current scaled foam image. In some embodiments, in order to improve the accuracy of foam boundary recognition, a foam boundary recognition model including a foam boundary prediction branch and a foam area prediction branch can be constructed. Among them, the foam boundary prediction branch and the foam area prediction branch can both be constructed based on the encoder-decoder model, and the foam boundary prediction branch and the foam area prediction branch share an encoder. Here, the reason for introducing the foam area prediction branch is that a large amount of foam aggregation will affect the recognition of the boundary, and the scale lines in the image will also interfere with the recognition. The introduction of the foam area prediction branch can effectively utilize the shape features of the foam area, assist in determining the position of the foam boundary, and improve the accuracy of foam boundary recognition. It should be noted that the foam area prediction branch only exists in the training stage of the foam boundary recognition model, and the branch can be removed in the actual application stage.

[0061] In the training phase of the foam boundary recognition model, multiple sample scaled foam images can be collected and the sample scaled foam images can be annotated with foam boundaries and foam regions to obtain an annotated foam boundary map and an annotated region map of the corresponding sample scaled foam image. For any sample scaled foam image, the sample scaled foam image can be predicted based on the foam boundary prediction branch and the foam region prediction branch in the foam boundary recognition model to obtain a foam boundary map and a foam region map of the sample scaled foam image. The foam boundary map indicates the foam boundary position in the sample scaled foam image predicted by the model, and the pixel points corresponding to the foam boundary in the sample scaled foam image have a value of 1 in the foam boundary map; the foam region map indicates the foam region in the sample scaled foam image predicted by the model, and the pixel points corresponding to the foam region in the sample scaled foam image have a value of 1 in the foam region map.

[0062] Based on the matching degree between the above-mentioned foam boundary map and the foam area map, the auxiliary matching loss can be determined. Here, the boundary distance map of the sample scaled foam image can be determined based on the foam area (i.e., foreground area) indicated in the foam area map and the area outside the foam area (i.e., background area). Among them, the boundary distance map indicates the distance of each pixel from the upper boundary of the foam area map. The closer any foreground pixel or any background pixel is to the upper boundary, the smaller the value of the foreground pixel or the background pixel in the boundary distance map. Subsequently, the foam boundary map and the above-mentioned boundary distance map are dot-multiplied pixel by pixel to obtain a boundary matching map, and the boundary matching map is accumulated pixel by pixel to obtain the auxiliary matching loss. Next, based on the difference between the foam boundary map and the annotated foam boundary map, the difference between the foam area map and the annotated area map, and the auxiliary matching loss, the parameters of the foam boundary recognition model are updated to complete a round of training of the foam boundary recognition model. Repeat the above operation for each sample scaled foam image to obtain a trained foam boundary recognition model.

[0063] Based on the above-mentioned foam boundary position and the position of each scale line, the real-time foam height of the foam to be detected can be determined. Among them, the scale value corresponding to the scale line closest to the foam boundary position can be determined as the real-time foam height of the foam to be detected. In some embodiments, since the foam itself has different shapes and sizes and there is foam aggregation, the foam boundary position predicted by the model may not be flush. Therefore, in order to determine the real-time foam height of the foam to be detected, a linear fit can be performed on the foam boundary position based on the coordinates of each point in the foam boundary position. After finding a straight line closest to the foam boundary position, the distance between the straight line and each scale line is calculated, so as to determine the scale value corresponding to the scale line closest to the straight line as the real-time foam height of the foam to be detected.

[0064] The detection test method provided by the embodiment of the present invention controls the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and sends temperature control instructions and pressure control instructions to the sampler body and the pressure controller respectively based on the electronic control system, so that the sampler body heats the foam to be detected based on the temperature control instruction issued by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instruction issued by the electronic control system and the detection result of the differential pressure transmitter. Subsequently, the real-time foam height of the foam to be detected obtained by the foam sensing device combined with the corresponding foam height acquisition algorithm is obtained based on the computing center, and the liquid separation half-life of the foam to be detected is determined when the real-time foam height of the foam to be detected reaches a preset value, so that the liquid separation half-life of the foam to be detected can be automatically and accurately obtained.

[0065] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor (processor) 410, a memory (memory) 420, a communication interface (Communications Interface) 430 and a communication bus 440, wherein the processor 410, the memory 420, and the communication interface 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 420 to execute the detection test method, which includes: controlling the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and based on the electronic control system, respectively sending temperature control instructions and pressure control instructions to the sampler body and the pressure controller, so that the sampler body heats the foam to be detected based on the temperature control instructions issued by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instructions issued by the electronic control system and the detection results of the differential pressure transmitter; based on the computing center, obtaining the real-time foam height of the foam to be detected obtained by the foam sensing device, and determining the liquid separation half-life of the foam to be detected when the real-time foam height of the foam to be detected reaches a preset value.

[0066] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0067] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by the computer, the computer can execute the detection test methods provided by the above methods, which include: controlling the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and based on the electronic control system, respectively sending temperature control instructions and pressure control instructions to the sampler body and the pressure controller, so that the sampler body heats the foam to be detected based on the temperature control instructions issued by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instructions issued by the electronic control system and the detection result of the differential pressure transmitter; based on the computing center, obtaining the real-time foam height of the foam to be detected obtained by the foam sensing device, and determining the liquid separation half-life of the foam to be detected when the real-time foam height of the foam to be detected reaches a preset value.

[0068] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the above-mentioned detection test methods, the method comprising: controlling the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and based on the electronic control system, respectively sending temperature control instructions and pressure control instructions to the sampler body and the pressure controller, so that the sampler body heats the foam to be detected based on the temperature control instructions issued by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instructions issued by the electronic control system and the detection results of the differential pressure transmitter; based on the computing center, obtaining the real-time foam height of the foam to be detected obtained by the foam sensing device, and determining the liquid separation half-life of the foam to be detected when the real-time foam height of the foam to be detected reaches a preset value.

[0069] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0071] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A high temperature and high pressure foam detection test device, characterized in that: include: High temperature and high pressure visual pressure chamber, foam sensor, differential pressure transmitter, pressure controller, electronic control system and computing center; The high-temperature and high-pressure visual pressure chamber comprises an upper plug, a sampler body, a visual window cover, a pressure chamber visual window and a lower plug; wherein the foam to be detected enters the sampler body from the upper plug or the lower plug; the sampler body is used to heat the foam to be detected based on the temperature control instruction issued by the electronic control system; the visual window cover is used to display or hide the pressure chamber visual window; the pressure chamber visual window is a visual window with a scale, which is used to observe the foam to be detected in the sampler body; The differential pressure transmitter is used to measure the pressure in the high temperature and high pressure visual pressure chamber; The pressure controller is used to control the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instruction issued by the electronic control system and the detection result of the differential pressure transmitter; The foam sensor device is used to detect the foam height of the foam to be detected; The calculation center is used to determine the liquid separation half-life of the foam to be detected when the foam sensor device detects that the real-time foam height of the foam to be detected reaches a preset value.

2. A high temperature and high pressure foam detection test device according to claim 1, characterized in that: The foam sensing device comprises an industrial camera; the real-time foam height of the foam to be detected is obtained by performing foam boundary recognition and scale line recognition on the foam image with scale taken by the industrial camera through the visual window of the pressure chamber.

3. A high temperature and high pressure foam detection test device according to claim 2, characterized in that: The industrial camera is connected to a movable track, and the industrial camera can slide up and down along the movable track.

4. A high temperature and high pressure foam detection test device according to claim 1, characterized in that: The foam sensing device includes a displacement sensor.

5. A detection test method based on the high temperature and high pressure foam detection test device according to any one of claims 1 to 3, characterized in that: include: Control the foam to be detected to enter the sampler body from the upper plug or the lower plug of the high-temperature and high-pressure visual pressure chamber, and issue temperature control instructions and pressure control instructions to the sampler body and the pressure controller respectively based on the electronic control system, so that the sampler body heats the foam to be detected based on the temperature control instructions issued by the electronic control system, and the pressure controller controls the pressure in the high-temperature and high-pressure visual pressure chamber based on the pressure control instructions issued by the electronic control system and the detection result of the differential pressure transmitter; The real-time foam height of the foam to be detected detected by the foam sensing device is acquired based on the computing center, and the liquid separation half-life of the foam to be detected is determined when the real-time foam height of the foam to be detected reaches a preset value.

6. The detection test method according to claim 5, characterized in that: Determining the effluent half-life of the foam to be detected comprises: Determining the time when the real-time foam height of the foam to be detected reaches a preset value; The liquid separation half-life of the foam to be detected is determined based on the time when the real-time foam height of the foam to be detected reaches a preset value and the initial time.

7. The detection test method according to claim 5, characterized in that: The real-time foam height of the foam to be detected is obtained based on the following steps: Acquire a current scaled foam image captured by an industrial camera in real time through the visual window of the pressure chamber; Performing scale line recognition on the current foam image with scale lines to obtain the position of each scale line in the current foam image with scale lines; Performing foam boundary recognition on the current scaled foam image based on a foam boundary recognition model to obtain a foam boundary position in the current scaled foam image; Based on the foam boundary position and the positions of the scale lines, the real-time foam height of the foam to be detected is determined.

8. The detection test method according to claim 7, characterized in that: The foam boundary recognition model is trained based on the following steps: Based on the foam boundary prediction branch and the foam area prediction branch of the shared encoder in the foam boundary recognition model, the sample scaled foam image is predicted respectively to obtain a foam boundary map and a foam area map of the sample scaled foam image; determining an auxiliary matching loss based on a matching degree between the foam boundary map and the foam area map; Based on the difference between the foam boundary map and the annotated foam boundary map, the difference between the foam region map and the annotated region map, and the auxiliary matching loss, the parameters of the foam boundary recognition model are updated.

9. The detection test method according to claim 8, characterized in that: The bubble boundary prediction branch and the bubble area prediction branch are constructed based on an encoder-decoder model.

10. The detection test method according to any one of claims 7 to 9, characterized in that: The current scaled foam image is captured in real time by the industrial camera based on the following steps: Based on the foam height decreasing rate and the shooting time of the last scaled foam image, the position of the industrial camera is adjusted, and the visual window of the pressure chamber is photographed based on the adjusted industrial camera to obtain the current scaled foam image; Wherein, the foam height decreasing speed is determined based on the historical foam height within a preset time period.

Citation Information

Patent Citations

  • High-temperature high-pressure foam stability and viscosity evaluation device and method

    CN109883888A

  • High-temperature and high-pressure foam evaluation device and evaluation method

    CN112098602A