H2-formation water-rock in-situ contact angle automatic measurement method based on CT scanning imaging and related equipment

Through CT scanning imaging technology, the distribution of hydrogen and formation water is simulated in the porous reservoir seepage experimental device, and the contact angle is calculated, which solves the accuracy and data deviation problems of contact angle measurement in the existing technology, and achieves more accurate contact angle measurement .

CN118914013APending Publication Date: 2024-11-08INST OF ROCK & SOIL MECHANICS CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411307764.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing contact angle measurement methods are difficult to accurately obtain under complex formation conditions, and it is difficult to obtain a large amount of contact angle data in the core by local or static measurements. There is a deviation from the numerical simulation method from the actual data.

Method used

Using the automatic measurement method of H2-formation water-rock in situ contact angle based on CT scanning imaging, the initial rock sample is placed in a microfluidic displacement device and simulated the injection and acquisition of porous medium reservoirs in the porous reservoir seepage experimental device. In the hydrogen process, CT scanning technology is used to obtain CT scanning images, perform three-dimensional reconstruction, and calculate the contact angle based on formation water.

Benefits of technology

The precise identification of the distribution state of H2 and formation water in rock pores and the precise positioning of the contact interface is achieved, providing more accurate contact angle measurement results, and avoiding errors in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118914013A_ABST
    Figure CN118914013A_ABST
Patent Text Reader

Abstract

The invention provides a CT scanning imaging-based H2-formation water-rock in-situ contact angle automatic measurement method and related equipment, and the method comprises the following steps: placing an initial rock sample in a microfluid displacement device, installing the microfluid displacement device in a porous reservoir seepage experiment device, setting working parameters of the experiment device, and measuring the in-situ contact angle of H2, formation water and rock in the porous reservoir seepage experiment device according to the working parameters of the experiment device. A porous reservoir type hydrogen storage library is formed, and the hydrogen injection and production process of a porous medium reservoir is simulated; identifying the porous medium reservoir through a CT scanning technology to obtain a CT scanning image; performing three-dimensional reconstruction on the CT scanning image to obtain a three-dimensional image; and calculating a contact angle obtained by taking formation water as a reference through the three-dimensional image. According to the method provided by the invention, the distribution state of H2 and formation water in rock pores can be accurately identified by utilizing the high-resolution imaging capability of the CT scanning technology, so that the contact interface of H2 and formation water is accurately positioned, and more accurate contact angle measurement is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of porous reservoir type hydrogen storage development, and particularly relates to an automatic measurement method of H2-formation water-rock in-situ contact angle based on CT scanning imaging and related equipment. Background Art

[0002] With the transformation of China's economic structure and the steady progress of the "carbon peak and carbon neutrality" goals, the proportion of clean energy production and consumption has steadily increased. Globally, hydrogen energy is becoming an important direction for energy transformation and upgrading, and various countries and regions have successively formulated hydrogen energy development target plans. In order to meet the greater global demand for hydrogen energy and longer storage periods, it is crucial to implement large-scale hydrogen storage. Underground hydrogen storage is considered to be a promising means of hydrogen storage, including salt cavern hydrogen storage, aquifer hydrogen storage, and depleted oil and gas reservoir hydrogen storage. Among them, depleted oil and gas reservoir hydrogen storage has the advantages of large storage capacity, wide distribution, lower hydrogen storage cost, and the remaining gas in the formation can be used as buffer gas. It is currently a popular research direction. The pores of reservoir rocks in depleted oil and gas reservoirs are the main storage space of hydrogen storage reservoirs and the main migration channel of fluids during H2 injection and production. In these reservoirs, the multiphase flow behavior of hydrogen and formation water profoundly affects the hydrogen storage efficiency. The contact angle, as a key parameter describing the wettability between fluids, plays a vital role.

[0003] At present, the main methods for measuring contact angles are the hanging drop method, the tilted plate method, and the microscope method. However, it is difficult to accurately obtain the contact angle under complex formation conditions, and they are all local or static contact angle measurement methods, making it difficult to obtain a large amount of contact angle data in the core. In addition, the contact angle is measured with the help of numerical simulation methods, but the data obtained from the experiment itself deviates from the actual data.

[0004] It can be seen that how to provide an automatic measurement method for the in-situ contact angle of H2-formation water-rock based on CT scanning imaging, accurately identify the distribution state of H2 and formation water in the pores of rocks through the high-resolution imaging capability of CT scanning technology, and then accurately locate the contact interface between H2 and formation water to achieve more accurate contact angle measurement is a problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] The object of the present invention is to provide a method and related equipment for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging, so as to solve at least one of the above-mentioned technical problems.

