CN109186500B - Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary - Google Patents

Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary Download PDF

Info

Publication number
CN109186500B
CN109186500B CN201811132549.0A CN201811132549A CN109186500B CN 109186500 B CN109186500 B CN 109186500B CN 201811132549 A CN201811132549 A CN 201811132549A CN 109186500 B CN109186500 B CN 109186500B
Authority
CN
China
Prior art keywords
coordinate
point
points
liquid
phase
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811132549.0A
Other languages
Chinese (zh)
Other versions
CN109186500A (en
Inventor
雷达
李云
冯静娅
文孟刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN201811132549.0A priority Critical patent/CN109186500B/en
Publication of CN109186500A publication Critical patent/CN109186500A/en
Application granted granted Critical
Publication of CN109186500B publication Critical patent/CN109186500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/26Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N13/00Investigating surface or boundary effects, e.g. wetting power; Investigating diffusion effects; Analysing materials by determining surface, boundary, or diffusion effects

Abstract

A contact angle acquisition method of a liquid-liquid two-phase displacement image in a micron capillary adopts a cubic polynomial to fit a phase interface and calculate the contact angle, and the method can be suitable for an asymmetric phase interface and is more suitable for a measurement image obtained in an actual experiment; the method is based on the mode of local gray extreme value of the image, realizes the phase interface of the low-contrast image for liquid-liquid displacement in the micro-pipeline, and further obtains the contact angle. The method realizes the identification of the phase interface, the wall surface and the contact point of the low-contrast image of the liquid-liquid displacement in the micro-pipeline based on the mode of the local gray extreme value of the image, has high fault-tolerant rate, can adapt to the image with noise, can accurately and efficiently identify the phase interface, the wall surface and the contact point, and can be used for accurately measuring the contact angle. The method can adapt to fitting of asymmetric phase interfaces, has strong algorithm robustness, and greatly improves the efficiency of data processing and the measurement precision.

Description

Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary
Technical Field
The invention relates to a contact angle acquisition method of a liquid-liquid two-phase displacement image in a micron capillary tube, which is suitable for experiments in the fields of micro-scale two-phase flow research and petroleum enhanced exploitation.
Background
The displacement mechanism of two immiscible liquids in a single micron-scale capillary is the basis of two-phase displacement in a natural environment porous medium, which occurs in numerous industrial or natural processes, such as water flooding, polymer flooding, etc. of tight reservoirs, characterized by weak viscosity (the number of capillaries is in the range of 10)-10<Ca<10-5) Weak gravity (Bo number of bond less than 10)-4). These two dimensionless numbers are defined as Ca ═ μ V/γ, μ is the liquid viscosity, V is the phase interface velocity, γ is the interfacial tension; bo ═ ρ gh2And/γ, ρ is the density of the liquid, g is the acceleration of gravity, and h is the characteristic dimension of the flow region. The key factor affecting the displacement process is the capillary force, and the key parameter for calculating the capillary force is the contact angle between the two-phase interface and the wall surface of the pipeline. The calculation of the capillary force is calculated according to a Young-Laplace formula, and is shown as a formula (1). The actual range of the contact angle theta is 0-180 DEG when theta<At 90 DEG time PcIs a positive value when theta>At 90 deg. PcNegative values, therefore, the capillary force may be a resistance that impedes displacement and may also be a motive force for propelling displacement. Furthermore, contact Angle evaluationThe error in (2) will cause serious errors in the calculation of the capillary force, resulting in a misevaluation of the displacement process. Therefore, obtaining dynamic contact angle information under the industrial conditions described above is critical to assessing the overall liquid-liquid displacement process within the porous media.
Figure BDA0001813932080000011
Displacement experiments of two-phase immiscible liquids in micro-scale capillaries are common methods to study dynamic contact angles. Existing experiments often perform manual analysis on microscopic images of phase interfaces and manually measure contact angles. The image processing method adopted by the existing commercial equipment is only limited to analyzing the shape of the liquid drop on the solid surface (the contact angle is measured by the sitting drop method), and the image analysis algorithm of the liquid drop shape comprises a symmetric shape analysis method (ADSA-P), a high aspect ratio method, an ellipse fitting method and the like. However, the above algorithm is proposed for the shape detection of the liquid drop on the plane, is suitable for the image with high contrast, and is not suitable for the phase interface shape with low contrast during the displacement of the liquid in the micro-pipeline. To measure the contact angle of the liquid-liquid displacement phase interface in the microchannel, the phase interface needs to be identified from the image.
Disclosure of Invention
The invention aims to provide a contact angle acquisition method for a liquid-liquid two-phase displacement image in a micron capillary, which can identify a wall surface, a phase interface and a contact point from the image and measure the contact angle and the position of the contact point.
In order to achieve the purpose, the invention adopts the following technical scheme:
a contact angle acquisition method for a liquid-liquid two-phase displacement image in a micron capillary tube divides an obtained microscopic image into coordinates, and sets the pixel size width of the image as LxAnd length Ly(ii) a Then the following steps are carried out:
firstly, searching two points A and B at the leftmost ends of two wall surfaces along the y direction by a multi-extremum searching technology to obtain coordinates (0, y)A) And (0, y)B);
Step two, along A-E (0, y) of the midpoint of line BE) X in the horizontal directionESearching a single local minimum value to obtain a certain point F on the phase interface, wherein the coordinate point is (x)F,yF);
Step three, adopting a sorting algorithm to search a single extreme value along the y direction, further searching partial wall surfaces, setting a range to avoid the phase interface in order to avoid the search of the phase interface to the wall surfaces, and enabling 0<xD1=xC1<xFX is more than or equal to 0 and less than or equal to xD1And y is not less than 0 and not more than yEThe search within the range yields a wall A-D1, where the coordinates of D1 are (x)D1,yD1) (ii) a At 0<xf<xC1And yE≤y≤LySearching in the range to obtain a wall B-C1, wherein the coordinate of C1 is (x)C1,yC1);
Step four, adopting a sorting algorithm to search a single extreme value along the x direction, further searching a part of phase interfaces, setting a range to avoid the two walls in order to avoid the search of the two walls to the phase interfaces, and enabling 0<yD2<yF<yC2<LyX is more than or equal to 0 and less than or equal to LxAnd yD2≤y≤yC2The search in the range obtains a partial phase interface C2-D2, and the coordinates of the two points are (x)D2,yD2)、(xC2,yC2);
Step five, respectively fitting all coordinate points in the line segments of A-D1 and B-C1 by adopting a linear function to obtain a linear function fADAnd fBCFitting a cubic function to all points in the C2-D2 curve to obtain a cubic function fCD(ii) a Solving for fADAnd fCDThe intersection point of (A) and (B) is obtained as the coordinate (x) of the contact point DD,yD) Solving for fADAnd fCDTo obtain the coordinates (x) of the contact point CC,yC) (ii) a The line segments B-C and A-D are wall surfaces, and the curve C-D is a phase interface;
step six, according to the fitting function x ═ f of the phase interface obtained in the step fiveCD(y) coordinate (x) of CC,yC) And coordinates (x) of DD,yD) Respectively substitute for fCDIn the first derivative of (3), the contact angle theta of the phase boundary at the points C and D is determinedCAnd thetaD;fCDOf primary derivative f'CDIs composed of
f′CD=3aCDy2+2bCDy+cCD(13)
Will ordinate yCAnd yDIn the formula (13), the slope is obtained, and the slope is converted into an angle to obtain the contact angle thetaCAnd thetaD
Figure BDA0001813932080000031
The invention is further improved in that the specific process of the step one is as follows:
the point A and the point B are gray minimum value points on a straight line with x being 0 and are also two points with the gray gradient having the maximum value along the y direction, so that the coordinates of the two points with the gray gradient maximum value are found and distinguished, and the coordinates of the point A and the point B are determined;
let the gray-scale value of any coordinate point (x, y) be I (x, y), then the following steps are performed:
(1) forward difference is carried out on the gray value of the coordinate point on the straight line with x being 0 to represent that the change gradient dI exists, and two maximum value points exist in the dI;
Figure BDA0001813932080000032
(2) the y coordinates of all points on the straight line with x equal to 0 are arranged in descending order according to the gray gradient value I (0, y), and a coordinate sequence (y) is obtained1,y2,...yn) Coordinate y1Is the position of one maximum value point, searching the coordinate sequence in sequence, and searching the first coordinate point y satisfying the formula (3)kIn which 1 is<k is less than or equal to n, α is a coefficient less than 1 in formula (3), and h is the vertical distance h between the point A and the point BB-yA
|yk-y1|>αh (3)
(3) Comparison of y1And ykLet the smaller of the two be yminLarger value is ymaxThe ordinate of point A and point BIs determined as yA=ymin,yB=ymax
The invention has the further improvement that the specific process of the step two is as follows:
(1) the ordinate y of the midpoint E of the line A-B is determinedE
Figure BDA0001813932080000041
(2) Let line y equal to yEGray value I (x, y) of all the above coordinate pointsE) Gradient of gray scale is obtained according to formula (5), where x ∈ [0, L ]X](ii) a Get the straight line y ═ yEGray scale gradients dI (x, y) of all the above coordinate pointsE);
Figure BDA0001813932080000042
(3) Due to dI (x, y)E) Search for dI (x, y) with only one maximumE) Maximum point in the sequence, determining the abscissa x of point F on the phase boundaryFAnd the ordinate x of the point FF=xE
The invention has the further improvement that the specific process of the step three is as follows:
(1) in order to search the wall surface along the y direction without being influenced by the phase boundary, the x range of the search is limited to 0 ≦ xD1Or x is more than or equal to 0 and less than or equal to xC1Wherein x isD1=xC1=βxFβ is a factor less than 1;
(2) to search the wall A-D1, the abscissa xiTraverse 0 to xD1For each abscissa xiCalculating a straight line x ═ xiUpper gray level I (x)iY) gradient in the y direction, as shown in equation (6); searching for dI (x)iY) to obtain a vertical coordinate y corresponding to the wall coordinate pointiA series of coordinate points (x)i,yi) Wall A-D1;
Figure BDA0001813932080000043
(3) to search the wall B-C1, the abscissa xjTraverse 0 to xC1For each abscissa xjCalculating a straight line x ═ xjUpper gray level I (x)jY) gradient in the y-direction, formula (6) xiBy substitution of xjCalculating dI (x)jY), search for dI (x)jY) to obtain a vertical coordinate y corresponding to the wall coordinate pointjA series of coordinate points (x)j,yj) Forming wall B-C1.
The invention has the further improvement that the specific process of the step four is as follows:
(1) searching the minimum value of the gray level along the x direction to determine a phase interface, avoiding two wall surfaces, and setting the search range of the y direction as yD2<y<yC2Wherein y isD2And yC2Are respectively as
Figure BDA0001813932080000051
In formula (7), h is the distance from point a to point B, i.e., h is yB-yAAnd ε is a coefficient whose value ranges from 0<ε<0.5;
(2) To search for a phase interface, yiCoordinate traversal yD2To yC2For each ordinate yiCalculating the linear y ═ yiUpper gray level I (x, y)i) Gradient dI (x, y) in the x-directioni) As shown in formula (8); searching for dI (x, y)i) The maximum value of the wall surface coordinate point is obtained to obtain the vertical coordinate y of the corresponding wall surface coordinate pointiA series of coordinate points (x)i,yi) Wall C2-D2;
Figure BDA0001813932080000052
the invention has the further improvement that the concrete process of the step five is as follows:
(1) fitting all points in the A-D1 line segment by adopting a linear function, and obtaining a linear function f by taking the x coordinate as an independent variable and the y as a dependent variableADAs shown in formula (9), aADAnd bADIs a coefficient of a function of one degree,
y=fAD(x)=aADx+bAD(9)
fitting all points in the B-C1 line segment by adopting a linear function, and obtaining a linear function f by taking the x coordinate as an independent variable and the y as a dependent variableBCAs shown in formula (10), aBCAnd bBCAs coefficients of a linear function
y=fBC(x)=aBCx+bBC(10)
Fitting a phase interface C2-D2 by using a cubic function, and obtaining a cubic function f by taking a y coordinate as an independent variable and x as a dependent variableCDAs shown in formula (11);
x=fBC(y)=aCDy3+bCDy2+cCDy+dCD(11)
(2) the contact points C and D are the intersection points of the two walls and the phase boundary, respectively, and are therefore solved for fCDAnd fADA point of intersection of, and fCDAnd fBCIntersection point, obtaining coordinates (x) of contact points C and DC,yC) And (x)D,yD) Solving the equation set shown in the formula (12);
Figure BDA0001813932080000061
(3) determining all coordinate points on the phase interface and the wall surface: all coordinate points on the wall A-D are required to be taken, and each coordinate point satisfies xA≤x≤xDThe x of the abscissa is taken into the formula (9) to be calculated to obtain a corresponding y coordinate, so that coordinates of all points on the wall surface A-D are obtained; all coordinate points on the wall B-C are required to be taken, and each coordinate point satisfies xB≤x≤xCThe x of the abscissa is taken into the formula (10) to be calculated to obtain a corresponding y coordinate, so that coordinates of all points on the wall surface B-C are obtained; for all coordinate points on the phase boundary C-D, each will satisfy yC≤y≤yDThe ordinate y of (2) is taken into formula (11) to be calculated to obtain the corresponding x coordinate, so that the coordinates of all points on the phase interface C-D are obtained.
The invention further providesThe improvement of the step is that the method also comprises a step seven: when the actually obtained wall surface is not horizontal, the contact angle obtained by equation (14) is corrected as follows: the inclination angle of the wall is the average of the inclination angles of the walls A-D1 and B-C1, i.e., (arctan a)AD+arctan aBC) And/2, the final value of the contact angle is:
Figure BDA0001813932080000062
compared with the prior art, the invention has the following beneficial effects:
the invention adopts cubic polynomial fitting phase interface and calculates the contact angle, overcomes the limitation that ADSA-P of the traditional algorithm can only fit the symmetrical phase interface, can be suitable for the asymmetrical phase interface, and is more suitable for measuring images obtained in practical experiments; the method is based on the mode of local gray extreme value of the image, realizes the phase interface of the low-contrast image for liquid-liquid displacement in the micro-pipeline, and further obtains the contact angle. The method realizes the identification of the phase interface, the wall surface and the contact point of the low-contrast image of the liquid-liquid displacement in the micro-pipeline based on the mode of the local gray extreme value of the image, has high algorithm fault tolerance rate, can adapt to the image with noise, can accurately and efficiently identify the phase interface, the wall surface and the contact point, and can be used for accurately measuring the contact angle. The invention realizes the measurement of the liquid-liquid displacement dynamic contact angle under the conditions of low capillary number and low bond number. The method can adapt to the fitting of the asymmetric phase interface, has strong algorithm robustness, and greatly improves the efficiency of data processing and the measurement precision.
Drawings
Fig. 1 is a microscopic image of liquid-liquid displacement.
Fig. 2 is a gray scale distribution map in a gray scale image of liquid-liquid displacement.
Fig. 3 is a coordinate setting of the liquid-fluid displacement image.
Fig. 4 shows the positions of key points in image processing.
Fig. 5 shows a distribution of the gradation and the gradation gradient in which two minimum points exist on a straight line where x is 0.
Fig. 6 shows that the distribution of the gradation and the gradation gradient has two maximum points on the straight line where x is 0.
Fig. 7 shows two contact angles formed by the interface and the wall surface at two contact points.
FIG. 8 is a graph of the relationship between the derivative of the cubic polynomial and the contact angle.
Detailed Description
The present invention will be described in detail with reference to the accompanying drawings.
The invention provides a method for searching a local extremum in an image, which determines boundary points and then identifies a wall surface, a phase interface and a contact point from the boundary points.
The liquid-liquid displacement image features are as follows:
the microscopic image of the liquid-liquid displacement process adopts an incident light (bottom light source irradiation of a microscope) observation mode, so that an image that the wall surface, the phase interface and the bulk liquid are obviously distinguished can be obtained. The microscopic images of the liquid-liquid displacement belong to the low contrast images, as shown in fig. 1 and 2. The histogram distribution of the image with low contrast is characterized in that the gray distribution is concentrated in a certain area, and the number of pixels in the high gray area and the low gray area is small. In FIG. 2, two straight lines are the walls of the microchannels, and the curve is the phase interface. By utilizing the characteristic, other parameters such as phase interfaces, measured contact angles, phase interface displacement and the like are identified from a series of microscopic images through calculation. The method can efficiently and accurately process a large amount of image data, and greatly improves the research efficiency of the dynamic contact angle in the microcapillary.
The histogram distribution of an image with low contrast is characterized in that the gray scale distribution is concentrated in a certain area. In the liquid-liquid displacement image, two straight lines are the wall surfaces of the microchannels, and a curve is a phase interface.
Identification of microchannel walls and phase interfaces
The boundary here means the wall surface of the microchannel in the microscopic image and the phase interface between the immiscible liquid phases. The obtained image is divided into coordinates according to the method shown in fig. 3. Let the pixel size width of the image be LxAnd length Ly
On the image, the wall surface is two approximate straight lines formed by a series of pixel points with lower gray values. These two lines extend substantially horizontally (x-direction) and therefore require searching for local minima of the gray scale along the vertical direction (y-direction) to determine the wall. The algorithm for searching a single extreme value and the position thereof in an array sequence is mature, but the algorithm for searching a plurality of extreme values and a plurality of positions simultaneously is not mature. The identification of the wall and phase interfaces will be explained separately below.
Identification of part of a wall
Firstly, two points A and B at the leftmost ends (x is 0) of two wall surfaces are searched along the y direction by a multi-extremum searching technology to obtain coordinates (0, y)A) And (0, y)B) The approximate positions of the two wall surfaces are obtained;
the specific process of the step one is as follows:
the point a and the point B are gray minimum points on a straight line where x is 0, that is, two points where the gray gradient has a maximum value along the y direction, and therefore, the coordinates of the two points where the gray gradient has a maximum value are found and distinguished, and the coordinates of the point a and the point B can be determined. As shown in fig. 5 and 6;
let the gray-scale value of any coordinate point (x, y) be I (x, y), then the following steps are performed:
(1) the gray values of the coordinate points on the straight line where x is 0 are differentiated forward to indicate that there are two maximum points of the variation gradient dI, as shown in fig. 6.
Figure BDA0001813932080000081
(2) The y coordinates of all points on the straight line with x equal to 0 are arranged in descending order according to the gray gradient value I (0, y), and a coordinate sequence (y) is obtained1,y2,...yn) Coordinate y1Is the position of one maximum value point, searching the coordinate sequence in sequence, and searching the first coordinate point y satisfying the formula (3)kIn which 1 is<k is less than or equal to n, α is a coefficient less than 1 in formula (3), and h is the vertical distance h between the point A and the point BB-yA
|yk-y1|>αh (3)
(3) Comparison of y1And ykLet the smaller of the two be yminLarger value is ymaxThen the ordinate of point A and point B can be determined as yA=ymin,yB=ymax
Step two, E (0, y) along the midpoint of the A-B lineE) X in the horizontal directionESearching a single local minimum value to obtain a certain point F on the phase interface, wherein the coordinate point is (x)F,yF);
The specific process of the second step is as follows:
(1) the ordinate y of the midpoint E of the line A-B is determinedE(x is known on the abscissa)E=0),
Figure BDA0001813932080000091
(2) Let line y equal to yEGray value I (x, y) of all the above coordinate pointsE) Gradient of gray scale is obtained according to formula (5), where x ∈ [0, L ]X]. Get the straight line y ═ yEGray scale gradients dI (x, y) of all the above coordinate pointsE);
Figure BDA0001813932080000092
(3) Due to dI (x, y)E) Search for dI (x, y) with only one maximumE) The maximum point in the sequence can determine the abscissa x of the point F on the phase boundaryFAnd the ordinate x of the point FF=xE
Step three, searching a single extreme value by adopting the existing sorting algorithm along the y direction, further searching partial wall surfaces, setting a range to avoid the phase interface in order to avoid the search of the phase interface on the wall surfaces, and enabling 0<xD1=xC1<xF. X is more than or equal to 0 and less than or equal to xD1And y is not less than 0 and not more than yEThe search within the range yields a wall A-D1, where the coordinates of D1 are (x)D1,yD1) (ii) a At 0<xf<xC1And yE≤y≤LySearching in the range to obtain a wall B-C1, wherein the coordinate of C1 is (x)C1,yC1) See, fig. 4;
the concrete process of the third step is as follows:
(1) in order to search the wall surface along the y direction without being influenced by the phase boundary, the x range of the search is limited to 0 ≦ xD1Or x is more than or equal to 0 and less than or equal to xC1Wherein x isD1=xC1=βxFβ is a factor less than 1;
(2) to search the wall A-D1, the abscissa xiTraverse 0 to xD1For each abscissa xiCalculating a straight line x ═ xiUpper gray level I (x)iY) gradient in the y direction, as shown in equation (6); searching for dI (x)iY) of the wall surface coordinate points, the vertical coordinate y of the corresponding wall surface coordinate point can be obtainediAnd a series of coordinate points (x)i,yi) Wall a-D1 is formed;
Figure BDA0001813932080000101
(3) to search the wall B-C1, the abscissa xjTraverse 0 to xC1For each abscissa xjCalculating a straight line x ═ xjUpper gray level I (x)jY) gradient in the y-direction, formula (6) xiBy substitution of xjCalculating dI (x)jY), search for dI (x)jY) of the wall surface coordinate points, the vertical coordinate y of the corresponding wall surface coordinate point can be obtainedjAnd a series of coordinate points (x)j,yj) The wall B-C1 is formed.
Determination of phase boundary and contact point:
from the results obtained in the above steps, the phase interface and the contact point can be further determined. The following step three:
step four, searching a single extreme value by adopting the existing sorting algorithm along the x direction, further searching a part of phase interfaces, setting a range to avoid the two walls in order to avoid the search of the two walls to the phase interfaces, and enabling 0<yD2<yF<yC2<Ly. X is more than or equal to 0≤LxAnd yD2≤y≤yC2The search in the range obtains a partial phase interface C2-D2, and the coordinates of the two points are (x)D2,yD2)、(xC2,yC2)。
The concrete process of the step four is as follows:
(1) searching the minimum value of the gray level along the x direction to determine a phase interface, avoiding two wall surfaces, and setting the search range of the y direction as yD2<y<yC2Wherein y isD2And yC2Are respectively as
Figure BDA0001813932080000102
In formula (7), h is the distance from point a to point B, i.e., h is yB-yAAnd ε is a coefficient whose value ranges from 0<ε<0.5。
(2) To search for a phase interface, yiCoordinate traversal yD2To yC2For each ordinate yiCalculating the linear y ═ yiUpper gray level I (x, y)i) Gradient dI (x, y) in the x-directioni) As shown in formula (8); searching for dI (x, y)i) The maximum value can obtain the vertical coordinate y of the corresponding wall coordinate pointiAnd a series of coordinate points (x)i,yi) The wall C2-D2 is formed.
Figure BDA0001813932080000111
Step five, respectively fitting all coordinate points in the line segments of A-D1 and B-C1 by adopting a linear function to obtain a linear function fADAnd fBCFitting a cubic function to all points in the C2-D2 curve to obtain a cubic function fCD. Solving for fADAnd fCDThe coordinate (x) of the contact point D can be obtainedD,yD) Solving for fADAnd fCDThe coordinate (x) of the contact point C can be obtainedC,yC). The line segments B-C and A-D are wall surfaces, and the curve C-D is a phase interface.
The concrete process of the step five is as follows:
(1) fitting all points in the A-D1 line segment by adopting a linear function, and obtaining a linear function f by taking the x coordinate as an independent variable and the y as a dependent variableADAs shown in formula (9), aADAnd bADIs a coefficient of a function of one degree,
y=fAD(x)=aADx+bAD(9)
fitting all points in the B-C1 line segment by adopting a linear function, and obtaining a linear function f by taking the x coordinate as an independent variable and the y as a dependent variableBCAs shown in formula (10), aBCAnd bBCAs coefficients of a linear function
y=fBC(x)=aBCx+bBC(10)
Fitting a phase interface C2-D2 by using a cubic function, and obtaining a cubic function f by taking a y coordinate as an independent variable and x as a dependent variableCDAs shown in formula (11).
x=fBC(y)=aCDy3+bCDy2+cCDy+dCD(11)
(2) The contact points C and D are the intersection points of the two walls and the phase boundary, respectively, and are therefore solved for fCDAnd fADA point of intersection of, and fCDAnd fBCThe intersection point, the coordinates (x) of the contact points C and D can be obtainedC,yC) And (x)D,yD) The above process is to solve the equation set shown in equation (12).
Figure BDA0001813932080000112
(3) And determining all coordinate points on the phase interface and the wall surface. All coordinate points on the wall A-D are required to be taken, and each coordinate point satisfies xA≤x≤xDThe x of the abscissa is taken into the formula (9) to be calculated to obtain the corresponding y coordinate, so that the coordinates of all points on the wall surface A-D can be obtained; all coordinate points on the wall B-C are required to be taken, and each coordinate point satisfies xB≤x≤xCThe x of the abscissa is taken into the formula (10) to be calculated to obtain the corresponding y coordinate, so that the coordinates of all points on the wall surface B-C can be obtained; for all coordinates on the phase boundary C-DPoint, will each satisfy yC≤y≤yDThe ordinate y of (a) is taken into the formula (11) to be calculated so as to obtain the corresponding x coordinate, thereby obtaining the coordinates of all points on the phase interface C-D.
Measurement of contact Angle:
the contact angle is defined as the angle formed by the phase interface with the wall surface at the location of the point of contact. The contact angle of the phase interface at the contact point position is solved, and the fitting function x ═ f of the phase interface obtained in the previous step is obtainedCD(y) coordinate (x) of CC,yC) And coordinates (x) of DD,yD) Respectively substitute for fCDThe contact angle theta of the phase boundary at points C and D can be determined from the first derivative of (2)CAnd thetaD。fCDOf primary derivative f'CDIn order to realize the purpose,
f′CD=3aCDy2+2bCDy+cCD(13)
will ordinate yCAnd yDIn the formula (13), a slope can be obtained, and the contact angle θ shown in FIG. 6 can be obtained by converting the slope into an angleCAnd thetaD
Figure BDA0001813932080000121
In addition, considering that the actually obtained wall surface is not necessarily horizontal and may have a certain inclination angle, the contact angle obtained by equation (14) is corrected. The inclination angle of the wall is the average of the inclination angles of the walls A-D1 and B-C1, i.e., (arctan a)AD+arctan aBC)/2. The final value of the contact angle is then,
Figure BDA0001813932080000122
the results of the present invention are compared with the results of the contact angle measurement of Kr ü ss DSA100 contact angle instrument, which is a commercial device, and are shown in Table 1 below.
TABLE 1 comparison of the test results of the method of the present invention with the existing commercial equipment Kr ü ss DSA100 contact angle instrument
Figure BDA0001813932080000131
As can be seen from Table 1, the measurement deviation of the contact angle in the range of 40 to 120 is less than 0.5, indicating that the method of the present invention is accurate in measurement.

