1. Introduction
In spite of the immiscible multi-phase flow in porous media being a field of great industrial importance for more than a century, basic research in this field has not received the attention that it deserves. The main reason for this is that the field is fragmented, being spread over many different disciplines such as biology, geology, geophysics, physics, chemistry, and materials science. Another reason is that it is easy to get the impression that it is not “clean” in the sense that it is a field where theories may be built. Rather, it seems to be a collection of phenomena in need of classification. It is the aim of this paper to convince the readership that this is indeed not the case. There is a physics of flow in porous media [
1] where general principles may be formulated. We will, in the following, present the readers with a review of our ongoing attempts at formulating a mathematical framework for immiscible and incompressible two-phase flow in porous media.
In 1907, Buckingham introduced several of the central concepts used today in describing immiscible and incompressible fluid flows in porous media [
2,
3], but without joining them through equations. This was first performed by Richards in 1931 [
4] who, as Buckingham, placed the flow problem in the context of water movement in soils. In 1936, building on the work by Wyckoff and Botset [
5], Muscat and Meres [
6] introduced the concept of relative permeability, a concept generalizing the notion of “capillary conductance” that Buckingham introduced [
2]. With the introduction of the capillary pressure curve by Leverett [
7] into the framework established by Muscat and Meres, the generalized Darcy constitutive equations that are generally used today in, e.g., reservoir simulation, were in place. The formulation of the problem in the context of water in soils that Buckingham pioneered, from the work of Richards, forms an alternate formulation of essentially the same ideas.
We review briefly relative permeability theory—the only approach to immiscible two-phase flow in porous media in practical use today—in
Section 2. Relative permeability theory is purely phenomenological, and has well-known deficiencies. As a result, there is an ongoing effort to derive effective equations going beyond relative permeability theory based on the physics at the pore scale. This effort is based on
homogenization which we review briefly in
Section 3.
In
Section 4, we introduce our approach to immiscible two-phase flow in porous media based on a generalization of statistical mechanics by Jaynes [
8,
9]. Statistical mechanics in its traditional role is to connect a molecular description of matter to a description at the much larger scales where matter appears continuous, namely thermodynamics. In adopting this idea to two-phase flow in porous media, we find a thermodynamics-like framework on large scales that together with conservation laws provide a closed set of equations that has the equations of relative permeability theory as a special case. As in ordinary thermodynamics, the difference between intensive and extensive variables is central. We explore this in
Section 5. The intensive variables appearing in the thermodynamics-like formalism we derive are emergent in that they have no equivalent on the pore scale. This is discussed in
Section 6. The temperature-like intensive variable,
agiture, we conjecture to be proportional to the pressure gradient in
Section 6.1. This conjecture has as a consequence in that the
configurational entropy, which is an example of Shannon’s information entropy, is related to the differential mobility of the fluids. The differential mobility is the derivative of the flow velocity with respect to the pressure gradient, and the mobility is the flow velocity divided by the pressure gradient. The
flow derivative we discuss in
Section 6.2 is the conjugate variable to the saturation, which is the fractional volume. We end the section by discussing the conjugate of the porosity, the
flow pressure, in
Section 6.3.
In
Section 7, we introduce the
co-moving velocity which relates the thermodynamic velocities—corresponding to partial molar volumes in ordinary thermodynamics—to the seepage velocities, which are the average pore velocity of each of the immiscible fluids. This concept has the potential to become a very useful concept in practical calculations.
Section 8 contains material that has not been presented before. We start by pointing out a choice made when constructing the Jaynes statistical mechanics in
Section 4, and how it could have been made differently. Then we discuss what the ensuing thermodynamics-like formalism would be as a consequence: rather than having saturation as one of the control parameters, we find fractional flow rate being a control parameter. This is useful, as this is the control parameter used in core flooding experiments.
We end by summarizing and concluding in
Section 9.
2. Relative Permeability Theory
The core idea of the relative permeability approach may be summarized as follows: We have two immiscible fluids, one more wetting with respect to the porous matrix than the other fluid. We will refer to them as the wetting (w) and non-wetting (n) fluid, respectively. From the perspective of the wetting fluid, the pore space it sees is the total pore space of the porous medium minus the pore space occupied by the non-wetting fluid, and vice versa. The relative reduction of pore space for each fluid implies a reduction in effective permeability for each fluid. We express these statements in the form of two constitutive equations, one for each fluid [
1],
Here,
and
are the pore velocities of the wetting and non-wetting fluids,
K is the (isotropic) permeability of the porous medium,
and
are the viscosities of each fluid,
is the porosity of the porous medium,
and
are the fluid pressures,
and
are the wetting and non-wetting saturations, and
and
are the relative permeabilities of the two fluids. It is an essential
assumption in this theory that these two quantities are functions of the saturations alone. The saturations
and
are defined as the fraction of pore space occupied by each fluid so that
The difference in pressure between the two fluids is defined as the capillary pressure curve
,
It is an assumption that the capillary pressure curve only depends on the saturation
. The capillary pressure curve is a particularly difficult quantity, both conceptually and in terms of measurement (see, e.g., [
10]). We define the average pore velocity
as
i.e., we are using a volume average. This makes sense since we are assuming the fluids to be incompressible,
Volume conservation then gives
where
t is time. This set of equations is closed as long as
,
, and
are provided. In an industrial context, Special Core Analysis (SCAL) forms the work flow for obtaining this information.
3. Homogenization
It is well known that assuming the three constitutive functions depend only on the saturation is generally not correct. The relative permeabilities do depend not only on the saturation, but also how the fluids arrange themselves in the porous medium, and this depends, in turn, on the flow rate. The capillary pressure curve is highly hysteretic, signaling that there are missing variables. However, it has turned out to be difficult to go beyond this almost-90-year-old phenomenological framework. The dominating approach is based on homogenization. This approach may be divided into two branches: that which focuses on momentum transfer, and that which focuses on energy transfer. In the first case, one starts with the hydrodynamic equations on the pore scale [
11,
12,
13,
14,
15,
16], and in the second case, one sets up a thermodynamic description at the pore scale [
17,
18,
19,
20]. Then comes the coarse-graining, i.e., spatial averaging. There are several ways of performing this; perhaps that of Whitaker is the most well-known [
21,
22]. It is based on equating the average of the gradient of a variable associated with pore space to the gradient of the average variable plus an integral over the surface area of the pores. Since the surface area of porous media scales as the volume (i.e., the surface area is
extensive, the defining property of porous media), this integral does not vanish as one goes up in scale. We split the variable appearing in the surface integral into an average part and a fluctuating part. This leaves us with having the average, and gradients of the average expressed in terms of the fluctuations of the original variable. The last step is to make an independent assumption on how the fluctuating variables is related to the averages—a closure assumption. With this, the equations between the original, pore-scale variables have been turned into equations between spatial averages of these variables.
Whereas the first of these two approaches is based on momentum transfer, the second approach is based on energy transfer, i.e., thermodynamics. One starts with a thermodynamic description on the pore level which is then homogenized. This approach has developed into Thermodynamically Constrained Averaging Theory (TCAT) [
23,
24,
25,
26].
A recent paper by McClure et al. [
27] attempts to derive the relative permeability equations from an energy budget based on thermodynamic considerations and homogenization. The relative permeability equations do appear as a first term in a series expansion. However, it is not shown in [
27] that the higher order terms are negligible.
The topology of a geometric object such as a porous medium may be described using the four
Minkowski functionals: volume, surface area, mean curvature, and the Euler characteristics. The
Hadwiger theorem states that the Minkowski functionals form a complete basis set for all extensive functions that are invariant with respect to the orientation of the object [
28]. The use of this theorem to characterize the free energy of fluids in a porous medium combined with homogenization forms another approach to the scale-up problem [
29,
30,
31,
32]. Homogenization as seen so far is based on
spatial averages only. McClure et al. [
33,
34] emphasize that there is also time which one should average over and that different processes work on different time scales.
An approach circumventing the complexities associated with homogenization is based on classical non-equilibrium thermodynamics [
35,
36,
37,
38,
39,
40]. By using the extensiveness of the internal energy of the fluids in the porous medium, the Euler theorem for homogeneous functions allows for defining thermodynamic variables such as pressure and chemical potentials on the Darcy scale. Gradients in the intensive variables are introduced, and the machinery of classical non-equilibrium thermodynamics [
35,
36] is then set in motion. The underlying homogenization is somewhat hidden in this approach, but it is underlying the way a Representative Elementary Volume (REV) is defined and used.
The main practical difficulty with homogenization is the complexity of the ensuing equations and the large number of variables that are necessary. The root of this difficulty is that homogenization can only produce averages over the original variables, and thus cannot produce new types of variables which go hand-in-hand with capturing emergent properties [
41].
4. Statistical Mechanics
The essence of these efforts has been to find a description of immiscible and incompressible two-phase flow in porous media at scales where the medium acts as a continuum. Including compressibility would necessitate switching from conserved fluid volume to conserved fluid mass. It would also couple the theory to ordinary thermodynamics through equations of state for the compressible fluids. We wish to avoid these complications at the present stage. This is an example of
upscaling. The situation is thus that we have a continuum scale phenomenological theory; a relative permeability theory that is simple enough to be used in practical situations, but which is approximate. Attempts at going beyond this theory has, however, not led to practical applications due to the complexity that arises. However, if we look beyond the problem we discuss here, there is an example of successful upscaling that is very familiar: The scale-up from a molecular description to thermodynamics based on statistical mechanics. At molecular scales, the position and momentum of each molecule are the variables that describe a monoatomic gas. This works even if we are dealing with millions of molecules in a molecular dynamics simulation [
42]. However, it is rather of the order
molecules that are relevant in, e.g., chemistry. A molecular description at such scales is useless. Here,
emergent variables such as temperature and pressure adequately describe the gas. Statistical mechanics converts the molecular description to thermodynamics which not only contains emergent variables, but also relations between them. These variables and their relations have no meaning within a molecular description.
In the mid-fifties, Jaynes generalized statistical mechanics from being a theory for molecular matter to being based on information theory [
8]. This was performed by replacing Boltzmann’s statistical interpretation of thermodynamic entropy by Shannon’s generalized information entropy [
43]. The information entropy is a quantitative measure of what is
not known about a system. Suppose we have a stochastic process that can produce
N possible outcomes. We number the outcomes from 1 to
N, assuming a probability
for the
ith outcome,
. A quantitative measure of our ignorance about this process must be independent of how we group events together. For example, if we consider composite events such as
, i.e., the probability that an event
i is followed by an event
j, then the information entropy must remain the same. If we know nothing about the process, its information entropy must be at a maximum, since our ignorance is maximal. In order to utilize this, Shannon generalized to
N outcomes the Laplace principle of insufficient reason [
44], which states that the optimal choice of probabilities for a stochastic process with
two possible outcomes is to assign them equal probability. Hence, the optimal choice when there are
N outcomes is to assign all probabilities the same value,
. There is only one function that can be constructed from
with these properties,
which is then the information or Shannon entropy. Jaynes then posed the question: what happens if we
do know something about the system? Suppose we know the average of the outcomes,
Generalizing the principle of insufficient reason further, Jaynes proposed that the probabilities
in this case should be those that maximize the information entropy (
9) given a fixed value for
(Equation (
10)).
Jaynes provided a set of circumstances for his generalized statistical mechanics to be applicable. Hansen et al. [
9] demonstrated that these circumstances are met for steady-state immiscible two-phase flow in porous media, and hence proceeded to construct such a statistical mechanics. The generalized statistical mechanics will produce a thermodynamics-like framework at large scales. This thermodynamic-like framework is the end goal of this approach.
Suppose we have a cylindrical pore sample as shown in
Figure 1. Two immiscible fluids enter at the bottom and leave at the top. The side walls are close off. We assume that the pore structure and chemical composition of the matrix to be statistically uniform throughout the sample. At some distance from the lower edge of the sample, one may assume that the fluids have mixed sufficiently to assume steady-state flow. That is, if we make transversal cuts through the sample, the structure of the porous medium and the distribution of fluids in the pore space to be statistically uniform: Comparing one cut to another, we will not be able to determine which is closest to the inlet.
Figure 1 shows one such cut. Within this cut, we pick out a
Representative Elementary Area (REA), which is large enough to represent the statistics of the sample and small enough to have the flow fluctuate. There is an volumetric flow rate
passing through the REA which may be split into a volumetric flow rate of the wetting fluid
and the volumetric flow rate of the non-wetting fluid
, i.e.,
The area of the REA is
A. An area
cuts through pore space. This area may be divided into the area cutting through the pore space filled with wetting fluid,
and the area cutting though the pore space filled with the non-wetting fluid,
, and we have that
At a given time for a given REA, the fluid configuration, characterized by the velocity field and where the fluids are, is
X. The quantities that describe the REA depend on
X, so that we have
,
,
,
,
, and
. Of course,
is not dependent on the velocity field, nor the distribution of the two fluids, but only on the shape of pore space. Let us denote
the probability density to find fluid and pore space configuration
X. We define a
configurational entropy,
The probability density
is
continuous, so that we are dealing with differential entropy [
45] in Equation (
13). Another way of dealing with the transition from discrete to continuous systems is that of Jaynes [
46].
We assume that we know the averages (in time and position of the REA) of the variables just described, i.e.,
The variable
is related to the volumetric flow rate
, but we will defer its definition until Equation (
30).
Following the Jaynes maximum entropy principle, we maximize the entropy (
13) given the constraints (
14) to (
16), finding that
where
is the normalization factor, also known as the partition function. Three new
emergent variables have appeared,
,
, and
. We write the partition function as
The partition function is in some sense the “end product” of a statistical mechanics approach to a problem. It is the generating function for the probability distribution for microscopic configurations. With it, all macroscopic averages may be calculated.
In ordinary statistical mechanics, a Hamiltonian, i.e., a microscopic energy function is necessary input for calculating the partition function. In the present problem we have three pore-level functions,
,
and
. The problem in ordinary statistical mechanics, is that even for seemingly simple problems such as the two-dimensional Ising model for magnetic systems, calculating the partition function may be extremely difficult (cfr. Onsager’s calculation of the partition function for this system [
47]). The problem is surely no less difficult in the porous media context. Perhaps, it is even worse in that we do not have good models for the three microscopic functions in contrast to ordinary statistical mechanics where model Hamiltonians are legio.
A byproduct of the statistical mechanics approach is the emergence of a set of thermodynamics-like relations between the REA-scale variables. This framework will be in place whether it is possible to calculate the partition function or not. We will now develop this thermodynamics-like framework for immiscible two-phase flow in porous media.
We start by calculating the entropy
S by inserting Equation (
17) in Equation (
13) and using Equation (
19). We obtain
We rewrite this equation as
It is convenient to define the new variables
We may then write Equation (
21) as
where we have used that this is a Legendre transform (assuming convexity of the involved functions), since
We have finally arrived at defining the volumetric flow rate
in Equation (
11),
and the relation between
and
is then
We see that
(Equation (
22)) plays the same role as temperature in ordinary thermodynamics. Hansen et al. [
9] named it
agiture, which stands for
agitation temperature. They also named
(Equation (
27)) the
flow derivative. It is analogous to
chemical potential in ordinary thermodynamics. Lastly,
, defined in Equation (
28), they called the
flow pressure. It has no equivalent in ordinary thermodynamics. We note that the unit of the agiture is flow rate, whereas the unit of the flow derivative and the flow pressure is velocity.
6. Emergent Variables
The three variables , , and emerge as a result of the scale-up process. They are the conjugate variables to the entropy S, the wetting area , and the pore area , respectively. How are we to interpret them?
We follow Hansen et al. [
9], and consider a cylindrical porous medium (see
Figure 2). We imagine a plane running through the cylinder axis parallel to the average flow direction. On one side of the plane, the porous medium has one set of properties; on the other side of the plane, it has another set of properties. The difference may be in chemical composition of the matrix, or it may consist of different porosity or topological structure. We name the two halves “A” and “B”, respectively. We assume the two halves to be statistically homogeneous along the axis.
We now assume that two immiscible and incompressible fluids are simultaneously pushed through the porous cylinder. Away from the edge where the two fluids are injected, the flow is in a steady state. This means that the flow statistics is invariant along the axis. However, it does not mean that the fluid–fluid interfaces do not move. At sufficient flow rates, they do and as a result, fluid clusters will merge and break up.
As the statistical distributions describing the flow is invariant along the flow axis, the configurational entropy
S is invariant along this axis. As shown by Hansen et al. [
9], this means that the agiture in sectors A and B,
and
, are equal,
In ordinary thermodynamics, the rule is that the conjugate of a conserved quantity is constant in a heterogeneous system at equilibrium. This is a generalization of the argument for the temperature being the same everywhere in a system at equilibrium as the entropy is conserved and the temperature is its conjugate. This reasoning may be repeated for the flow problem.
Neither
nor
are conserved along the flow axis at the pore scale. This would imply that
and
. This remains true at the continuum scale for
. However,
is conserved at the continuum scale; see Equation (
7). This is an emergent conservation law. We therefore conjecture that
6.1. Agiture
The agiture plays the role of a temperature in the thermodynamics-like formalism that we are developing. But, can we express it in terms of more familiar variables?
We note first that in the formalism we have developed in
Section 4 and
Section 5, there is one variable that is missing: the pressure
P. Intuitively, one would expect the agiture to be related to the pressure gradient
: a higher pressure gradient should indicate a higher agiture.
Figure 3 shows a cylindrical porous medium consisting of two halves A and B. They have different properties such as porosity, chemical composition of the matrix, or the pore spaces have different topology. At the bottom one third of the porous cylinder, the boundary between the two halves is impenetrable. This is indicated by the dark section of the boundary. Above, the two halves are in direct contact. We inject the immiscible fluids into each of the halves A and B at the bottom. We may perform this by injecting at different volumetric flow rates
and
. This gives rise to flow derivatives
and
, and agitures
and
in the two halves far enough from the inlet for the flow to be in a steady state. The pressure gradient will then point along the axis of the cylinder, the
z-direction, and we will in the following use the notation
for the gradient. We find a pressure gradient
and
in A and B, respectively. Further into the cylindrical sample above the impenetrable wall, the flow will adjust to a new steady state characterized by equal agiture
and flow derivative
, and in both halves according to Equations (
38) and (
39). Likewise the pressure gradient
must be equal in the two halves since, there cannot be any net flow in either direction across the boundary between the two halves, apart from local fluctuations.
Since the variables,
and
on one side, and
on the other side, form alternate descriptions, we must assume that they are related. The simplest relation between them we may write down is
The reason for the minus sign in front of the term is due to the flow direction is the opposite of the pressure gradient direction. We note that the unit of is viscosity, and that of is viscosity times area.
We note that Equation (
36) defines the seepage velocity
where
rather than the flow derivative
is a control variable. At the same time, the seepage velocity depends on the local pressure gradient,
. Hence, we conjecture that
, so that
We note that
, defined in Equation (
29), may be written as
where we have also used Equation (
36). We see that this is a constitutive equation relating seepage velocity to local pressure gradient, saturation, and porosity.
To be concrete, we return for a moment to
Section 2 and the constitutive equations forming the core of relative permeability theory, (
1) and (
2), which give
The agiture is the conjugate variable to the entropy. We may express it as
The entropy is given by
or, in terms of the entropy density,
We note that the
differential mobility is defined as
Using the relative permeability constitutive Equation (
43), we find the mobility in this case to be
Mobility and differential mobility are equal in this case, as the velocity is linear in the pressure gradient.
Comparing Equations (
46) and (
47), we see that
Since we are dealing with
differential entropy, it is not a problem that it is negative. It is surprising that the differential mobility and the entropy should be related.
Equation (
41) relates the agiture
and the pressure gradient
and the way we have argued is by demonstrating that the pressure gradient behaves as one would expect an agiture (=agitation temperature) should do. However, one could test Equation (
41) directly by measuring the left hand side and compare it to the right hand side. This is difficult, as it would entail measuring the configurational entropy and then using Equation (
44), and measuring entropy is also difficult in ordinary thermodynamics.
6.2. Flow Derivative
Hansen et al. [
48] defined the two
thermodynamic velocities as
where the control variables are
,
, and
, defined in (
12), making
a dependent variable. Changing the variables
, these two equations may be written as
The flow derivative
, which is the conjugate of the wetting area
, and thereby also the saturation
, is given by
Hence, Equation (
53) may be recognized as a Legendre transformation substituting
,
In other words, the non-wetting thermodynamic velocity is the Legendre transformation of the average seepage velocity with respect to the saturation.
6.3. Flow Pressure
The flow pressure
is the conjugate of the pore area
, and thereby the porosity
,
There are no conservation laws associated with this variable.
We expect the flow pressure to be of less practical use, as we expect that the flow rate to be proportional to the pore area . This makes the Legendre transform between and break down due to lack of convexity. The flow pressure will nevertheless play a role, e.g., when porosity gradients are present.
7. Seepage Velocities and the Co-Moving Velocity
The thermodynamic velocities defined in Equations (
50) and (
51) are not the seepage velocities, which we define as
These are the velocities that measured in the laboratory, whereas the thermodynamic velocities are not. We rewrite Equation (
11) as
We express the saturations in terms of the variables
and
,
and
leading to Equation (
3). We may then write Equation (
59) as
where
, the average velocity, is defined in Equation (
36).
We now turn to the thermodynamic velocities, Equations (
50) and (
51). The average flow rate
obeys the Euler scaling relation,
We then have from the Euler theorem for homogeneous functions,
Dividing this equation by
gives
Comparing Equations (
62) and (
65),
This equation does not imply that
and
. Rather, the most general relation between the thermodynamic and seeping velocities are
where
is the
co-moving velocity [
48,
49,
50]. We may combine these two equations with Equations (
52) and (
53) to find
By taking the derivative of Equation (
66) with respect to
, and using Equations (
67) and (
68), we find
We now return to Equation (
55), which may now be expressed in terms of the seepage velocity
, rather than the thermodynamic velocity
,
signifying that
are the natural variables for the co-moving velocity. Measurements of the co-moving velocity suggest that it has the simple functional form [
51,
52,
53],
based on analysis of relative permeability data, on dynamic pore network modeling, and on lattice Boltzmann simulations on reconstructed sandstones.
It has recently been realized that the co-moving velocity has an equivalent in the thermodynamics of two-fluid mixtures [
54], where a
co-molar volume ties the partial molar volumes of a binary mixture together with the Voronoi volumes of each of the fluids in the mixture. When plotting the co-molar volume against the variable corresponding to
, it is
nearly linear, but not quite.
We note that the thermodynamic velocities
can be found by knowing
alone; see Equations (
52) and (
53). The seepage velocities, on the other hand, requires additional knowledge, i.e.,
and
, which are given by Equations (
69) and (
70). They provide a two-way mapping,
9. Discussion and Conclusions
The aim of this review has been to present the central ideas of the thermodynamics-like formalism for immiscible two-phase flow in porous media that was first introduced by Hansen et al. [
48] in the context of steady-state flow. However, the ultimate goal of this approach is to be able to handle flow that is not in a steady state. This means handling gradients in the conjugate variables to configurational entropy, saturation and porosity: agiture
, flow derivative
, and flow pressure
, turning the equilibrium thermodynamics-like formalism into a non-equilibrium thermodynamics-like formalism.
We noted in
Section 4 that actually calculating the partition function (Equation (
19)) may be impossible in the present context. The consequence of this is that we are unable to derive directly the constitutive equation
from the pore-level physics. It must be found by other means, and then used as input in the thermodynamics-like formalism.
We have conjectured here that the agiture, the temperature-like emergent variable conjugate to the configurational entropy, is proportional to the pressure gradient. A surprising consequence of this conjecture is that the differential mobility of the fluids is directly related to the entropy: higher differential mobility means lower configurational entropy.
The question of what are the control variables and the dependent variables is central, and much of the thermodynamics-like formalism concerns how to switch between the extensive variables
,
, and
, and their intensive conjugates,
,
, and
. However, there was already a choice made when the three extensive variables were picked. We could have made other choices. In this review, we discuss, for the first time, another choice:
,
and
. Without developing a Jaynes-type statistical mechanics based on this choice, we nevertheless explore aspects of the ensuing thermodynamics-like formalism. We find a set of equations that parallel those found in [
48], but where the fractional flow rate
rather than the saturation
is a control variable. Since this is the natural variable in core flooding experiments, not the saturation, such a formalism is necessary.