[0006] To achieve the above-mentioned purpose, the first aspect of the present invention provides an automatic measurement method for in-situ contact angle of H2-formation water-rock based on CT scanning imaging, the method comprising: placing an initial rock sample in a microfluid displacement device, and installing the microfluid displacement device in a porous reservoir seepage experimental device, setting the working parameters of the experimental device to form a porous reservoir type hydrogen storage reservoir, simulating the hydrogen injection and production process of a porous medium reservoir; identifying the porous medium reservoir by CT scanning technology, and obtaining a CT scanning image; performing three-dimensional reconstruction of the CT scanning image to obtain a three-dimensional image; and calculating the contact angle obtained based on formation water by the three-dimensional image.

[0007] In the first aspect, the working parameters of the experimental device are set to simulate a porous reservoir type hydrogen storage reservoir, and the simulation of the hydrogen injection and production process of the porous medium reservoir includes: setting the vacuum pressure of the experimental device to -0.09MPa, so that the initial rock sample is vacuumed for 50min under the vacuum pressure, adjusting the confining pressure of the experimental device to 1.5MPa and the axial pressure to 0.5MPa, and injecting brine into the initial rock sample at a flow rate of 0.1mL / min to form a porous reservoir type hydrogen storage reservoir to obtain a first rock sample; maintaining the confining pressure of the experimental device to 1.5MPa and the axial pressure to 0.5MPa, and then Continue to inject H2 into the first rock sample at a flow rate of 0.2 mL / min to displace the brine in the first rock sample, forming the gas injection stage of the porous reservoir-type hydrogen storage reservoir, and obtaining a second rock sample; maintain the confining pressure of the experimental device at 1.5 MPa and the axial pressure at 0.5 MPa, continue to inject brine into the second rock sample at a flow rate of 0.1 mL / min to displace the H2 in the second rock sample, forming the gas extraction stage of the porous reservoir-type hydrogen storage reservoir, and obtaining a third rock sample; maintain the confining pressure of the experimental device at 1.5 MPa and the axial pressure at 0.5 MPa, and let it stand for 12 hours to obtain a porous medium reservoir.

[0008] In the first aspect, the porous medium reservoir is identified by CT scanning technology, and obtaining the CT scanning image includes: performing high-resolution CT scanning imaging of the porous medium reservoir, the first rock sample, the second rock sample and the third rock sample by a CT scanner to obtain CT scanning images of the porous reservoir-type hydrogen storage tank in different states.

[0009] In the first aspect, the three-dimensional reconstruction of the CT scan image to obtain the three-dimensional image includes: based on a large number of CT scan images obtained by the scanner, the CT scan image is three-dimensionally reconstructed by a rock pore structure three-dimensional reconstruction method to obtain the three-dimensional image; or, based on a large number of CT scan images obtained by the CT scanner, the CT scan image is threshold segmented to obtain an H2-formation water-rock three-phase diagram, and the H2-formation water-rock three-phase diagram is three-dimensionally reconstructed to obtain a three-dimensional image.

[0010] In the first aspect, the contact angle calculated based on the formation water by the three-dimensional image includes:

[0011] The three-dimensional image is divided into a plurality of voxelized images, and a surface mesh M0 is extracted from the voxelized images. The surface mesh M0 is a set of vertices P. Two vertices P form an edge e, four edges e form a face f, and six faces f form a voxelized image. The surface mesh M0 is defined as follows:

[0012] The vertex of the voxelized image is marked as i, the adjacent vertex adjacent to the vertex i is marked as j, and the total number of adjacent vertices of the vertex i is marked as adj(i);

[0013] The center of each face is composed of all adjacent vertices P belonging to the same face j The specific expression (1) is:

[0014] In formula (1), is the number of vertices that make up the face;

[0015] The center of each edge It is determined by the average position of the two vertices belonging to this edge. The specific expression (2) is:

[0016] pass and Calculate the area A around each vertex j and total area The specific expressions (3) to (6) are:

[0017] (3)

[0018] (4)

[0019] (5)

[0020] (6)

[0021] Calculate the normal vector for each vertex i based on the total area The specific expression (7) is:

[0022] Performing volume-preserving Gaussian smoothing and curvature smoothing on the surface mesh M0 to obtain a smooth mesh M1;

[0023] The contact angle of each vertex i obtained based on the formation water is calculated by the smooth grid M1. The contact angle θ i The calculation formula (8) is:

[0024]

[0025] In formula (8), is the normal vector perpendicular to the hydrogen / formation water interface, is the normal vector perpendicular to the formation water / rock, V CL It is the vertex set of the hydrogen / formation water / rock three-phase contact line.

[0026] In a first aspect, the Gaussian smoothing comprises:

[0027] Define the weight factor α of adjacent vertices j , the specific expression (9) is:

[0028] Calculate the average distance from each vertex to its adjacent vertices The calculation formula (10) is:

[0029]

[0030] Based on the average distance and the normal vector Move the vertex from its initial position o1 i Move to calculate the average position q1 i , when i∈V CL hour,

[0031] otherwise,

[0032] Where β is a relaxation scalar, β∈{0→1}; Indicates that Projected perpendicular to the hydrogen / formation water interface;

[0033] Calculate the average displacement during the move The calculation formula (11) is:

[0034]

[0035] According to the average displacement The vertex is calculated from the average position q1 i Move to new position p1 i ,

[0036] When i∈V CL hour,

[0037] otherwise,

[0038] In the first aspect, the curvature smoothing specifically includes:

[0039] For p1 after Gaussian smoothing i Make corrections and redefine the initial position in curvature smoothing to o2 i ;

[0040] The normal vector of each edge Determined by the two vertex normals belonging to this edge, the specific expression (12) is:

[0041] Define the interface tangent vector between each vertex and the center of the edge between the corresponding adjacent vertex The specific expression (13) is:

[0042]

[0043] In formula (13), V OB is the set of vertices of the hydrogen / formation water interface contact line;

[0044] Calculate the curvature of the vertex of the hydrogen / formation water / rock three-phase contact line The specific expression (14) is:

[0045]

[0046] Calculate the curvature of the vertices of the hydrogen / formation water interface contact line The specific expression (15) is:

[0047]

[0048] Curvature of contact line and the contact line curvature To smooth:

[0049] When {i,j}∈V OB hour,

[0050] When {i,j}∈V CL hour,

[0051] Calculate the displacement distance based on the smoothed contact line curvature

[0052] Define the weighting factor that controls vertex motion as w k , the specific expression (16) is:

[0053] In formula (16), γ is the relaxation scalar, γ∈{0→1};

[0054] When i∈V OB hour,

[0055] When i∈V CL hour,

[0056] Move the vertex from its initial position o2 i Move to calculate the average position q2 i ,

[0057] When i∈V OB hour,

[0058] When i∈V CL hour,

[0059] Calculate the average displacement during the move The calculation formula (17) is:

[0060]

[0061] Continue to move the vertex from the calculated average position q2 i Move to new position p2 i ,

[0062] When i∈V OB hour,

[0063] When i∈V CL hour,

[0064] In the first aspect, after the contact angle obtained by formation water is calculated through the three-dimensional image, the method further includes: performing statistical fitting on the contact angle to obtain a contact angle distribution curve.

[0065] The second aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the automatic in-situ contact angle measurement method of H2-formation water-rock based on CT scanning imaging as described in any one of the first aspects when executing the computer program stored in the memory.

[0066] The third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon: when the computer program is executed by a processor, the method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging as described in any one of the first aspects is implemented.

[0067] Beneficial effects:

[0068] The present invention provides an automatic measurement method of H2-formation water-rock in-situ contact angle based on CT scanning imaging. First, the initial rock sample is placed in a microfluid displacement device, and the microfluid displacement device is installed in a porous reservoir seepage experimental device, and the working parameters of the experimental device are set to form a porous reservoir type hydrogen storage reservoir, so as to simulate the different states of H2 and formation water in the rock pores; secondly, the porous medium reservoir is identified by CT scanning technology, and a CT scanning image is obtained to accurately obtain the distribution characteristics of H2 and formation water in the rock pores; then, the CT scanning image is three-dimensionally reconstructed to obtain a three-dimensional image, and the contact interface of H2 and formation water is accurately located; finally, the contact angle obtained based on formation water is calculated by the three-dimensional image. The automatic contact angle measurement method provided by the present invention utilizes the high-resolution imaging capability of CT scanning technology, can accurately identify the distribution state of H2 and formation water in the rock pores, and then accurately locate the contact interface of H2 and formation water, and achieve more accurate contact angle measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only 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.

[0070] Figure 1 A schematic diagram of a flow chart of an automatic method for measuring in-situ contact angle of H2-formation water-rock based on CT scanning imaging provided by the present invention;

[0071] Figure 2 A schematic diagram of a porous reservoir seepage experimental device provided by the present invention;

[0072] Figure 3 A CT scan image provided in Example 1;

[0073] Figure 4 A H2-formation water-rock ternary phase diagram provided in Example 1;

[0074] Figure 5 The three-dimensional image of the contact angle is obtained based on formation water in Example 1;

[0075] Figure 6 A partial schematic diagram of a grid M0 provided in Example 1;

[0076] Figure 7 A schematic diagram of obtaining the contact angle based on formation water provided in Example 1;

[0077] Figure 8 A schematic diagram of Gaussian smoothing provided in Example 1;

[0078] Fig. 9 A schematic diagram of curvature smoothing provided in Example 1;

[0079] Fig.10 A contact angle distribution diagram of a rock sample provided in Example 1;

[0080] Fig.11 A schematic diagram of the structure of an electronic device provided by the present invention;

[0081] Fig.12 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0083] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0084] The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.

[0085] Embodiment 1

[0086] See also Figure 1 This embodiment 1 provides a method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging, the method comprising:

[0087] S1. placing the initial rock sample in a microfluid displacement device, and installing the microfluid displacement device in a porous reservoir seepage experimental device, setting the working parameters of the experimental device to form a porous reservoir type hydrogen storage reservoir, and simulating the hydrogen injection and production process of a porous medium reservoir;

[0088] S2, identifying the porous medium reservoir by CT scanning technology, and obtaining a CT scanning image;

[0089] S3, performing three-dimensional reconstruction on the CT scan image to obtain a three-dimensional image;

[0090] S4. Calculating the contact angle based on the formation water through the three-dimensional image.

[0091] Specifically, the present invention provides an automatic measurement method of H2-formation water-rock in-situ contact angle based on CT scanning imaging. First, the initial rock sample is placed in a microfluid displacement device, and the microfluid displacement device is installed in a porous reservoir seepage experimental device, and the working parameters of the experimental device are set to form a porous reservoir type hydrogen storage reservoir, so as to simulate the different states of H2 and formation water in the rock pores; secondly, the porous medium reservoir is identified by CT scanning technology, and a CT scanning image is obtained to accurately obtain the distribution characteristics of H2 and formation water in the rock pores; then, the CT scanning image is three-dimensionally reconstructed to obtain a three-dimensional image, and the contact interface of H2 and formation water is accurately located; finally, the contact angle obtained based on formation water is calculated by the three-dimensional image. The automatic contact angle measurement method provided by the present invention utilizes the high-resolution imaging capability of CT scanning technology, which can accurately identify the distribution state of H2 and formation water in the rock pores, and then accurately locate the contact interface of H2 and formation water, so as to achieve more accurate contact angle measurement.

[0092] In some possible implementations, setting the working parameters of the experimental device to simulate a porous reservoir type hydrogen storage reservoir, simulating the porous medium reservoir hydrogen injection and production process includes:

[0093] S11, setting the vacuum pressure of the experimental device to -0.09 MPa, so that the initial rock sample is in vacuum for 50 min under the vacuum pressure, adjusting the confining pressure of the experimental device to 1.5 MPa and the axial pressure to 0.5 MPa, and injecting brine into the initial rock sample at a flow rate of 0.1 mL / min to form a porous reservoir type hydrogen storage reservoir, and obtaining a first rock sample;

[0094] S12, maintaining the confining pressure of the experimental device at 1.5 MPa and the axial pressure at 0.5 MPa, and continuing to inject H2 into the first rock sample at a flow rate of 0.2 mL / min to displace the brine in the first rock sample, forming the gas injection stage of the porous reservoir type hydrogen storage reservoir, and obtaining a second rock sample;

[0095] S13, maintaining the confining pressure of the experimental device at 1.5 MPa and the axial pressure at 0.5 MPa, and continuing to inject brine into the second rock sample at a flow rate of 0.1 mL / min to displace H2 in the second rock sample, forming the gas extraction stage of the porous reservoir type hydrogen storage reservoir, and obtaining a third rock sample;

[0096] S14. Maintain the confining pressure of the experimental device at 1.5 MPa and the axial pressure at 0.5 MPa, and let it stand for 12 hours to obtain a porous medium reservoir.

[0097] Those skilled in the art will understand that Figure 2As shown, the vacuum pressure of the experimental device is set to -0.09MPa, so that the initial rock sample is in a vacuum state, and the gas or moisture in the initial rock sample is removed. Then, the confining pressure of the experimental device is adjusted to 1.5MPa and the axial pressure is 0.5MPa, and salt water (the salt water can be distilled water with a potassium iodide content of 3.4wt%) is injected into the initial rock sample at a flow rate of 0.1mL / min to simulate the saturated groundwater state of the original reservoir rock, and the rock sample is scanned by CT scanning technology to obtain the pore structure characteristics of the first rock sample in this state, and the CT scanning image is observed to ensure that the first rock sample is completely filled and saturated with salt water; then, under the conditions of confining pressure of 1.5MPa and axial pressure of 0.5MPa, H2 is injected into the first rock sample at a flow rate of 0.2mL / min to displace the salt water in the first rock sample, thereby simulating the hydrogen injection stage of the porous reservoir type hydrogen storage tank, and the injection volume is 50PV , the rock sample was scanned by CT scanning technology to obtain the pore structure characteristics of the second rock sample in this state, and the CT scanning image was observed to obtain the distribution characteristics of hydrogen and brine in the pores of the second rock sample during the gas injection stage; the confining pressure of the experimental device was continued to be maintained at 1.5MPa and the axial pressure was 0.5MPa, and brine was injected into the second rock sample at a flow rate of 0.1mL / min to displace the H2 in the second rock sample, thereby simulating the hydrogen production stage of the porous reservoir-type hydrogen storage tank, and the rock sample was scanned by CT scanning technology to obtain the pore structure characteristics of the third rock sample in this state, and the CT scanning image was observed to obtain the distribution characteristics of hydrogen and brine in the pores of the third rock sample during the gas production stage; finally, the rock sample was left to stand for 12h under the conditions of confining pressure of 1.5MPa and axial pressure of 0.5MPa to obtain a porous medium reservoir, and the rock sample was scanned by CT scanning technology to obtain the distribution characteristics of hydrogen and brine in the pores of the porous medium under this state.

[0098] In some possible implementations, the identifying the porous medium reservoir by CT scanning technology and obtaining the CT scan image include: performing high-resolution CT scanning imaging of the porous medium reservoir, the first rock sample, the second rock sample and the third rock sample by a CT scanner to obtain CT scan images of the porous reservoir-type hydrogen storage tank in different states.

[0099] In a specific embodiment, the porous medium reservoir, the first rock sample, the second rock sample and the third rock sample can be scanned by a CT scanner to obtain the pore structure characteristics of the rock samples in different states and the distribution characteristics of hydrogen and brine in the rock pores, such as Figure 3 As shown, hydrogen, brine, and rock appear at different grayscale values ​​in the CT scan image.

[0100] In some possible embodiments, the three-dimensional reconstruction of the CT scan image to obtain the three-dimensional image includes: based on a large number of CT scan images obtained by the scanner, three-dimensionally reconstructing the CT scan image by a rock pore structure three-dimensional reconstruction method to obtain the three-dimensional image; or, based on a large number of CT scan images obtained by the CT scanner, threshold segmenting the CT scan image to obtain an H2-formation water-rock three-phase diagram, and three-dimensionally reconstructing the H2-formation water-rock three-phase diagram to obtain a three-dimensional image.

[0101] Those skilled in the art will appreciate that a large number of CT scan images obtained are reconstructed in three dimensions according to a specific angle using a rock pore structure three-dimensional reconstruction method to obtain a three-dimensional image; or, in order to more clearly distinguish the three substances of hydrogen, brine and rock, the CT scan images are segmented by threshold value into three parts: H2, formation water and rock, so as to obtain a H2-formation water-rock three-phase diagram (such as Figure 4 Then, the three-dimensional reconstruction and restoration method is used to reconstruct and restore the H2-formation water-rock three-phase diagram to obtain the H2-formation water-rock three-phase three-dimensional image (as shown in Figure 5 shown).

[0102] In some possible implementations, calculating the contact angle obtained by using the three-dimensional image with formation water as a reference includes:

[0103] S41, dividing the three-dimensional image into a plurality of voxelized images, extracting a surface mesh M0 from the voxelized images, wherein the surface mesh M0 is a set of vertices P, two vertices P form an edge e, four edges e form a face f, and six faces f form a voxelized image, and defining the surface mesh M0:

[0104] The vertex of the voxelized image is marked as i, the adjacent vertex adjacent to the vertex i is marked as j, and the total number of adjacent vertices of the vertex i is marked as adj(i);

[0105] The center of each face is composed of all adjacent vertices P belonging to the same face j The specific expression (1) is:

[0106] In formula (1), is the number of vertices that make up the face;

[0107] The center of each edge It is determined by the average position of the two vertices belonging to this edge. The specific expression (2) is:

[0108] pass and Calculate the area A around each vertex j and total area The specific expressions (3) to (6) are:

[0109] (3)

[0110] (4)

[0111] (5)

[0112] (6)

[0113] S42. Calculate the normal vector of each vertex i according to the total area The specific expression (7) is:

[0114] S43, performing volume-preserving Gaussian smoothing and curvature smoothing on the surface mesh M0 to obtain a smooth mesh M1;

[0115] S44, calculating the contact angle of each vertex i obtained based on the formation water through the smooth grid M1, the contact angle θ i The calculation formula (8) is:

[0116]

[0117] In formula (8), is the normal vector perpendicular to the hydrogen / formation water interface, is the normal vector perpendicular to the formation water / rock, V CL It is the vertex set of the hydrogen / formation water / rock three-phase contact line.

[0118] In order to realize the in-situ automatic measurement of the contact angle, the acquired three-dimensional image is segmented into several voxelized images, and the surface mesh M0 is extracted from the voxelized images. The elements in the surface mesh M0 are defined as shown in expressions (1) to (7) and Figure 6 , Figure 7 shown.

[0119] In some possible implementations, the Gaussian smoothing includes:

[0120] S4311, define the weight factor α of adjacent vertices j , the specific expression (9) is:

[0121]

[0122] S4312. Calculate the average distance from each vertex to the corresponding adjacent vertex The calculation formula (10) is:

[0123] S4313, based on the average distance and the normal vector Move the vertex from its initial position o1 i Move to calculate the average position q1 i , when i∈V CL hour,

[0124] otherwise,

[0125] Where β is a relaxation scalar, β∈{0→1}; Indicates that Projected perpendicular to the hydrogen / formation water interface;

[0126] S4314, calculate the average displacement during the movement The calculation formula (11) is:

[0127]

[0128] S4315, based on the average displacement The vertex is calculated from the average position q1 i Move to new position p1 i ,

[0129] When i∈V CL hour,

[0130] otherwise,

[0131] Those skilled in the art will understand that Figure 8 As shown in the figure, during one iteration of Gaussian smoothing, the position of the vertex of the hydrogen / formation water / rock three-phase contact line changes from the initial position o1 to i Move to calculate the average position q1 i (The vertex position changes from o1 i →q1 i ), only in Smoothing is performed in the direction to prevent lateral deformation of the three-phase contact line, and the average position q1 is calculated from i Move to new position p1 i (The vertex position is from q1 i →p1 i ), the interface can be prevented from shrinking.

[0132] In some possible implementations, the curvature smoothing specifically includes:

[0133] S4321, after Gaussian smoothing p1 i Make corrections and redefine the initial position in curvature smoothing to o2 i ;

[0134] S4322, normal vector of each edge Determined by the two vertex normals belonging to this edge, the specific expression (12) is:

[0135] Define the interface tangent vector between each vertex and the center of the edge between the corresponding adjacent vertex The specific expression (13) is:

[0136]

[0137] In formula (13), V OB is the set of vertices of the hydrogen / formation water interface contact line;

[0138] S4323. Calculate the curvature of the vertex of the hydrogen / formation water / rock three-phase contact line The specific expression (14) is:

[0139]

[0140] S4324, calculate the curvature of the vertex of the hydrogen / formation water interface contact line The specific expression (15) is:

[0141]

[0142] S4325, contact line curvature and the contact line curvature To smooth:

[0143] When {i,j}∈V OB hour,

[0144] When {i,j}∈V CL hour,

[0145] S4326. Calculate the displacement distance based on the smoothed contact line curvature

[0146] Define the weighting factor that controls vertex motion as w k , the specific expression (16) is:

[0147] In formula (16), γ is the relaxation scalar, γ∈{0→1};

[0148] When i∈V OB hour,

[0149] When i∈V CL hour,

[0150] S4327, move the vertex from the initial position o2 i Move to calculate the average position q2 i ,

[0151] When i∈V OB hour,

[0152] When i∈V CL hour,

[0153] S4328, calculate the average displacement during the movement The calculation formula (17) is:

[0154]

[0155] S4329, continue to calculate the average position of the vertex q2 i Move to new position p2 i ,

[0156] When i∈V OB hour,

[0157] When i∈V CL hour,

[0158] Those skilled in the art will appreciate that volume-preserving Gaussian smoothing is sufficient to eliminate voxel artifacts. However, the mesh after Gaussian smoothing does not necessarily have a constant curvature. Therefore, after the surface mesh is Gaussian smoothed, curvature smoothing needs to be applied to normalize the vertices, such as Fig. 9 As shown, the vertex changes from its initial position o2 i Move to calculate the average position q2 i (The vertex position changes from o2 i →q2 i ), from which the average position q2 is calculated i Move to new position p2 i (The vertex position is from q2 i →p2 i ) is used to further modify the vertices after Gaussian smoothing.

[0159] In a specific embodiment, the above formula algorithm can be written into a code, the H2-formation water-rock three-phase diagram data obtained by threshold division is stored in a 3D 8bit unsigned char format, a raw file, and the code is executed to finally obtain the contact angle obtained based on the formation water. After calculation, a large number of contact angles are obtained, and then the contact angles are statistically fitted to obtain a contact angle distribution curve (such as Fig.10 ), and then accurately obtain the contact angle value in the pores of the rock sample.

[0160] In some possible implementations, after calculating the contact angle obtained by formation water through the three-dimensional image, the method further includes: performing statistical fitting on the contact angle to obtain a contact angle distribution curve.

[0161] In summary, the present invention divides the porous reservoir type hydrogen storage into a H2-formation water-rock three-phase diagram through CT scanning technology, and constructs a three-dimensional image to divide it into the H2-formation water-rock three-phase interface to form a voxelized image, and extracts the surface grid from it, and eliminates the artifacts related to the voxelized properties of the image through Gaussian smoothing, while retaining the macroscopic features of the rock surface, and then adjusts the grid through curvature smoothing, applies a constant curvature, and calculates the contact angle at the three-phase contact line and the normal vector perpendicular to the hydrogen / formation water interface and the formation water / rock, realizing the in-situ direct measurement of the contact angle, avoiding the errors caused by sample sampling and environmental changes in traditional experimental methods. In addition, during the implementation of the method, the process of fluid (hydrogen or formation water) migration in the pores can be monitored in real time and dynamically, which is helpful for in-depth research on multiphase flow behavior and its influencing factors; the method provided by the present invention is also applicable to different types of reservoir media, providing reliable data support for the design and optimization of underground hydrogen storage depots, and helping to improve hydrogen storage efficiency and safety.

[0162] Embodiment 2

[0163] See also Fig.11 , Fig.11 FIG. 1 is a schematic diagram of an embodiment of an electronic device 100 according to an embodiment of the present invention, comprising:

[0164] A memory 101, a processor 102, and a computer program 103 stored in the memory and executable on the processor, wherein the processor implements the above-mentioned automatic in-situ contact angle measurement method of H2-formation water-rock based on CT scanning imaging when executing the computer program 103 stored in the memory.

[0165] For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the part of the automatic measurement method of H2-formation water-rock in-situ contact angle based on CT scanning imaging in the embodiment of the present invention. The memory 101 can be used to store a computer program 103, which includes software programs, modules and data. The processor 102 executes the computer program 103 stored in the memory 101 to perform various functional applications and data processing of the electronic device.

[0166] Embodiment 3

[0167] The present invention also provides a computer-readable storage medium. Fig.12 , Fig.12 The present invention is a schematic diagram of an embodiment of a computer-readable storage medium, wherein the computer-readable storage medium may store a computer program, which, when executed, includes part or all of the steps of the method for automatic measurement of the in-situ contact angle of H2-formation water-rock based on CT scanning imaging recorded in the above method embodiment.

[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, electronic devices and computer-readable storage media can refer to the corresponding processes of the automatic measurement method of H2-formation water-rock in situ contact angle based on CT scanning imaging in the aforementioned method embodiment, and will not be repeated here.

[0169] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0171] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0172] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. 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 automatic measurement method of the in-situ contact angle of H2-formation water-rock based on CT scanning imaging in various embodiments 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 and other media that can store program codes.

[0173] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging, characterized in that: The method comprises: Placing the initial rock sample in a microfluid displacement device, and installing the microfluid displacement device in a porous reservoir seepage experimental device, setting the working parameters of the experimental device to form a porous reservoir type hydrogen storage reservoir, and simulating the hydrogen injection and production process of a porous medium reservoir; Identify the porous medium reservoir by CT scanning technology and obtain a CT scanning image; Performing three-dimensional reconstruction on the CT scan image to obtain a three-dimensional image; The contact angle obtained based on the formation water is calculated through the three-dimensional image.

2. The method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging according to claim 1 is characterized in that: The operating parameters of the experimental device are set to simulate a porous reservoir type hydrogen storage reservoir, and the simulation of the porous medium reservoir hydrogen injection and production process includes: The vacuum pressure of the experimental device is set to -0.09 MPa, so that the initial rock sample is vacuumed for 50 minutes under the vacuum pressure, the confining pressure of the experimental device is adjusted to 1.5 MPa and the axial pressure is adjusted to 0.5 MPa, and salt water is injected into the initial rock sample at a flow rate of 0.1 mL / min to form a porous reservoir type hydrogen storage reservoir, thereby obtaining a first rock sample; The confining pressure of the experimental device is maintained at 1.5 MPa and the axial pressure is maintained at 0.5 MPa, and H2 is continuously injected into the first rock sample at a flow rate of 0.2 mL / min to displace the brine in the first rock sample, thereby forming a gas injection stage of the porous reservoir type hydrogen storage reservoir, and obtaining a second rock sample; The confining pressure of the experimental device is maintained at 1.5 MPa and the axial pressure is maintained at 0.5 MPa, and brine is continuously injected into the second rock sample at a flow rate of 0.1 mL / min to displace H2 in the second rock sample, thereby forming a gas extraction stage of the porous reservoir type hydrogen storage reservoir, and obtaining a third rock sample; The experimental device was maintained at a confining pressure of 1.5 MPa and an axial pressure of 0.5 MPa, and allowed to stand for 12 hours to obtain a porous medium reservoir.

3. The method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging according to claim 2 is characterized in that: The method of identifying the porous medium reservoir by using CT scanning technology and obtaining a CT scanning image comprises: The porous medium reservoir, the first rock sample, the second rock sample and the third rock sample are subjected to high-resolution CT scanning imaging by a CT scanner to obtain CT scanning images of the porous reservoir type hydrogen storage tank in different states.

4. The method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging according to claim 3 is characterized in that: The three-dimensional reconstruction of the CT scan image to obtain a three-dimensional image comprises: Based on a large number of CT scan images obtained by the scanner, the CT scan images are three-dimensionally reconstructed by a rock pore structure three-dimensional reconstruction method to obtain a three-dimensional image; or, Based on a large number of CT scan images obtained by the CT scanner, the CT scan images are threshold segmented to obtain a H2-formation water-rock three-phase diagram, and the H2-formation water-rock three-phase diagram is three-dimensionally reconstructed to obtain a three-dimensional image.

5. The method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging according to claim 4 is characterized in that: The contact angle calculated by the three-dimensional image based on formation water comprises: The three-dimensional image is divided into a plurality of voxelized images, and a surface mesh M0 is extracted from the voxelized images. The surface mesh M0 is a set of vertices P. Two vertices P form an edge e, four edges e form a face f, and six faces f form a voxelized image. The surface mesh M0 is defined as follows: The vertex of the voxelized image is marked as i, the adjacent vertex adjacent to the vertex i is marked as j, and the total number of adjacent vertices of the vertex i is marked as adj(i); The center of each face is composed of all adjacent vertices P belonging to the same face j The specific expression (1) is: In formula (1), is the number of vertices that make up the face; The center of each edge It is determined by the average position of the two vertices belonging to this edge. The specific expression (2) is: pass and Calculate the area A around each vertex j and total area The specific expressions (3) to (6) are: (3) (4) (5) (6) Calculate the normal vector for each vertex i based on the total area The specific expression (7) is: Performing volume-preserving Gaussian smoothing and curvature smoothing on the surface mesh M0 to obtain a smooth mesh M1; The contact angle of each vertex i obtained based on the formation water is calculated by the smooth grid M1. The contact angle θ i The calculation formula (8) is: In formula (8), is the normal vector perpendicular to the hydrogen / formation water interface, is the normal vector perpendicular to the formation water / rock, V CL It is the vertex set of the hydrogen / formation water / rock three-phase contact line.