Claims (7)

1. A contact angle acquisition method for a liquid-liquid two-phase displacement image in a micron capillary tube is characterized in that an obtained microscopic image is subjected to coordinate division, and the pixel size width of the image is set to be LxAnd length Ly(ii) a Then the following steps are carried out:
firstly, searching two points A and B at the leftmost ends of two wall surfaces along the y direction by a multi-extremum searching technology to obtain coordinates (0, y)A) And (0, y)B);
Step two, E (0, y) along the midpoint of the A-B lineE) X in the horizontal directionESearching a single local minimum value to obtain a certain point F on the phase interface, wherein the coordinate point is (x)F,yF);
Step three, adopting a sorting algorithm to search a single extreme value along the y direction, further searching partial wall surfaces, setting a range to avoid the phase interface in order to avoid the search of the phase interface to the wall surfaces, and enabling 0<xD1=xC1<xFX is more than or equal to 0 and less than or equal to xD1And y is not less than 0 and not more than yEThe search within the range yields a wall A-D1, where the coordinates of D1 are (x)D1,yD1) (ii) a At 0<xf<xC1And yE≤y≤LySearching in the range to obtain a wall B-C1, wherein the coordinate of C1 is (x)C1,yC1);
Step four, adopting a sorting algorithm to search a single extreme value along the x direction, further searching a part of phase interfaces, setting a range to avoid the two walls in order to avoid the search of the two walls to the phase interfaces, and enabling 0<yD2<yF<yC2<LyX is more than or equal to 0 and less than or equal to LxAnd yD2≤y≤yC2Searching in the range to obtain a partial phase interface C2-D2 and coordinate points of two pointsOther than (x)D2,yD2)、(xC2,yC2);
Step five, respectively fitting all coordinate points in the line segments of A-D1 and B-C1 by adopting a linear function to obtain a linear function fADAnd fBCFitting a cubic function to all points in the C2-D2 curve to obtain a cubic function fCD(ii) a Solving for fADAnd fCDThe intersection point of (A) and (B) is obtained as the coordinate (x) of the contact point DD,yD) Solving for fADAnd fCDTo obtain the coordinates (x) of the contact point CC,yC) (ii) a The line segments B-C and A-D are wall surfaces, and the curve C-D is a phase interface;
step six, according to the fitting function x ═ f of the phase interface obtained in the step fiveCD(y) coordinate (x) of CC,yC) And coordinates (x) of DD,yD) Respectively substitute for fCDIn the first derivative of (3), the contact angle theta of the phase boundary at the points C and D is determinedCAnd thetaD;fCDOf primary derivative f'CDIs composed of
f′CD=3aCDy2+2bCDy+cCD(13)
Will ordinate yCAnd yDIn the formula (13), the slope is obtained, and the slope is converted into an angle to obtain the contact angle thetaCAnd thetaD
Figure FDA0002261265430000021
2. The method for acquiring the contact angle of the liquid-liquid two-phase displacement image in the microcapillary according to claim 1, wherein the specific process of the step one is as follows:
the point A and the point B are gray minimum value points on a straight line with x being 0 and are also two points with the gray gradient having the maximum value along the y direction, so that the coordinates of the two points with the gray gradient maximum value are found and distinguished, and the coordinates of the point A and the point B are determined;
let the gray-scale value of any coordinate point (x, y) be I (x, y), then the following steps are performed:
(1) forward difference is carried out on the gray value of the coordinate point on the straight line with x being 0 to represent that the change gradient dI exists, and two maximum value points exist in the dI;
Figure FDA0002261265430000022
(2) the y coordinates of all points on the straight line with x equal to 0 are arranged in descending order according to the gray gradient value I (0, y), and a coordinate sequence (y) is obtained1,y2,...yn) Coordinate y1Is the position of one maximum value point, searching the coordinate sequence in sequence, and searching the first coordinate point y satisfying the formula (3)kIn which 1 is<k is less than or equal to n, α is a coefficient less than 1 in formula (3), and h is the vertical distance h between the point A and the point BB-yA
|yk-y1|>αh (3)
(3) Comparison of y1And ykLet the smaller of the two be yminLarger value is ymaxThen the ordinate of point A and point B is determined as yA=ymin,yB=ymax
3. The method for acquiring the contact angle of the liquid-liquid two-phase displacement image in the microcapillary according to claim 1, wherein the specific process of the second step is as follows:
(1) the ordinate y of the midpoint E of the line A-B is determinedE
Figure FDA0002261265430000023
(2) Let line y equal to yEGray value I (x, y) of all the above coordinate pointsE) Gradient of gray scale is obtained according to formula (5), where x ∈ [0, L ]X](ii) a Get the straight line y ═ yEGray scale gradients dI (x, y) of all the above coordinate pointsE);
Figure FDA0002261265430000031
(3) Due to dI (x, y)E) Search for dI (x, y) with only one maximumE) Maximum point in the sequence, determining the abscissa x of point F on the phase boundaryFAnd the ordinate x of the point FF=xE
4. The method for acquiring the contact angle of the liquid-liquid two-phase displacement image in the microcapillary according to claim 1, wherein the specific process of the step three is as follows:
(1) in order to search the wall surface along the y direction without being influenced by the phase boundary, the x range of the search is limited to 0 ≦ xD1Or x is more than or equal to 0 and less than or equal to xC1Wherein x isD1=xC1=βxFβ is a factor less than 1;
(2) to search the wall A-D1, the abscissa xiTraverse 0 to xD1For each abscissa xiCalculating a straight line x ═ xiUpper gray level I (x)iY) gradient in the y direction, as shown in equation (6); searching for dI (x)iY) to obtain a vertical coordinate y corresponding to the wall coordinate pointiA series of coordinate points (x)i,yi) Wall A-D1;
Figure FDA0002261265430000032
(3) to search the wall B-C1, the abscissa xjTraverse 0 to xC1For each abscissa xjCalculating a straight line x ═ xjUpper gray level I (x)jY) gradient in the y-direction, formula (6) xiBy substitution of xjCalculating dI (x)jY), search for dI (x)jY) to obtain a vertical coordinate y corresponding to the wall coordinate pointjA series of coordinate points (x)j,yj) Forming wall B-C1.
5. The method for acquiring the contact angle of the liquid-liquid two-phase displacement image in the microcapillary according to claim 1, wherein the specific process of the step four is as follows:
(1) searching the minimum value of the gray level along the x direction to determine a phase interface, avoiding two wall surfaces, and setting the search range of the y direction as yD2<y<yC2Wherein y isD2And yC2Are respectively as
Figure FDA0002261265430000033
In formula (7), h is the distance from point a to point B, i.e., h is yB-yAAnd ε is a coefficient whose value ranges from 0<ε<0.5;
(2) To search for a phase interface, yiCoordinate traversal yD2To yC2For each ordinate yiCalculating the linear y ═ yiUpper gray level I (x, y)i) Gradient dI (x, y) in the x-directioni) As shown in formula (8); searching for dI (x, y)i) The maximum value of the wall surface coordinate point is obtained to obtain the vertical coordinate y of the corresponding wall surface coordinate pointiA series of coordinate points (x)i,yi) Wall C2-D2;
Figure FDA0002261265430000041
6. the method for acquiring the contact angle of the liquid-liquid two-phase displacement image in the microcapillary according to claim 1, wherein the specific process of the step five is as follows:
(1) fitting all points in the A-D1 line segment by adopting a linear function, and obtaining a linear function f by taking the x coordinate as an independent variable and the y as a dependent variableADAs shown in formula (9), aADAnd bADIs a coefficient of a function of one degree,
y=fAD(x)=aADx+bAD(9)
fitting all points in the B-C1 line segment by adopting a linear function, and obtaining a linear function f by taking the x coordinate as an independent variable and the y as a dependent variableBCAs shown in formula (10), aBCAnd bBCAs coefficients of a linear function
y=fBC(x)=aBCx+bBC(10)
Fitting a phase interface C2-D2 by using a cubic function, and obtaining a cubic function f by taking a y coordinate as an independent variable and x as a dependent variableCDAs shown in formula (11);
x=fBC(y)=aCDy3+bCDy2+cCDy+dCD(11)
(2) the contact points C and D are the intersection points of the two walls and the phase boundary, respectively, and are therefore solved for fCDAnd fADA point of intersection of, and fCDAnd fBCIntersection point, obtaining coordinates (x) of contact points C and DC,yC) And (x)D,yD) Solving the equation set shown in the formula (12);
Figure FDA0002261265430000042
(3) determining all coordinate points on the phase interface and the wall surface: all coordinate points on the wall A-D are required to be taken, and each coordinate point satisfies xA≤x≤xDThe x of the abscissa is taken into the formula (9) to be calculated to obtain a corresponding y coordinate, so that coordinates of all points on the wall surface A-D are obtained; all coordinate points on the wall B-C are required to be taken, and each coordinate point satisfies xB≤x≤xCThe x of the abscissa is taken into the formula (10) to be calculated to obtain a corresponding y coordinate, so that coordinates of all points on the wall surface B-C are obtained; for all coordinate points on the phase boundary C-D, each will satisfy yC≤y≤yDThe ordinate y of (2) is taken into formula (11) to be calculated to obtain the corresponding x coordinate, so that the coordinates of all points on the phase interface C-D are obtained.
7. The method for acquiring the contact angle of the liquid-liquid two-phase displacement image in the microcapillary according to claim 1, further comprising the following steps: when the actually obtained wall surface is not horizontal, the contact angle obtained by equation (14) is corrected as follows: the inclination angle of the wall is the average of the inclination angles of the walls A-D1 and B-C1, i.e., (arctan a)AD+arctan aBC) /2, then connectThe final value of the antenna is:
Figure FDA0002261265430000051
CN201811132549.0A 2018-09-27 2018-09-27 Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary Active CN109186500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811132549.0A CN109186500B (en) 2018-09-27 2018-09-27 Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811132549.0A CN109186500B (en) 2018-09-27 2018-09-27 Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary

Publications (2)

Publication Number Publication Date
CN109186500A CN109186500A (en) 2019-01-11
CN109186500B true CN109186500B (en) 2020-03-31

Family

ID=64907315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811132549.0A Active CN109186500B (en) 2018-09-27 2018-09-27 Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary

Country Status (1)

Country Link
CN (1) CN109186500B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231254A (en) * 2019-06-12 2019-09-13 刘华云 A kind of built-in calculation method for contact angle measurement
CN111192317B (en) * 2019-12-20 2022-04-22 西安交通大学 Method for acquiring saturation of gas-liquid displacement image in micron-scale planar pore network

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004044552A2 (en) * 2002-11-12 2004-05-27 Nanoink, Inc. Methods and apparatus for ink delivery to nanolithographic probe systems
CN102507389B (en) * 2011-10-27 2013-10-09 西北工业大学 Method for establishing prediction model of static contact angles in cylindrical glass capillaries
CN103499517B (en) * 2013-09-17 2015-07-08 中国石油天然气股份有限公司 Device and method for measuring internal contact angle of high-temperature and high-pressure capillary tube
CN104697900A (en) * 2013-12-05 2015-06-10 上海梭伦信息科技有限公司 Method for measuring interface tension and contact angle under vacuum controlled-temperature conditions, and apparatus thereof
CN203672750U (en) * 2013-12-05 2014-06-25 上海梭伦信息科技有限公司 Device for measuring interfacial tensions and contact angle values under vacuum and temperature control conditions
CN103679721B (en) * 2013-12-10 2016-12-07 中国船舶重工集团公司第七0九研究所 Use the image outline method for simplifying of nearest neighbor method Hough transform
CN104792662B (en) * 2015-04-03 2017-06-13 大连理工大学 A kind of CO based on Microfocus X-ray X ray CT2Saline contacts angle measuring method
CN105319155B (en) * 2015-11-23 2017-07-28 中国石油大学(华东) A kind of rock capillary force for considering rough surface features determines method
CN106814010A (en) * 2015-12-02 2017-06-09 中国科学院大连化学物理研究所 One kind is based on surface of solids apparatus for measuring contact angle and measuring method under UHV condition
CN106383133B (en) * 2016-10-21 2019-03-05 大连理工大学 A kind of CO based on X ray CT imaging technique2Salt water-core system capillary pressure force measuring method
CN206497006U (en) * 2017-03-02 2017-09-15 中国石油大学(北京) A kind of oily saline contacts angle measuring system based on CT scan

