1. Introduction
Immiscible fluid displacement in porous media is common in a variety of industrial applications, such as hydrocarbon recovery through water injection, carbon capture and storage in the subsurface (CCS) and biological water filtration [
1,
2,
3]. When displacements occur, the arrangement of fluid phases in contact with each other and a solid is governed by energy balance; displacements move toward local energy minima at a pore-by-pore level [
4]. Hence, it is of interest to study the interfaces of the phases since the change in the interfacial energy primarily controls the change in the energy of the system [
5]. Furthermore, the curvature of the interface can be used to estimate capillary pressure from the Young-Laplace equation [
6,
7].
To help frame the analysis of interfaces, it is useful to introduce some properties of the surface. In general, at an arbitrary point on surface, two principal curvatures (
and
) which are orthogonal to each other can be defined. Using these principal curvatures, mean curvature (
) and Gaussian curvature (
) are defined as:
There are other useful measures of the topology of surface called Minkowski functionals. The zero-order Minkowski functional (
) is the volume enclosed by a surface. The first- to third-order Minkowski functionals are defined as:
The first-order Minkowski functional () is the total area of the surface, the second-order () and the third-order Minkowski functional () are the surface integral of mean curvature and Gaussian curvature, respectively.
In immiscible fluid displacements, based on the Young-Laplace equation, capillary pressure (
) which is the pressure difference across the interface locally is related to the mean curvature by:
where
is the interfacial tension between the two phases. Traditionally, in oil/water systems, the capillary pressure is measured in a laboratory based on the macroscopic definition of
, where
and
are the pressure in oil and water phases, using, for instance, the porous plate method in which the pressure of each phase is measured using two external pressure transducers [
8,
9].
More recently, high-resolution three-dimensional X-ray imaging has been used to measure the curvature of the interface extracted from segmented CT images during two-phase flow experiments to derive capillary pressure using Equation (
6). Armstrong et al. [
6] used synchrotron-based tomographic datasets of oil/water drainage and imbibition experiments on a bead pack [
10]. The capillary pressure obtained from curvature measurements showed fairly good agreement with that obtained from pressure transducers for imbibition cycles, whereas a systematically lower capillary pressure was estimated for drainage. Li et al. [
11], applying their improved curvature computation method to the same dataset, provided a better agreement between the pressure measurements and values derived from curvature computation. Using a similar curvature measurement method, Herring et al. [
12] estimated the capillary pressure for a range of non-dimensional curvature between 0 and approximately 0.225 voxel
based on their air/water drainage and imbibition experiments on a Bentheimer sandstone.
The use of image based interface curvature measurements is not limited to the estimation of capillary pressure. AlRatrout et al. [
13] showed the relationship between the degree of wettability alteration and pore wall surface roughness. Using micro-CT images obtained during water-flooding experiments on altered wettability rocks, they performed curvature measurements on both the oil/water interface and the pore wall surface while providing an estimate of contact angle at three-phase contact lines. They demonstrated a relationship between surface roughness, curvature and contact angle, where rougher surfaces, which retained water after primary drainage, tended to be more water-wet. Later, Lin et al. [
14,
15] demonstrated the distinct difference in flow behavior between a water-wet and mixed-wet state based on water-flooding experiments on Bentheimer sandstones. They observed that for the mixed-wet system the oil/water interfaces had two equal, but opposite, curvatures in orthogonal directions which means that they are approximately minimal surfaces, resulting in efficient displacement of oil. There is a distinct difference in the Gaussian curvature—the product of the two principal curvatures—with wettability. Strongly water-wet systems have interfaces with a positive Gaussian curvature, while mixed-wet media have mainly interfaces with a negative Gaussian curvature. These experimental findings can be interpreted using the Gauss-Bonnet theorem [
16]:
where
is the Euler characteristic which is the number of oil clusters minus the number of holes in the clusters. A smaller, negative,
is associated with better connectivity.
is the third-order Minkowski functional (see Equation (4)) computed on both the oil/water and oil/solid interfaces. This relation suggests that the negative Gaussian curvature observed in mixed-wet states is related to a negative
, hence better phase connectivity.
Using the same experimental datasets as in Lin et al. [
14,
15], Blunt et al. [
17] used the measured interface curvatures to derive a thermodynamically consistent contact angle based on conservation of the Helmholtz free energy. This methodology uses curvature and interfacial area measurements directly to inform the contact angle to be used in pore-scale modeling studies. Khanamiri et al. [
18] provided a geometric description of the free energy of a porous system with two immiscible fluids using a linear combination of Minkowski functionals. Combining the geometric description with a thermodynamic description of free energy [
5], they have estimated the amount of dissipated energy in drainage and imbibition processes.
However, there is an inherited difficulty in these image-based curvature measurements: the use of voxelized images may introduce significant error, which has not—to date—been quantified. Although several studies have discussed the validity of the method based on comparison between macroscopic capillary pressure obtained from transducers and the average or peak value of the computed mean curvatures, a wide range with some negative values have been observed, which are not expected for the water-wet media studied [
6,
11,
12]. In fact, it is not clear how the distribution of measured curvatures represents the true local capillary pressure variation, which should be negligible in capillary equilibrium.
We study the accuracy of the image-based curvature computation using direct numerical simulations of drainage and imbibition for an oil/water system in complex porous media. Color-gradient two-phase lattice Boltzmann simulations are performed on synthetic images of a bead pack and micro-CT images of a Bentheimer sandstone, then the fluid configuration and pressure distribution after drainage and imbibition are obtained. We use these computations as a benchmark against which to compare image-based estimates of curvature. We show the comparison between computed curvatures on oil/water interface surfaces and those obtained from fluid pressure calculating both an averaged value for an entire sample and the pore-by-pore distribution. We show that the wide range of computed curvature distribution in a simple water-wet state in previous studies is likely due to errors in the measurements, and then suggest the best method to compute curvature from images and quantify the likely error.
3. Results
First, in
Section 3.1, using analytical surfaces, the validity of the curvature computation method described in
Section 2.2 was investigated. Based on the analytical surfaces, synthetic voxelized data were generated. Curvature was estimated on both the analytically generated surfaces and the surfaces extracted from the synthetic voxelized data. The accuracy of the curvature computation was evaluated by comparing computed curvature values with the analytical values. Second, in
Section 3.2, to demonstrate the error in curvature computation near three-phase contact lines, the oil/water interface during a drainage event in a square tube was generated by direct numerical simulation, then computed curvature values on the interface were compared with analytical values. Finally, in
Section 3.3, we measure curvature on the oil/water interface after drainage and imbibition processes using the results of direct numerical simulations performed on synthetic images of a bead pack and micro-CT images of a Bentheimer sandstone.
3.1. Curvature of Analytical Surfaces
We studied a sphere and a catenoid. The former represents the oil/water interface found in a two-phase displacement process for a strongly water-wet or a strongly oil-wet medium, while the latter represents the interface observed for a mixed-wet state after aging of rock samples whose local contact angles varies around 90
[
15,
17]. A catenoid has a zero mean curvature, with two equal and opposite curvatures in orthogonal directions. Hence, the Gaussian curvature is negative [
34].
The sphere had a unit radius, while the minimum radius of curvature of the catenoid was also 1 (see
Appendix A, Equation (
A1)). 201 × 101 data points were generated by changing the parameters
u and
v for every
in the range
. A surface was generated that was comprised of triangles connecting analytically computed points. We refer to these surfaces as an analytical surface. The curvature was computed on the analytical surfaces using the method described in
Section 2.2.
Figure 1 shows these analytical surfaces colored by computed local mean and Gaussian curvatures. The computed curvatures were sampled for every 0.05 size interval in the
z-direction within the range
, then average values of the mean and Gaussian curvature were calculated for each interval and compared with their analytical values (
Figure 2). For all bins, the standard deviation of the computed mean and Gaussian curvatures was of the order of 10
. This suggests that when the surface is sufficiently smooth, the standard method to compute curvature in which a quadratic equation is fitted to surfaces provides an accurate estimation with negligible standard deviation.
Next, synthetic voxelized data were generated based on the analytical surfaces. The rectangular region was sampled with 4 grid sizes of = 0.025, 0.05, 0.1 and 0.2. Then, a binary label was assigned to each grid block based on the analytical surfaces, i.e., a grid block was labeled as 0 for the inside of the analytical surface and labeled as 1 for the outside. The interface between these labels, which had a staircase shape, was extracted from the synthetic voxelized data. Then, applying Laplacian smoothing, smooth surfaces were generated. We refer to these surfaces as a smoothed surface. Consequently, 4 smoothed surfaces corresponding to grid sizes of = 0.025, 0.05, 0.1 and 0.2 were prepared for the sphere and catenoid.
Curvature was computed on the smoothed surfaces.
Figure 3 shows these smoothed surfaces colored by the computed local mean curvatures. Here, the surfaces were obtained using 600 smoothing iterations. The impact of the number of smoothing iterations will be discussed later in this section. The computed local curvatures were sampled for every 0.2 size interval, which is the largest grid block size among the 4 grid sizes, in the
z-direction within the range
[−1:1]. Then, the average and standard deviation of the mean and Gaussian curvature for each interval were computed. The comparison between computed and analytical values for mean curvature of the sphere and Gaussian curvature of the catenoid are shown in
Figure 4 and
Figure 5, respectively. As shown in
Figure 4d and
Figure 5d, when the grid size does not have sufficient resolution to capture a feature, using too many smoothing iterations causes shrinkage of a feature in the sphere and flattening of a feature in the catenoid around
, resulting in errors in the estimation of curvature.
To quantify error in relation to the grid resolution of the original voxelized data, we define a dimensionless feature size,
, where
R is the minimum absolute value of the radius of curvature, which is unity for our sphere and catenoid. The first- to third-order Minkovski functionals,
,
and
, of the sphere and catenoid were obtained from the computed curvature on the smoothed surfaces. These functionals quantify the surface area, and the surface-averaged mean and Gaussian curvature—see
Appendix A, Equations (
A4) and (
A5) for the mathematical details. Then, they were compared with their analytical values obtained with Equations (
A4) and (
A5). Here, we also examined the impact of smoothing by changing the number of smoothing iterations.
Figure 6 shows the errors in the estimation of
,
and
. As we can see in
Figure 6a,b for
with 600 and 1000 iterations: over-smoothing causes shrinkage in an object, resulting in an underestimate of
, the surface area, with an overestimate of curvature. In these cases, the errors cancel in the calculation of
, since we integrate a larger curvature over a smaller area. In contrast, when the dimensionless feature size is large, insufficient smoothing can cause significant errors in the estimation of
as seen in
Figure 6c,f for
with 300 iterations.
There was an optimum resolution to accurately compute curvature with voxelized data. When the resolution of original voxelized data was too fine, computed curvatures showed a large standard deviation. This large standard deviation could be reduced by applying more smoothing by increasing the number of smoothing iterations. On the other hand, when the resolution was coarse, there was a significant deviation from the analytical solution. This deviation was caused by the shrinkage of the sphere and by the flattening of the catenoid. Overall, the curvature computation method described in
Section 2.2 with 600 iterations of Laplacian smoothing estimated curvature within a 10 % error for the range of dimensionless feature size
.
3.2. Curvature of the Oil/Water Interface in a Simple Pore Geometry
3.2.1. Simulation Conditions
In this section we estimate interfacial curvature where a solid is present. Drainage simulations for a square tube with a pore width of 36 m whose inscribed pore radius is therefore 18 m were performed. A simulation domain consisting of 144 × 36 × 36 grid blocks with a resolution of 1 m/voxel was used. Void buffer regions of 12 × 60 × 60 grid blocks were attached to the inlet and outlet of the simulation domain. Oil, the non-wetting phase, was injected in the x direction from the inlet face at x = 0 with a constant velocity, while a constant pressure boundary condition was applied for water, the wetting phase, at the outlet face at x = 168 m. The capillary number was defined as , where and are the viscosity and Darcy velocity (the total flow rate divided by the cross-sectional area perpendicular to the flow direction) of the injected oil and is the interfacial tension between the oil and water. The injection velocity of oil was chosen to achieve a capillary number of , which is sufficiently low that viscosity forces were insignificant. Six simulations were conducted with different contact angles ranging from 0 to 75 to have a range of radius of curvature of the interface. The simulations were stopped when the interface reached the middle of the domain.
3.2.2. Curvature of the Interface
First, to validate our direct numerical simulation model, the capillary pressure (
) was obtained from the simulated fluid pressure in the oil and water phases, based on the following:
where
and
are the number of oil and water voxels whose color function is
> 0.9 and
< −0.9, respectively (see Equation (
12) for the definition of the color function).
is the fluid pressure in each voxel. Here, we used the voxels with
to remove oil/water interface regions in the simulations. The capillary pressure obtained was compared with the analytically derived capillary pressure provided in Øren et al. [
35] for which wetting layers were present in the corners (
) and in Blunt [
4] for which wetting layers were absent (
). As shown in
Table 1, the relative error in the estimation of capillary pressure was less than 5.6% for the range of contact angles studied (
). This study demonstrates that for a simulation study we have an independent method to compute capillary pressure and curvature, which does not depend on the explicit consideration of the shape of the fluid-fluid interface.
Next, two types of surface were prepared for the computation of curvature. It is possible to extract the oil/water interface from the simulations with a sub-grid resolution smoothness. This was performed by extracting the surface corresponding to the color function
. We refer to these surfaces as simulated interfaces. An example of our simulated phase distribution and the simulated interface is shown in
Figure 7. The other surface is a smoothed interface. This surface was generated based on synthetic voxelized data from the simulated phase distribution. First, simulation results with a resolution of 1
m were labeled as oil, water and solid based on the value of color function in a grid block (
Figure 7c). This synthetic voxel data was then resampled to different grid sizes of
= 1, 2, 3 and 4
m as shown in
Figure 8. Then, the staircase interface extracted from the label data (
Figure 7d) was smoothed with 600 iterations of Laplacian smoothing.
The curvature was then computed on total of 24 smoothed interfaces (6 contact angles × 4 grid resolutions). Since significant error was observed near the three-phase contact lines in the smoothed interfaces as shown in
Figure 9, we decided to discard curvature values within 3 voxels from the pore walls.
Figure 10 shows the comparison between analytical and computed curvature for the 24 surfaces. We see that, for all contact angles, the error became larger as the grid size became larger. This was because for a low resolution, the number of labeled grid voxels within the pore space was not sufficient to accurately capture the shape of the interface. We could improve the match to the analytical values by changing the number of smoothing iterations for different grid resolutions, however, it is not our purpose to optimize the level of smoothing depending on grid resolutions because a variety of feature sizes can exist in different pore sizes for an application to complex porous media.
The curvature computation method we used was essentially similar to that in Li et al. [
11] except for the surface smoothing method: they used constrained Gaussian smoothing, while we used Laplacian smoothing. We also tested constrained Gaussian smoothing for these cases; however, it was found that constrained Gaussian smoothing was inadequate resulting in larger errors when the curvature was small (contact angles close to 90
). We refer to Akai et al. [
32] for a further detailed comparison of smoothing methods. Furthermore, Li et al. [
11] used an average weighted by the distance from the solid to obtain a representative curvature value for a patch of the interface. However, this was not appropriate for our cases—computed curvatures away from the solid wall do not necessarily give an accurate estimation as shown in
Figure 9. This was also concluded from our other test cases reported in Akai et al. [
32].
In conclusion, for this pore structure with an inscribed radius of 18 m, most points for a grid resolution finer than or equal to 3 m fell in the range of ±30% error. In other words, a voxel size 6 times smaller than or equal to the inscribed radius of the pore space provides curvature estimations within ±30% error.
3.3. Curvature of the Oil/Water Interface in Complex Pore Spaces
3.3.1. Simulation Conditions
Synthetic bead pack images and micro-CT images of a Bentheimer sandstone were used in this section to study the interfacial curvature in complex pore spaces. These images had a resolution of 3.5
m/voxel. Pore structures with a size of 256 × 256 × 256 voxels were cropped from the original images and used for the simulations. The porosity of these pore structures were 36% for the bead pack and 19% for the Bentheimer sandstone. For the analysis of the simulation results, the pore structures were divided into pore regions using commercial image analysis software, resulting in 426 and 279 pore regions for the bead pack and Bentheimer sandstone, respectively. The pore size was defined as the radius of the largest sphere that could fit in each pore region. The mean pore radius which accounts for 50% of the pore volume was 37
m and 30
m for the bead pack and Bentheimer sandstone, respectively. Hence, the grid resolution was approximately 10 times smaller than the mean pore radius. In
Section 3.2, we showed that a grid resolution approximately 6 times the inscribed radius of a channel provided answers accurate to within 30%: we expect in this case, therefore, that the errors will be comparable or smaller.
Similar to a laboratory porous plate capillary pressure measurement, oil-wet and water-wet porous plates were attached to the
and
x faces of the porous domain, respectively. This porous plate consisted of a mesh of square pores 5 voxels in width and 20 voxels in length with a contact angle of 150
for the oil-wet porous plate and 30
for the water-wet porous plate. These porous plate domains were followed by 10 slices of a complete void space as a buffer region. Therefore, the simulation domain consisted of 316 × 256 × 256 voxels (
Figure 11). Identical density and viscosity of 1000 kg/m
and 1 mPa were used for the oil and water phases. The contact angle of the pore structure was set to 45
everywhere. The interfacial tension between water and oil was 25 mN/m.
Drainage simulations were performed in the direction. Initially, the upstream void space domain was filled with oil, while the rest of pore space was filled with water. During the drainage simulation, the pressure of oil at the upstream boundary () and the pressure of water at the downstream boundary () were controlled by constant pressure boundary conditions. Thus, the drainage simulation was performed by imposing a constant macroscopic capillary pressure (), which is given by: . The macroscopic capillary pressure applied was 1500 Pa and 2500 Pa for the bead pack and Bentheimer, respectively. Since these capillary pressures were below the capillary threshold of the water-wet porous plate, we did not observe breakthrough of oil to the downstream buffer region: the downstream buffer region remained completely filled with water. The simulations were stopped when the capillary number of the displacement became smaller than 1.0 × 10.
Imbibition simulations were then performed in the direction by reducing the macroscopic capillary pressure. This was performed by reducing while maintaining the same as assigned for the drainage simulations. For both the bead pack and Bentheimer, the macroscopic capillary pressure was reduced to 1000 Pa. The imbibition simulations were also stopped when the capillary number reached 1.0 × 10.
3.3.2. Curvature of the Interface
Figure 12 shows the fluid configurations at the end of the drainage and imbibition simulations. All the analyses presented below were performed only on the pore structure domain; the upstream and downstream buffer regions and porous plates were excluded.
Table 2 summarizes the oil saturation and average capillary pressure at the end of the drainage and imbibition simulations, obtained from the computed phase pressures using Equation (
15). Note that the capillary pressure shown here was not consistent with the macroscopic capillary pressure imposed. This was partly because the highest capillary pressures locally were observed for interfaces in the oil-wet porous plate region which was excluded from the analysis and partly because the simulations terminated at a capillary number of 1.0 × 10
were still in a transient regime and had not yet reached capillary equilibrium.
Similar to
Section 3.2.2, the oil/water interface was obtained from the simulation results in two ways: the simulated and smoothed interface. For the smoothed interfaces, Laplacian smoothing with 600 iterations was applied. Curvature was computed on these surfaces.
Figure 13 and
Figure 14 show the histogram of the computed local curvatures of the drainage and imbibition simulations for the bead pack and Bentheimer sandstone, respectively. Here, both the computed curvatures without the distance cutoff and with 3 voxels of distance cutoff are shown. The average curvature was also obtained from the simulated fluid pressure using Equations (
6) and (
15) as indicated by vertical dotted lines in the figures.
Here, we can make the following three observations. First, the histograms obtained from the smoothed interfaces without the distance cutoff showed a wide distribution with many negative mean curvature values which was similar to the distribution presented in Herring et al. [
12], whereas the histogram obtained from the simulated interfaces showed a narrower distribution with few negative values. This indicates that the overall distribution of the curvatures computed on the smoothed interfaces was distorted by erroneous values, while this was not the case for the simulated interfaces. Second, when the 3 voxel distance cutoff was applied, the histograms computed on the smoothed interfaces became similar to those computed on the simulated interfaces. This suggests that by removing the erroneous values appearing close to three-phase contact lines, curvatures can be properly estimated with the smoothed interfaces. Third, however, the peak curvature values of these histograms were shifted to smaller values. This is evident for drainage in Bentheimer sandstone for both the smoothed and simulated interfaces. This was because the application of the distance cutoff removed data points not just at the edges of large surface patches but also the entire surface in small pores whose radii were smaller than 3 voxels where there were high interfacial curvatures.
Figure 15 shows the comparison between the average curvatures obtained from the average fluid pressure in the porous domain and that obtained from the average value of the computed curvatures on the smoothed interfaces with the distance cutoff (
Figure 13b and
Figure 14b) and the simulated interfaces without the distance cutoff (
Figure 13c and
Figure 14c) . As discussed above, because the distance cutoff had to be applied to the smoothed interfaces to remove erroneous values, for drainage in the Bentheimer sandstone, the curvature was 36% lower than that found from the fluid pressures, which, as discussed previously, should be close to the correct value. For the other three cases whose dimensionless curvature was less than 0.1 voxel
, the computed curvatures on the smoothed interfaces were within 11% of the values found from the average pressure. In this specific case at a resolution of 3.5
m/voxel, a capillary pressure up to 1400 Pa can be estimated within 11% error (see Equation (
6)). For the simulated interface, for which the distance cutoff was not necessary, the difference was less than 4% in all cases.
To further investigate the accuracy of the interfacial curvature estimates, curvature was measured on a pore-by-pore basis. First, we obtained the capillary pressure by applying Equation (
15) for each pore region. Equation (
6) was then used to find the mean curvature. Next, we found the average of computed curvatures on both the smoothed and simulated interfaces for each pore region.
Figure 16 compares the dimensionless curvature obtained from fluid pressure and computed values on the interfaces after applying the 3 voxel distance cutoff. For both the drainage and imbibition on the bead pack and Bentheimer sandstone, computed curvatures on the simulated interfaces showed good agreement with those derived from fluid pressure as shown in the lower figures of
Figure 16a–d. Although the curvatures on the smoothed interfaces showed larger deviation from the values obtained with fluid pressure, curvatures in most pore regions less than 0.15 voxel
fell within ±30% of the pressure-driven values as shown in the upper figures of
Figure 16a–d.
The range of dimensionless curvatures for each pore region shown in
Figure 16 indicates the variations of local capillary pressure. Hence, as distinguished from previous studies [
6,
11,
12] which used comparisons between a curvature value obtained from transducer-based macroscopic capillary pressure and a mean or peak value of computed curvatures, the range of our values shown in
Figure 13 and
Figure 14 is supported by the good agreement between the computed curvatures and those obtained from fluid pressure on a pore-by-pore basis.