6. The method for automatic measurement of H2-formation water-rock in-situ contact angle based on CT scanning imaging according to claim 5 is characterized in that: The Gaussian smoothing includes: Define the weight factor α of adjacent vertices j , the specific expression (9) is: Calculate the average distance from each vertex to its adjacent vertices The calculation formula (10) is: Based on the average distance and the normal vector Move the vertex from its initial position o1 i Move to calculate the average position q1 i , when i∈V CL hour, otherwise, Where β is a relaxation scalar, β∈{0→1}; Indicates that Projected perpendicular to the hydrogen / formation water interface; Calculate the average displacement during the move The calculation formula (11) is: According to the average displacement The vertex is calculated from the average position q1 i Move to new position p1 i , When i∈V CL hour, otherwise, 7. The method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging according to claim 6 is characterized in that: The curvature smoothing specifically includes: For p1 after Gaussian smoothing i Make corrections and redefine the initial position in curvature smoothing to o2 i ; The normal vector of each edge Determined by the two vertex normals belonging to this edge, the specific expression (12) is: Define the interface tangent vector between each vertex and the center of the edge between the corresponding adjacent vertex The specific expression (13) is: In formula (13), V OB is the set of vertices of the hydrogen / formation water interface contact line; Calculate the curvature of the vertex of the hydrogen / formation water / rock three-phase contact line The specific expression (14) is: Calculate the curvature of the vertices of the hydrogen / formation water interface contact line The specific expression (15) is: Curvature of contact line and the contact line curvature To smooth: When {i,j}∈V OB hour, When {i,j}∈V CL hour, Calculate the displacement distance based on the smoothed contact line curvature Define the weighting factor that controls vertex motion as w k , the specific expression (16) is: In formula (16), γ is the relaxation scalar, γ∈{0→1}; When i∈V OB hour, When i∈V CL hour, Move the vertex from its initial position o2 i Move to calculate the average position q2 i , When i∈V OB hour, When i∈V CL hour, Calculate the average displacement during the move The calculation formula (17) is: Continue to move the vertex from the calculated average position q2 i Move to new position p2 i , When i∈V OB hour, When i∈V CL hour, 8. The method for automatically measuring the in-situ contact angle of H2-formation water-rock based on CT scanning imaging according to claim 7 is characterized in that: After calculating the contact angle obtained by formation water through the three-dimensional image, the method further includes: The contact angle is statistically fitted to obtain a contact angle distribution curve.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the automatic measurement method for the in-situ contact angle of H2-formation water-rock based on CT scanning imaging as described in any one of claims 1 to 8 when executing the computer program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the automatic measurement method of H2-formation water-rock in-situ contact angle based on CT scanning imaging as described in any one of claims 1-8 is implemented.