Also Published As

Publication number Publication date
CN109186500A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
Heib et al. Statistical contact angle analyses with the high-precision drop shape analysis (HPDSA) approach: Basic principles and applications
CN109186500B (en) Contact angle acquisition method for liquid-liquid two-phase displacement image in micron capillary
CN113819974B (en) River water level visual measurement method without water gauge
US10969321B2 (en) Method and system for determining contact angle of porous media
CN102207441A (en) Automatic detection method of static contact angle and dynamic contact angle
CN106023153B (en) A kind of method of bubble in measurement water body
CN105571993B (en) The method for measuring liquid-drop contact angle
Hyde et al. Determining liquid–liquid interfacial tension from a submerged meniscus
CN109345579B (en) Method for obtaining liquid-liquid interface in micron capillary
Tang et al. Measurement of liquid surface tension by fitting the lying droplet profile
CN108827834A (en) The acquisition methods of gas liquid film in a kind of micron capillary tube passage
CN105806780B (en) The phase content measurement method of passage aisle gas-liquid two-phase flow containing rate measuring system based on more visions
CN105352455A (en) Image-fuzzy-degree-based plane inclination measurement method
CN109253948A (en) A kind of sessile drop method Solid Surface Free Energy test device and method
CN109187277A (en) Gas liquid film moving distance acquisition methods in a kind of micron capillary tube passage
CN102507391A (en) Method for detecting static contact angle of hydrophilic water bead
Armstrong et al. Estimation of curvature from micro-CT liquid-liquid displacement studies with pore scale resolution
CN111198188A (en) Method for measuring concentration of surfactant solution based on image acquisition
CN109932281B (en) Vision-based liquid viscosity on-line measuring method
CN105203033A (en) Method for measuring in-plane displacement of MEMS
CN108918348A (en) Gas liquid film movement speed acquisition methods in a kind of micron capillary tube passage
Schmucker Experimental investigation of wind-forced drop stability
CN110308302B (en) Near-wall surface flow velocity measuring method and device
Nüllig et al. Diffusion of small gas bubbles into liquid studied by the rotary chamber technique
CN209069773U (en) A kind of sessile drop method Solid Surface Free Energy test device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant