Abstract
The long-standing question on the adequate description of multiphase flow in porous media may be ultimately decided based on the ability to estimate model parameters with sufficient accuracy that make the models distinguishable. Since the most-common Darcy scale multiphase flow models all use a somewhat phenomenological relative permeability or resistance factor formulation, the key question is what the associated uncertainty really is when derived from flow experiments by inverse modeling. In this work, a recently developed workflow for systematic assessment of uncertainty was used to analyze the impact of the choice of relative permeability models and associated uncertainty. In an exemplary fashion, the Corey and LET relative permeability parameterizations were compared. The choice of Corey and LET models in the inverse modeling workflows showed differences in the derived relative permeability relations. The Corey parameterization is found to be more restrictive and imposed additional constraints on parameters. For example, varying the connate water saturation and residual oil saturation did not improve the match with experimental data. The pressure drop, saturation profiles and the capillary pressure–saturation relationship constrained the solution and imposing additional constraints on, e.g., residual oil saturation has very little impact on the result. In contrast, the LET function provided more degrees of freedom in order to accommodate the shape of the relative permeability curves. The findings also suggested that both Corey and LET models may not necessarily provide optimum parameterizations of the experimental data. The cross-correlations of fit parameters and non-Gaussian residuals indicated that we were still dealing with a phenomenological parameterization that is not yet the fully adequate description of the data. This may be the starting point for a comparison of different flow models beyond the uncertainty imposed by the choice of model parameterizations. Future work is aimed at assessing whether better choices in interpretation workflows and optimized experimental workflows can minimize these issues.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
The two-phase Darcy equations are almost exclusively used to describe multiphase flow in a numerous applications ranging from hydrology (Bear 1972, 1970), contaminant hydrodynamics (Bear et al. 1996), petroleum engineering (Dake 1978) and carbon capture and sequestration (CCS) (Bui 2018) in the geosciences domain to transport in gas diffusion layers in electrocatalytic devices such as fuel cells (Simon et al. 2017), electrolysis and other novel concepts where CO2 is converted into base chemicals (Kondratenko et al. 2013). The multiphase Darcy equations are an engineering approach where Darcy’s law (Darcy 1856; Bear 1972) for single-phase flow at the continuum scale (Bear 1972; Bachmat and Bear 1987) which only holds for creeping flow at low Reynolds numbers (Hassanizadeh and Gray 1987) is extended to two or more phases (Richards 1931; Wyckoff and Botset 1936; Muskat and Meres 1936; Leverett 1941; Bear 1970) in a pragmatic fashion. Darcy’s law for single-phase flow is a law in a classical sense, i.e., even though empirically introduced by Henry Darcy (1856), it can be derived rigorously from upscaling Stokes flow at the pore scale to the Darcy scale for instance by averaging (Whitaker (1986)) or homogenization (Whitaker 1986). In contrast, the equations commonly used for two-phase flow, i.e., the two-phase Darcy equations, are just a phenomenological extension of the single-phase flow without a rigorous basis in the multiphase flow space. As a result of this simplification, empirical parameters are introduced such as relative permeability \(k_{r} \left( {S_{w} } \right)\) (or inverse resistance factors \(R_{\alpha }\)) and capillary pressure–saturation functions \(p_{c} \left( {S_{w} } \right)\). As shown in Fig. 1, these are not predicted within the framework of the two-phase Darcy equations (Bear 1972, 1970) and using alternative formulations by Hassanizadeh and Gray (1993), Gray and Miller (2014), Doster et al. (Doster et al. 2010).
The relative permeability relations have to be derived from flow measurements (Anderson 1987; Berg et al. 2008) or computed from a microscopic approach such as Digital Rock (Blunt et al. 2013; Alpak et al. 2019; Ramstad et al. 2019). In either case, relative permeability is determined from the phase fluxes and pressure gradients (Element and Goodyear 2002) which are then interpreted in the framework of the chosen flow equations. The relative permeability-saturation functions are the key parameters for practical situations, ranging from the injectivity of CO2 Berg et al. (2013) and the economics in hydrocarbon recovery to the efficiency of fuel cells (Simon et al. 2017). Since relative permeability depends significantly on the pore structure of the porous medium and the respective spatial distribution of wetting properties (Anderson 1987; Lin et al. 2019), for many applications relative permeability needs to be determined on a case-by-case basis which is usually accompanied with a significant experimental effort which can take in the petroleum industry several months per sample, starting with obtaining the preparing rock samples to executing the experimental flow measurements themselves. The results are then often parameterized with analytical functions which are used (after an upscaling step) in numerical simulators for, e.g., field-scale simulations of petroleum reservoirs.
Due to their somewhat empirical origin, it is—depending on the choice of the flow model—unclear what functional form the relative permeability functions should have and which physical parameters they should be based on. In the two-phase extension of Darcy’s law the common practice is to consider relative permeability to be a function of (wetting phase) saturation \(S_{w}\) which is somewhat intuitive because it is clear that the presence of a non-wetting phase in the pore space would hinder the flow of the wetting phase, and vice versa. It is, however, important to note that the original publications on the two-phase Darcy formalism (Richards 1931; Wyckoff and Botset 1936; Muskat and Meres 1936; Leverett 1941) did not say that relative permeability should be a function of saturation only.
There is a range of parameterizations such as the Brooks–Corey model (Brooks and Corey 1964) which is based on a capillary tubes approximation of the pore space (Tuller and Or 2001; Bear et al. 1987; Dane et al. 2011) (also with extensions to anisotropic media (Bear et al. 1987)) and use the saturation \(S_{w}\) as only state variable (McClure et al. 2018). Depending on the method, the two-phase Darcy equations can be formulated using viscous transport law with a similar structure as Poiseuille flow where \(k_{r}\) appears as a sort of effective transport coefficient or hydraulic conductivity factor. Nevertheless, they also include implicit effects of capillarity that reflects the connected pathways of wetting and non-wetting phases partition the pore space (Tuller and Or 2001). Also, the pore scale flow fields in 3D rock have a higher degree of similarity with sphere packs than tubes (Berg and Wunnik 2017) which raises the question of applicability of the physical picture of capillary tubes. On the other hand, relative permeability also includes flux contribution of capillary and capillary-inertial controlled pore scale mechanisms such as ganglion dynamics which provide flux without permanent connectivity (Rücker 2015, 2019; Zou et al. 2018). The Corey (Corey 1954) and LET models (Lomeland et al. 2005) are in some sense variants of the Brooks–Corey model which differ in functional form and number of parameters but are generalized without any close connection to an underlying physical model.
Recently the question was raised how the choice of the relative permeability parameterization affects the uncertainty of model predictions (Valdez et al. 2020; Berg et al. 2020). If, for instance, the Corey relative permeability parameterization was on the basis of first principle arguments, namely, the “correct” functional form, then in experiments we could directly determine irreducible saturations and endpoint relative permeability, which would reduce the degrees of freedom to two, i.e., the two Corey exponents. However, due to the phenomenological origin of the two-phase extension to Darcy’s law, there is no a-priori correct relative permeability parameterization. Therefore, the choice of the relative permeability parameterization becomes part of the uncertainty consideration itself. And indeed, different functional forms would be observed to result in different uncertainty ranges (Berg et al. 2020). One could even ask the question whether some of the uncertainty is generated by those who make the choice which functional representation is used. There are alternative approaches where, instead of specific analytical forms, more general spline and NURBS interpolations for tabulated relative permeability data are used (Bui 2018; Okano 2005). That circumvents to some extent the necessity to make a choice of a specific function while providing a form that is still suitable for numerical modeling, and even for inverse matching in an automated fashion (e.g., for Markov chain Monte Carlo (Bui 2018; Valdez et al. 2020)) because key properties such as monotonicity are preserved. However, the spline interpolation has still many degrees of freedom from an uncertainty reduction perspective even though the general goal is to reduce the number of model parameters as much as possible. Potential approaches to reduce the degrees of freedom would be to ensure continuity and monotonicity for the second- and third-order higher derivatives.
The common denominator is that for a given flow model, e.g., two-phase Darcy, there is additional uncertainty arising from the choice of the parameterization of relative permeability. The difficulties apply not only for the two-phase Darcy extension but in principle also for most of the alternative formulations for describing multiphase flow in porous media which are either based on more rigorous thermodynamic principles (Hassanizadeh and Gray 1993; Gray and Miller 2014; Niessner et al. 2011) or accounting for mass exchange between connected and disconnected phases (Doster et al. 2010). Depending on which exact formulation is used, there are consequences for primary variables (Bear and Nitao 1995) and parameters which relative permeability depends on. In the thermodynamically based formulations by Hassanizadeh and Gray (1993) and thermodynamically constrained averaging theory (TCAT) [21, 94, 95], relative permeability would in the most basic scenario depend on saturation and saturation gradient (Niessner et al. 2011), while in two-phase Darcy formulation, it is commonly assumed to depend on saturation only (Alpak et al. 1999). Even though that would have implications, i.e., that steady-state and unsteady-state relative permeability would be different; nevertheless, in the alternative formulations the exact form of the relative permeability function is not defined either, because they largely rely on Darcy scale concepts. In the absence of a causality-based microscopic theory which also include the flux of disconnected phases from pore scale dynamics (Rücker 2015, 2019; Zou et al. 2018; Armstrong et al. 2016), upscaled from pore to Darcy scale in a rigorous way, our ability to select the “best” set of multiphase flow equations for a specific application will always depend strongly on how well all involved parameters such as relative permeability and capillary pressure can be constrained by experiments and minimize the overall uncertainty.
There are many practical situations where the uncertainty range of relative permeability is of central importance. For instance, in many improved and enhanced oil recovery processes the incremental improvement of recovery by applying, e.g., an IOR concept or EOR agent, needs to be demonstrated in comparison with a regular water flood by laboratory experiments such as core floods. While many studies use the incremental recovery in a tertiary-mode core flood as evidence, that is actually not sufficient because of a range of secondary effects such as change in capillary end effect (Huang and Honarpour 1998) by the EOR agent that leads to incremental recovery in a core flood but not in the field. The proper evidence needs to be provided by extracting the \(k_{r} \left( {S_{w} } \right)\) and \(p_{c} \left( {S_{w} } \right)\) functions from the IOR/EOR flood and from the normal water flood and assess the impact of the IOR/EOR process on field scale on that basis (Masalmeh et al. 2014; Sorop et al. 2015). That requires inverse modeling of the core floods with and without the IOR/EOR agent (Masalmeh et al. 2014). A prominent example is the low-salinity effect where brines with controlled ion contents may in certain cases lead to an incremental recovery compared with water flood using the field brine. The incremental recovery is sometimes only 5–10% which is then a challenge on the accuracy of the core flooding experimental protocols including the numerical interpretation by inverse modeling (Sorop et al. 2015; Subbey et al. 2006).
A particular problem is analytical inversion of even the most basic flow equations, i.e., the two-phase Darcy equations exist for \(p_{c} = 0\) but are for the most relevant situations, i.e., \(p_{c} \ne 0\) not possible or practical. Analytical inversion is only possible for limiting cases, e.g., assuming a 1D homogeneous setting and zero capillary pressure (Johnson et al. 1959) which does not take account of capillary end effects (Huang and Honarpour 1998) and hence can lead to significant mis-interpretations (Masalmeh et al. 2014; Sorop et al. 2015). Even though some of these aspects can be addressed by more sophisticated analytical inversion methods (“intercept method”) (Gupta and Maloney 2016; Reed and Maas 2019), a multirate experimental protocol for each fractional flow is required and the capillary end effect (Gray and Miller 2014) needs to be fully contained within the core sample which is not always the case (Rücker 2015). General situations that involve capillary effects, heterogeneity and other experimental realities such as integrating several individual experiments that only in combination access the whole relevant saturation range from irreducible wetting to irreducible non-wetting saturation, can only adequately address by inverse modeling (Berg et al. 2020; Masalmeh et al. 2014; Sorop et al. 2015; Maas and Schulte 1997; Maas et al. 2011; Chen and Ruth 1993; Lenormand et al. 2016).
An inverse modeling (assisted “history matching”) approach is more versatile and universally applicable. In inverse modeling the numerical solution of the governing flow equations including capillarity pressure \(p_{c} \ne 0\) (Rücker 2019; Zou et al. 2018) (that also includes capillary end effects (Huang and Honarpour 1998)) are matched to experimental data by adjusting the model parameters. In practice, it is still common practice to “manually” interpret relative permeability measurements and only report the mean values; uncertainty assessment around the measurements and interpretation is often dismissed. There are only relatively few cases where error bars are reported (Berg et al. 2008, 2013; Alhammadi et al. 2019; Lin et al. 2019; Valdez et al. 2020) which show in most cases “forward” estimates of experimental uncertainties using the error propagation method (Berg et al. 2008) or consequences of heterogeneity (Okano 2005). They do not include the interpretation-related model-based and parameterization-based errors (Berg et al. 2020). However, a realistic uncertainty range may have significant implications in practice because it may make the difference between stable and unstable displacement (Berg and Ott 2012) or have economic implications. It is, therefore, a very much open question: How significant the interpretation-based uncertainty in multiphase flow studies is in relation to the purely experimental error.
Also assisted/automated approaches exist (Berg et al. 2013; Alhammadi et al. 2019; Lin et al. 2019; Valdez et al. 2020; Jenei 2017) and even recently machine learning approaches (Zhao et al. 2020); however, these methods focus typically on the matching aspect and less on the uncertainty quantification and aspects such as non-uniqueness of the match. Inverse modeling can be used to assess the full range of uncertainties (Berg et al. 2020). Inverse modeling is typically performed using a numerical two-phase Darcy simulator to model the experiment where the unknown parameters such as relative permeability such that a match with the experimental data is achieved. Traditionally, that has been achieved by manually varying the parameters of interest until the numerical model matches the experimental data (Sorop et al. 2015). Since perhaps a decade, there are also assisted and automated history matching solutions available for SCAL experiments (Valdez et al. 2020; Taheriotaghsara 2020; Manasipov and Jenei 2020; Maas and Schulte 1997; Maas et al. 2011, 2019; Chen and Ruth 1993; Lenormand et al. 2016; Taheriotaghsara et al. 2020) which are ultimately based on constrained optimization methods where a cost function quantifying the mismatch between model output and experimental data is minimized. Recent research revealed that such assisted or automatic history matching workflows could result in a significant degree of uncertainty caused by non-uniqueness of the inversion problem itself but also inter-correlation between fit parameters and other interpretation workflow-based effect (Berg et al. 2020).
There is a more recent trend in the literature to consider the inverse modeling workflow of core flooding experiments as a more general Bayesian inversion problem (Valdez et al. 2020; Manasipov and Jenei 2020), and methods such as Markov chain Monte Carlo (Valdez et al. 2020; Brooks 1998; Subbey et al. 2006) are employed. This has a very practical aspect, i.e., automatic interpretation of flow experiments to determine relative permeability (Maas and Schulte 1997; Maas et al. 2011; Chen and Ruth 1993; Lenormand et al. 2016), but the methodology could be also used to address much more fundamental questions, for instance, the long-standing problem which set of flow equations is appropriate or sufficient for two-phase flow in porous media, i.e., the phenomenological two-phase Darcy equation vs. the more rigorously derived thermodynamic equations such as Hassanizadeh and Gray (1993) or TCAT (Gray and Miller 2014). However, Bayesian inversion methods which have been applied to many problems in the domain of geosciences such as geophysics have in common that the result can be highly non-unique unless constraints are rigorously applied in terms of prior knowledge or extra data. Without appropriate constraints it is often not possible to distinguish equally likely scenarios.
In the domain of 2-phase flow, the classical example is the question of the viscous coupling terms (sometimes also referred to as relative permeability cross-terms) where a pressure gradient applied for the one phase can cause a flux of the other phase and vice versa. From the principles of fluid mechanics, i.e., stress continuity at fluid–fluid interfaces at pore scale flow, nonzero viscous coupling terms are expected. However, in a set of systematic studies Ayub and Bentsen came to the conclusion that the framework of 2-phase Darcy flow does not provide sufficient constraints that would allow to uniquely identify and quantify the coupling terms experimentally (Ayub and Bentsen 2005; Bentsen 2005). One of the underlying reasons is that there is too much flexibility in the phenomenological model parameters such as relative permeability with such a degree of uncertainty that masks the underlying flow physics. Without constraining relative permeability more and making a more rigorous assessment of the consequences on the uncertainties with which they can be determined from experimental data, it will be very difficult to provide experimental proof for the validity or preference of, e.g., a certain form of fundamental flow equation. To bring it to the point: without assessing and constraining the uncertainty of key parameters in flow models, different flow models become indistinguishable.
That raises the more general question on the resulting uncertainties of inverse modeling workflows, in particular with respect to the choice of relative permeability parameterizations which is a model-based uncertainty. Model-based uncertainties depend on the formulation of the inversion problem which includes the parameterizations for the relative permeability and capillary pressure, and the cost function for inverse modeling using optimization methods or the likelihood function for Bayesian inversion.
In this work, we use a recently developed inverse modeling workflow (Berg et al. 2020) to present a strategy with which some of the model-based uncertainties can be addressed systematically. The assessment is based on the two-phase Darcy equations which is the least complex form. We focus on two areas: (1) uncertainties arising from different weights of experimental data in the cost function and (2) the choice of the relative permeability parameterization.
2 Methods and Materials
The overall inverse modeling workflow is illustrated in Fig. 2 where experimental data that were obtained from core flooding experiments consisting of production curve, pressure drop, and saturation profiles (depending on the exact type of experiment) are matched by a numerical model by tuning the respective parameters of the flow model such as the relative permeability \(k_{r}\). An underlying assumption of the most-common interpretation scheme is that the displacement occurs in one dimension (1D), i.e., \(x\) and that the porous medium is homogeneous. More complex interpretations are possible, e.g., in 2D, also taking rock heterogeneity into account (Berg et al. 2013) which introduces more complexity and requires more independent measurements for interpretation. The focus of this work is on more conceptual issues of the interpretation methodology which is already present in the 1D homogeneous case.
3 Data Sets and Core Flooding Experiments
Established methods to determine the relative permeability functions are unsteady-state (USS) or steady-state (SS) core flooding experiments that are done in rock samples. For most applications in petroleum engineering, the process of interest is the imbibition. In respective unsteady-state experiments (USS), brine is injected displacing crude oil. After brine breakthrough, there is simultaneous production of crude oil and brine. In steady-state experiments (SS), brine and crude oil are co-injected where the fractional flow \(f_{w}\) which is the ratio of wetting phase flux over total flux is continuously increased from zero (100% non-wetting phase) to 1 (100% wetting phase) injection.
The wetting phase is typically a field-specific saline brine, and the non-wetting phase is a field-specific crude oil. Cylindrical rock samples, “core,” are first cleaned, then saturated with brine, and de-saturated in a primary drainage process with oil in a centrifuge to reach the connate water saturation \(S_{w,c}\).
The data used in Sect. 0 are a synthetically created data set for an unsteady-state experiment where capillary pressure \(p_{c} = 0\). For generating the synthetic data set a Corey relative permeability representation with \(S_{w,c} = 0.1\), \(S_{n,r} = 0.2\), \(k_{r,w}^{0} = 0.5\), \(k_{r,n}^{0} = 0.9\), \(n_{w} = 2.0\) and \(n_{n} = 3.0\) is used. Using the assumed relative permeability parameters, production and pressure gradient across the core length are calculated numerically using an explicit approach with an upwind numerical scheme (LeVeque 1990). Since the solution of the flow equations for \(p_{c} = 0\) (Buckley and Leverett 1942; Welge 1952) does in terms of production curve in pore volumes (PV) and saturation profiles \(S_{w} \left( x \right)\) not depend on permeability, viscosity, or sample dimensions, the pressure drop is normalized, respectively.
The data in Sections 0–0 originate from a steady-state experiment conducted at reservoir condition, i.e., pressure of 100 bar and temperature of 120 °C. A cylindrical rock sample of 3.89 cm length and 3.76 cm diameter with 22.9% porosity and 181 \({\upmu} {\rm m}^{2}\) (183 mD) permeability was used. Starting point for the imbibition experiment conducted at a flow rate of \(Q_{T} = 60 {\rm cm}^{3} /h\) is a connate water saturation \(S_{w,c} = 0.08\). The fractional flow \(f_{w}\) is systematically increased from 0 to 1 using the sequence 0.0, 0.01, 0.05, 0.10, 0.25, 0.50, 0.75, 0.90. 0.95, 0.99 and 1.0 where at each fractional flow step sufficient time is given to reach a “steady-state,” i.e., an on average stable pressure-drop \({\Delta }p\) and saturation \(S_{w}\). At the end of the experiment a bump flood is conducted where the flow rate is increased to \(120 {\rm cm}^{3} /h\) and \(300 {\rm cm}^{3} /h\). During the experiment, the total pressure drop, \({\Delta }p\), along the core is measured by pressure gauges. It is unfortunately not possible to distinguish between the pressure drop of the aqueous and the oil phases. However, in steady-state experiments always the pressure drop of the flowing phase is measured, which is in an imbibition experiment at \(f_{w} = 0\) until about the maximum in \({\Delta }p\) the oil phase and after that until \(f_{w} = 1\) including the bump floods the aqueous phase. The saturation profiles \(S_{w} \left( x \right)\) are determined during the experiment by in situ X-ray saturation monitoring (Masalmeh et al. 2014; Sorop et al. 2015) at 20 positions \(x\) along the core. Typical uncertainties of steady-state experiments are around 5% for the saturation and 2–10% for pressure measurements depending on the pressure range, translating into an error of up to 10% in \(k_{r}\) using the error propagation method. Independent benchmarking studies which include the aspects of sample handling, cleaning suggest a repeatability of steady-state experiments within approximately that range. More details on the experimental protocols are given in (Sorop et al. 2015).
4 Flow Model for Two-Phase Flow
For two-phase flow in porous media, the flow model of the two-phase extension of Darcy’s law (Richards 1931; Wyckoff and Botset 1936; Muskat and Meres 1936; Leverett 1941) formulates the volumetric flux \(v_{\alpha }\) (normalized by cross-sectional area) of phase \(\alpha\) (\(\alpha = \left\{ {w,n} \right\}\) for wetting \(w\) and non-wetting phase \(n\) sometimes also referred to \(o\) for oil–water cases) as
where \(k_{r,\alpha }\) is the relative permeability of phase \(\alpha ,\) \(K\) the permeability, \(\mu_{\alpha }\) the viscosity and \(p_{\alpha }\) the pressure of phase \(\alpha\). \(\partial /\partial x\) is the spatial derivative in \(x\)-direction. Note that this is in absence of gravity which then needs to be added to the pressure gradient (Richards 1931; Wyckoff and Botset 1936; Muskat and Meres 1936; Leverett 1941; Buckley and Leverett 1942; Dullien 1992).
The continuity equation
describes the conservation of mass where \(S_{\alpha }\) is saturation of phase α, and \(\partial /\partial t\) the time derivative.
For the case of incompressibility \(v_{w} + v_{n} = v_{T}\) is constant and the wetting and non-wetting phase saturation \(S_{w} + S_{n} = 1\). The phase pressure difference \(p_{n} - p_{w}\) between wetting and non-wetting phases is related to the capillary pressure
in order to close the system of equations. Further assumptions are that relative permeability and capillary pressure are functions of saturation only, i.e., \(k_{r,\alpha } = k_{r,\alpha } \left( {S_{w} } \right)\) and \(p_{c} = p_{c} \left( {S_{w} } \right)\).
The time evolution of saturation \(S_{w} \left( {x,t} \right)\) can be computed by combining governing Eqs. (1)–(3). In that process the fractional flow \(f_{w}\) is defined as
with the mobility \(\lambda_{\alpha } = k_{r,\alpha } /\mu_{\alpha }\) for phase α. Equation (1)–(4) can then be combined obtaining
which can be solved analytically for the case \(p_{c} = 0\) following the method of (Buckley and Leverett 1942; Welge 1952; Dullien 1992; Dake 1978).
For the more general case with \(p_{c} \ne 0\) Eq. (5) is solved numerically using an explicit scheme with an explicit finite difference scheme with time stepping control and covers two-phase incompressible flow with capillary pressure and gravity which has been implemented as native Python code (Berg et al. 2020). The computationally intensive components are compiled with the just-in-time compiler using the numba just-in-time compiler package. A typical simulation run for interpreting relative permeability experiments using 50 grid blocks in \(x\)-direction takes about 50 ms.
From the saturation profiles \(S_{w} \left( {x,t} \right)\) the production curve
can be computed by integration over \(x\) utilizing the concept of mass conservation.
4.1 Corey and LET Relative Permeability Parameterizations
Relative permeability is assumed to be only a function of saturation \(k_{r,\alpha } \left( {S_{w} } \right)\). The mobile or reduced saturation \(S_{red}\) is expressed
where saturation \(S_{w}\) is re-scaled to the range between irreducible wetting \(S_{w,c}\) and non-wetting phase saturation \(S_{n,r}\).
The Corey relative permeability model (Corey 1954) is very commonly used where relative permeability is expressed in form of power law
where \(k_{r,w}^{0} = k_{r,w} \left( {S_{n,r} } \right)\) and \(k_{r,n}^{0} = k_{r,n} \left( {S_{w,c} } \right)\) are the endpoint relative permeabilities of wetting and non-wetting phases at the respective irreducible saturations. \(n_{w}\) and \(n_{n}\) are the power law “Corey” exponents.
The LET model (Lomeland et al. 2005) has become more popular in particular for assisted or automatic history matching (Lenormand et al. 2016) by software packages or services such as Sendra, Cydar, and Scores where
with the fit parameters \(L_{w}^{n}\), \(L_{n}^{w}\), \(E_{w}^{n}\), \(E_{n}^{w}\), \(T_{w}^{n}\), and \(T_{n}^{w}\).
For the parameterization of capillary pressure the expression by Skjaeveland et al. (Skjaeveland et al. 1998) is used
where \(S_{n} = 1 - S_{w}\) and \(c_{w}\), \(c_{n}\), \(a_{w}\) and \(a_{n}\) are adjustable parameters.
4.2 Inverse Modeling/History Matching Workflow and Uncertainty Estimation
Inverse modeling means that the predictions of the flow model as expressed in eqns. (1)–(8) are matched to experimental data (Hogg et al. 1008). An example is shown in Fig. 2 where for an unsteady-state experiment the prediction of the flow model is matched to experimentally measured production curve and pressure drop by adjusting the relative permeability, which is the result of interest of the inverse modeling.
The minimization of the mismatch between experimental data and model result is an optimization problem. The particular difficulty is that for finding the minimum in principle all fit parameters, e.g., all relative permeability parameters would need to be varied within the specified bounds. In the case of Corey or LET relative permeability models there are 6 or 10 parameters, respectively, meaning that the optimization would need to locate a minimum in a 6- or 10-dimensional space. If we include also parameters representing the capillary pressure, there would be 4 additional dimensions. It is not possible to directly search such a higher-dimensional space within reasonable effort. There are several computational strategies that can be used in practice. Gradient-based methods can find minima in higher-dimensional spaces. In this work we use the Levenberg–Marquardt algorithm (Levenberg 1944; Marquardt 1963) which performs a nonlinear least squares fit where the sum of the squared differences between data \(y_{i}\)
which is the sum of the squared differences between experimental data yi with error \(\epsilon_{i}\) and model values \(f\left( {x_{i} } \right)\), is minimized.
Here we use the implementation of the Levenberg–Marquardt method through the curve_fit function of the Python optimization toolbox scipy.optimize. In this work the respective model values \(f\left( {x_{i} } \right)\) of the flow model from Eq. (5) are not available as a closed-form analytical solutions and instead \(f\left( {x_{i} } \right)\) are computed numerically. For the gradient-based Levenberg–Marquardt method also the Jacobian, i.e., the gradients of \(\chi^{2}\) with respect to varied model parameters, i.e., all relative permeability parameters in Eq. (7) and (8) or (9) such as \(k_{r,\alpha }^{0}\), \(S_{w,c}\) and \(S_{n,r}\) are required. In the absence of a closed-form analytical solution in scipy.optimize the Jacobian is computed numerically in an automated manner. curve_fit allows to specify bounds for each fit parameter which is important because an unbounded \(\chi^{2}\) fit can lead to unphysical solutions, e.g., arriving at \(S_{w,c} > 1\) or \(S_{n,r} > 1\). In practice, for most cases \(0.03 \le S_{w,c} \le 0.2\) and \(0.05 \le S_{n,r} \le 0.40\) (although there are exceptions); for the endpoint relative permeability \(0.05 \le k_{r,\alpha }^{0} \le 1\) are reasonable bounds although values \(k_{r,\alpha }^{0} > 1\) have been observed (Berg et al. 2008). For the Corey model \(1.5 \le n_{\alpha } \le 5\) are reasonable bounds. While in Section 0 we directly use the curve_fit function, in Sections 0–0 the lmfit package (Newville et al. 2014) is used which provides a high-level interface and extends its methods further. Alternative optimization toolboxes with different optimization methods and toolboxes have been recently published in Taheriotaghsara (2020), Manasipov and Jenei (2020).
One particular feature of the Levenberg–Marquardt least squares method is that it also provides the uncertainties for each fit parameter. The standard deviation of each fit parameter is computed from the covariance matrix which is estimated from the Jacobian matrix around the convergence point of the fit, i.e., the slope of the \(\chi^{2}\) landscape around its minimum. A previous study, however, has shown that the \(\chi^{2}\) landscape for inverse modeling of unsteady-state and steady-state experiments can have multiple local minima (Berg et al. 2020). The respective aspect of non-uniqueness is therefore not reflected in the error bars computed from the covariance matrix of the \(\chi^{2}\) fit and can in reality be larger. On the other hand, when the \(\chi^{2}\) minimization runs into bounds specified for individual fit parameters, the Levenberg–Marquardt method has a problem of correctly estimating the Jacobian and respective standard deviation for fit parameters can be significantly over-estimated (Berg et al. 2020; Hogg et al. 1008). In addition, the \(\chi^{2}\) minimization converges against the ground truth only for data with Gaussian errors but can produce a significant mismatch when non-Gaussian errors are present which is demonstrated in the examples in Hogg et al. (1008).
For a correct assessment of uncertainties, in presence of non-Gaussian errors and multiple local minima, which seems to be the case for the relative permeability inversion (Berg et al. 2020), the Markov chain Monte Carlo (MCMC) method (Brooks 1998) is the more reliable approach. MCMC is used for instance by Valdez et al. (2020) for uncertainty estimation when fitting relative permeability models to experimental data. Here we use the emcee option in lmfit which utilizes the Emcee Python package (Foreman-Mackey et al. 1202). In total, 50,000 iterations were used for curve-fitting a \(k_{r}\) parameterization to tabulated \(k_{r}\) in Section 0 and 10,000 and 20,000 iterations for fitting the flow model to the raw data (\({\Delta }p\) and \(S_{w} \left( x \right)\)) in Section 0 (Berg et al. 2020).
5 Results and Discussion
The focus of results section is on assessing the impact on the choice of relative permeability parameterization on the resulting \(k_{r}\) and the associated uncertainty ranges. However, we first have to define the \(\chi^{2}\) function which is the cost function for the minimization. We will demonstrate that this already involves a choice that has an impact on the resulting \(k_{r}\) and the respective uncertainty range.
5.1 Weighting of Experimental Data in the Cost Function and Pareto Front
As detailed in Section 0 the inverse modeling is de-factor an optimization problem where an objective function \(\chi^{2}\) from Eq. (9) which is the sum of the squared differences between experimental data \(y_{i}\) and model prediction \(f\left( {x_{i} } \right)\) is minimized. In the case of multiphase flow experiments conducted in unsteady-state mode, analytical inversion methods (Johnson et al. 1959) suggest that required experimental data \(y_{i}\) are pressure production curve \({\text{Q}}\left( t \right) = \int_{x} {S_{w} \left( {x,t} \right)dx}\) (with error \(\delta Q_{i}\)) and the pressure drop \({\Delta }p\left( t \right)\) (with error \(\delta p_{i}\)). In that case, one can define the cost function
such that it includes both production data and pressure drop which are simultaneously minimized, i.e., both experimentally measured production data and pressure drop are used to constrain the solution.
However, production data and pressure drop may have very different magnitude, depending on the permeability \(K\). For lower the permeability the \({\Delta }p\) terms would be much larger than the production data terms and give implicitly much more weight in the \(\chi^{2}\) minimization. Such a situation is shown in Fig. 3 where in a synthetic data set even without any noise (except for numerical errors which are < 0.1%, rounding is at the 10th decimal) the \(\chi^{2}\) minimization does not reproduce the ground truth, which is among other things a consequence of non-uniqueness (Berg et al. 2020). If the production data and pressure drop are, however, normalized by characteristic values,
The ground truth is exactly recovered as shown in Fig. 3.
The significance of this observation is that even for a synthetic data set, on the basis of a Core relative permeability parameterization without any noise, the success of the model inversion depends on the choice of the cost function. A non-normalized \(\chi^{2}\) does not reproduce the ground truth in terms of relative permeability, while in terms of production curve and pressure drop an almost indistinguishable match (within the line thickness of the curves) is achieved. On very close inspection, for \(\chi^{2}\) there seems to be a somewhat lesser match for the production curve than for minimizing \(\chi_{n}^{2}\), but in a practical situation for data with noise the difference would fall below the noise level, while the different in \(k_{r}\) is much bigger. This behavior is known from typical ill-posed problems where interpreted properties are very sensitive to even small uncertainties in primary measurement quantities and highly dependent on the way the constraints are articulated. That is important to recognize, also in particular from the perspective of the more traditional approaches where the match is achieved by manual tuning where the objective function is not articulated and depends on the visual perception of the operator.
This observation is also indicative of the inevitable problem of the definition of the cost function and the weighting of different data which is not given by first principles but more of a choice. The cost function has to include at least the data sets required to constrain the solution that are already clear from analytical inversion. For instance, in an unsteady-state experiment both pressure drop and production data are required to constrain the solution. The question is how their contribution is weighted in a cost function.
In order to investigate what impact the weighting of production data and pressure drop, we modify the cost function \(\chi_{n}^{2}\) from Eq. (11) but include a weighting factor \(a\) between pressure drop and production data for the simplified case without any error (i.e., setting \(\delta Q_{i} = 1\) and \(\delta p_{i} = 1\))
The results of the \(\chi_{n}^{2}\) minimization from (12) as a function of weighting factor \(a\) between pressure drop and production data are shown in Fig. 4. The ground truth (dashed lines) is only recovered in a small range of weight factor \(0.1 \le a \le 0.3\) which is not a-priori obvious.
Even in a situation where the model is correct, i.e., a specific two-phase flow model (two-phase Darcy) is used to generate a synthetic data set (production curve and pressure drop) which is then subjected to the inverse modeling workflow, we see that the relative weighting of pressure drop and production data in the cost function matters. In other words, the optimization problem has more similarity with a bi-objective minimization where the solution lies on a Pareto front as shown in Fig. 5. The behavior is not like in a classical Pareto front where a monotonic trend between two limiting outcomes is observed. Instead, the behavior points more to the existence of non-uniqueness with multiple local minima in the cost function as already discussed in more detail in (Berg et al. 2020).
That the impact of the variation of the weight factor between pressure drop and production curve on the Corey parameters is indeed significant can be seen when plotting the associated family of relative permeability curves as shown in Fig. 6.
While the example of the unsteady-state experiment with synthetic capillary pressure \(p_{c} = 0\) is instructive to understand the inherent degree of uncertainty associated with inverse matching and the root cause of arbitrariness caused by the choice of the weighting factors between different types of constraining experimental data, we should not forget that an inherent issue of constant-rate unsteady-state experiments is the very limited posterior saturation range which makes this situation particularly problematic. In reality, the situation is more complex because the errors of production data and pressure drop can have different magnitude, which introduces further bias.
5.2 Manual Match and Fitting Relative Permeability Model to Tabulated kr vs. Integrated Match
The steady-state type of experiment samples a wider saturation range and is therefore, in principle, better conditions for inverse matching of relative permeability (Berg et al. 2020). An example of a data set of a steady-state experiment is displayed in Fig. 7. The experiment was manually matched with tabulated relative permeability \(k_{r} \left( {S_{w} } \right)\) using a capillary pressure–saturation function \(p_{c} \left( {S_{w} } \right)\) which was measured independently on a twin sample using a multispeed centrifuge approach (Fig. 7d).
In the manual match also saturation \(S_{w} \left( {x,t} \right)\) profiles were considered which were experimentally measured by in situ X-ray saturation monitoring. The match for saturation profiles \(S_{w} \left( x \right)\) between experimental data and model shown in Fig. 7b is not perfect. For early times at the inlet there is a significant mismatch which is caused by the spontaneous imbibition part of the \(p_{c} \left( {S_{w} } \right)\) function (not visible in Fig. 7d which shows only the force part, the \(p_{c}\) values of the spontaneous part are not accessible with the centrifuge method). However, the saturation profiles at the outlet match very well including the capillary end effect (Huang and Honarpour 1998). Figure 7b directly illustrates the value of including saturation profiles in the inverse modeling approach as it provides via the shape of the capillary end effect a much more specific consistency check with the capillary pressure–saturation function.
In Fig. 8 the respective assisted history match of the data from Fig. 7 is shown. For the assisted match, the cost function \(\chi^{2}\) also included the match of the saturation profiles \(S_{w} \left( {x,t} \right)\). For simplicity, pressure data and saturation profiles were matched with equal weight. In addition, also the capillary pressure–saturation function \(p_{c} \left( {S_{w} } \right)\) was matched, i.e., included in the cost function, using the Skjaeveland et al. (Skjaeveland et al. 1998) parameterization from Eq. (8). In Fig. 8 we directly compare using the Corey and the LET parameterization for relative permeability.
The matches in Fig. 8 with Corey and LET functions produced different relative permeability-saturation functions which are directly compared in Fig. 9a. They result in different fraction flow curves, different breakthrough behavior and differences in the production curves as shown in Fig. 9b–d. In other words, in terms of parameter estimates, the differences between the choice of Corey and LET models in the inverse modeling workflows may indeed matter.
5.3 Impact of Relative Permeability Parameterization on Uncertainty Range
The comparison between using Corey and LET functions in Fig. 8 has demonstrated that uncertainty arises alone from the choice of the relative permeability parameterization which falls into the category of model-based error. In order to investigate the impact of the choice of the relative permeability representation further, we separate the fit of the flow model to the raw experimental \({\Delta }p\) and \(S_{w} \left( x \right)\) data and the fit of the relative permeability model by considering the tabulated \(k_{r} \left( {S_{w} } \right)\) from the steady-state flow experiment from Fig. 7 as the starting point and then proceed with fitting the relative permeability model to the tabulated data. Even though it has been demonstrated previously (Berg et al. 2020) that this leads to an overall largely increased uncertainty range, it does provide conceptual insight into the inter-correlations of fit parameters in Corey and LET relative permeability parameterization which may add to uncertainty. Corey and LET functions have different numbers of fit parameters which allows on the one hand LET to fit the data better than Corey as shown in Fig. 8, but perhaps the additional number of parameters may also have disadvantages. That raises the question whether parameters could be kept fixed during the fit to reduce the degrees of freedom, and what the respective impact on the uncertainty range is. If fixing fit parameters, which ones would make the biggest impact?
From the direct comparison of the uncertainty ranges in Fig. 10 we see that fitting relative permeability data with the LET model produces somewhat larger uncertainty ranges than the Corey functions, which may be a consequence of the increased number of parameters and respective inter-correlations which will be addressed in Sect. 0 in more detail. However, keeping \(S_{w,c}\) and \(S_{o,r}\) constant during the fit significantly reduces the uncertainty range. The respective uncertainty for each fit parameter is listed in Table 1.
Note that the least-squares fit provides a better (perfect) match with the data points for the LET model, also \(k_{r,o}\) close to \(S_{o,r}\), but the uncertainty ranges are unrealistically large. The MCMC method has a somewhat worse fit to the data points but provides the realistic uncertainty range, which is here the important aspect. Irrespective of the inverse modeling method chosen, we find that fixing \(S_{w,c}\) and \(S_{o,r}\) reduces the uncertainty significantly, which intuitively makes sense as they provide the coupling between wetting and non-wetting phase relative permeability.
5.4 Impact of Fixing \({\varvec{S}}_{{{\varvec{w}},{\varvec{c}}}}\) and \({\varvec{S}}_{{{\varvec{o}},{\varvec{r}}}}\) in the Integrated Match
The sensitivity assessment from Fig. 10 suggests that keeping Sw,c and So,r fixed during least squares fit will lead to an overall reduced uncertainty when fitting tabulated kr data. The respective values for Sw,c and So,r have been taken from the independently measured \(p_{c} \left( {S_{w} } \right)\) function (solid points in Fig. 8d,h). The question is how big the impact will be when fitting directly the flow model to the raw data. The main question is not only how much fixing \(S_{w,c}\) and \(S_{o,r}\) will reduce the uncertainty but mainly how much it impacts the outcome of the match itself.
In Fig. 11 we show the same match of the flow model with Corey and LET relative permeability parameterization to the raw data as in Fig. 8 but keep \(S_{w,c}\) and \(S_{o,r}\) fixed. We observe that keeping \(S_{w,c}\) and \(S_{o,r}\) fixed has only very little impact on the match of the LET model and the resulting relative permeability. That means when using an LET model we have to worry less about whether we should fix or constrain \(S_{w,c}\) and \(S_{o,r}\) through imposed bounds as the raw data (which includes pressure drop, saturation profiles but also the tabulated \(p_{c} \left( {S_{w} } \right)\)) already constrains the data sufficiently.
But there is an impact for the Corey representation. The match of the pressure profiles \({\Delta }p\) for each fractional flow is significantly worse than for the match in Fig. 9 where \(S_{w,c}\) and \(S_{o,r}\) are varied during the least squares fit, in particular after the \({\Delta }p\) maximum. The resulting relative permeability is also significantly different from the case where \(S_{w,c}\) and \(S_{o,r}\) are varied. They are also different from the LET match. From the trend one could even argue that differences between Corey and LET increase when keeping \(S_{w,c}\) and \(S_{o,r}\) fixed.
In other words, it appears as if the Corey parameterization already over-constrains the match and reducing the mismatches with the experimental data cannot be “forced” by constraining individual fit parameters more by imposing more restrictive bounds or fixing parameters.
The comparison of Figs. 11 and 8 clearly shows the impact of the choice of relative permeability parameterization. On the one hand it is clear that independent constraints such as \(S_{o,r}\), e.g., from an independently measured \(p_{c} \left( {S_{w} } \right)\) are always desirable as this leads to a de-coupling of correlations between fit parameters which will be discussed later in Sect. 3.6. However, when applying such a constraint, potential inconsistencies and other problems with the choice of the relative permeability parameterization are largely masked and are only indirectly visible as, e.g., a sub-optimal match of the pressure data (Fig. 11). By allowing \(S_{o,r}\) to vary, however, as shown in Fig. 8, the inconsistencies become clearly visible though the significant mismatch with the \(S_{o,r}\) from the \(p_{c} \left( {S_{w} } \right)\) function (Fig. 8D). This illustrates the usefulness of inverse modeling as diagnostic tool.
5.5 Uncertainty Ranges for Corey and LET Models in Integrated Match
The remaining question is now what the associated uncertainties are. As we have experienced already in a previous work (Berg et al. 2020) the uncertainty estimate from least squares fits can be unreliable when fit parameters run into imposed bounds. Therefore, the more reliable Markov chain Monte Carlo method will be used for the uncertainty assessment when fitting the flow model to the data.
For a full uncertainty analysis the least squares fit from Fig. 8 (where Sw,c and So,r are varied during the fit) was re-run with a Markov chain Monte Carlo (MCMC) simulation of the whole flow model (also varying Sw,c and So,r) with 20,000 iterations. The matches and resulting relative permeability are similar as these in Fig. 8 and, therefore, not shown. The respective error ellipses and posterior distributions are shown in Fig. 12.
A magnification of the upper 4 × 4 region covering the parameters \(S_{w,c}\), \(S_{o,r}\), \(k_{r,w}^{0}\) and \(k_{r,o}^{0}\) is shown in Fig. 13. There are several commonalities for both the LET and the Corey functions. For both relative permeability parameterizations, the fit has run into an upper or lower bound of a fit parameter which causes the error ellipses to be “cutoff.” While MCMC handles the uncertainty correctly, this causes problems with the uncertainty analysis from the covariance matrix of least squares fits.
In terms of the size of error ellipses, i.e., uncertainty ranges there are no dramatic differences between LET and Corey functions which can be directly seen in Table 2. Even though the standard deviation is consistently smaller for Corey fits they are both in the second decimal or smaller which is a range where in practice it would not make any difference.
For both relative permeability parameterizations, the error ellipses are diagonal for several parameter pairs which suggests correlations between the respective fit parameters which will be discussed in more detail in Sect. 0. Only the location and orientation of error ellipses are entirely different for LET and Corey functions illustrating that the fit converged to a different optimum. Also, for the Corey function the error ellipses appear more compact, while for the LET function show often elongated trajectories outside of the main error ellipses with several local minima. Possible reasons are that the LET function as more degrees of freedom which can lead to possible more non-uniqueness (Berg et al. 2020).
Whether the error ellipses from Figs. 12 and 13 truly reflect the uncertainty is also connected to the question whether the residuals, i.e., the mismatch between model and experimental data in the \({\Delta }p\) and \(S_{w} \left( x \right)\) space are symmetric and random and fall within the standard deviation of the experimental data. As we can see in Fig. 14 this is not the case, neither for Corey nor LET functions. There are systematic deviations in both pressure \({\Delta }p\) and saturation \(S_{w} \left( x \right)\) outside of the typical standard deviation of the experimental data. Even though generally, for LET the residuals are smaller than for Corey functions, both relative permeability representations do not fully represent the data, or there are actually issues with the underlying flow model. It is clear that this is less the case for the LET model, which clearly points out that with LET functions the experimental data are described better which makes LET the preferred function compared with Corey functions.
5.6 Correlation of Fit Parameters
In the previous sections we have seen already various indications for correlations between fit parameters. That can cause errors of individual parameters to increase because uncertainty of one parameter can be “lumped” via the cross-correlation into another parameter. Correlations of fit parameters can be obtained from the covariance matrix of the least squares fit. The (symmetric) correlation matrix \(C\left( X \right)\) is obtained from the covariance matrix of the least squares fit by
A high degree of correlation is indicated by larger positive values of, e.g., \(C = + 1\) and anti-correlation by large negative values of, e.g., \(C = - 1\).
We begin the correlation analysis with the fit of the tabulated \(k_{r}\) from Fig. 10 using Corey and LET functions. We see strong correlations and anti-correlations between all fit parameters, in particular between at least one of the endpoint \(k_{r}\) and other fit parameters, both for Corey and LET fits, as illustrated in the visualization of the correlation matrix from Eq. (13) displayed in Fig. 15 shows. Note that since the correlation matrix is symmetric and diagonal elements are per definition 100% correlated, i.e., \(C = 1\), only the lower-half off-diagonal elements are displayed.
In both cases there are high correlations (\(C \approx + 1\)) or anti-correlations (\(C \approx - 1\)) between at least one of the relative permeability endpoints and the other fit parameters. When keeping \(S_{w,c}\) and \(S_{o,r}\) fixed, the correlations are significantly smaller and for the LET model occur only between \(T\) and \(E\) which has very little impact on the shape of the curve. This indicates that indeed, \(S_{w,c}\) and \(S_{o,r}\) are mainly responsible for the high correlations of fit parameters because they represent the coupling between \(k_{r,w}\) and \(k_{r,o}\). When keeping two other parameters fixed, e.g., \(T_{w}\) and \(T_{o}\) the correlations are again high. This suggests that the root cause is the coupling between \(k_{r,w}\) and \(k_{r,nw}\) via \(S_{w,c}\) and \(S_{o,r}\). When performing a LET fit with \(S_{w,c}\) and \(S_{o,r}\) fixed, the correlations are much weaker, only occurring between \(T_{w,o}\) and \(E_{w,o}\) which does not have a significant impact on the shape of the curve. When allowing \(S_{w,c}\) and \(S_{o,r}\) to vary and fix two other parameters, e.g., \(T_{w,o}\), again very high correlations or anti-correlations are observed.
Interestingly, fitting the whole flow model (without fixing \(S_{w,c}\) and \(S_{o,r}\)) does overall diminish the correlations between fit parameters not significantly as shown in Fig. 16. The impact is bigger for the Corey model than the LET model. However, individual correlations can change significantly compared with fitting tabulated \(k_{r}\), in particular for the LET model.
Ultimately, the correlations assuming still significant magnitude suggest that both Corey and LET models are not yet optimum parameterizations for the experimental data. While the Corey model appears to be over-constrained which results in mismatches with the experimental data, the LET model has more degrees of freedom that allows a better description of the data, but cross-correlations of fit parameters and non-Gaussian residuals indicate that we are still dealing with a phenomenological parameterization that is not yet the optimum description of the data. This may be the starting point for a comparison of different flow models and relative permeability cross-terms.
6 Summary and Conclusion
In this work, an assisted history matching workflow where experimental core flooding data are matched to the numerical solution of two-phase Darcy equations and the relative permeability functions are extracted. The associated uncertainty was investigated by inverse modeling, and the impact of relative permeability parameterization on the uncertainty of multiphase flow models was studied. The analysis focused on two main areas: (1) uncertainties arising from different weights of experimental data in the cost function, (2) the choice of the relative permeability parameterization. The assessment was based on the two-phase Darcy equations; the Corey and LET relative permeability parameterizations were compared.
Inverse modeling requires some level of choices: these range from the parameterization of, e.g., relative permeability-saturation functions to weights of the different type of constraining experimental data in the cost function and the overall matching strategy (manual vs. full model match). This work illustrates the impact of these choices on the result and the uncertainty ranges in the inverse modeling process. Because of the highlighted problems and impact of choices, the inverse modeling does not provide a universal solution; rather, it should be seen as a diagnostic tool that exposes the limitations in interpretation workflows which exist irrespective of inverse modeling or other interpretation strategies that are used. Future work is aimed at assessing whether better choices in interpretation workflows and optimized experimental workflows can minimize these issues.
This work also demonstrates the problems associated with simple modeling of the experiments using manual matches or simple search routines where all parameters in the governing equations are varied. Rather, as many parameters as possible should be found independently before fitting those that remain.
Code availability
The Python scripts for the inverse modeling are available upon request. The two-phase flow modeling code is proprietary and cannot be shared. However, any two-phase Darcy flow simulator is equivalent and can be used instead.
Abbreviations
- \(\phi\) :
-
Porosity (dimensionless)
- \(K\) :
-
Permeability (\({\upmu} {\rm m}^{2} = mD\))
- \(k_{r}\) :
-
Relative permeability (dimensionless)
- \(k_{r,w}\) :
-
Relative permeability for the wetting phase
- \(k_{r,n}\) :
-
Relative permeability for the non-wetting phase (dimensionless)
- \(k_{r,\alpha }^{0}\) :
-
Endpoint saturation for phase \(\alpha\) at respective irreducible saturation
- \(p_{c}\) :
-
Capillary pressure (bar)
- \(S_{w}\) :
-
Wetting (water) phase saturation (dimensionless)
- \(S_{w,c}\) :
-
Connate water saturation (irreducible wetting phase saturation)
- \(S_{o,r}\) :
-
Residual oil saturation (irreducible non-wetting phase saturation)
- \(S_{red}\) :
-
Reduced or mobile saturation
- PV:
-
Pore volume
- \(p\) :
-
Pressure (bar)
- \({\Delta }p\) :
-
Pressure drop (bar)
- \(\mu\) :
-
Viscosity (mPa·s)
- \(x\) :
-
Position long the core (cm)
- s \(v_{\alpha }\) :
-
Volumetric flux of phase \(\alpha\) in cm3/s
- \(f_{w}\) :
-
Fractional flow (dimensionless)
- \(n_{w} , n_{n}\) :
-
Parameters of Corey relative permeability model (power law exponents of wetting and non-wetting phases, dimensionless)
- \(L_{\alpha }^{\beta } ,E_{\alpha }^{\beta } ,T_{\alpha }^{\beta }\) :
-
Parameters of LET relative permeability model (dimensionless)
- \(a_{\alpha } , c_{\alpha }\) :
-
Parameters of the capillary pressure model (\(a_{\alpha }\) dimensionless, \(c_{\alpha }\) in bar)
- \(\chi^{2}\) :
-
Sum of squared errors between experimental data and model output
- ε i :
-
Error (standard deviation) of an experimental data point
- \(\delta\) :
-
Standard deviation of a parameter
References
Alhammadi, A. M., Gao, Y., Akai, T., Blunt, M. J., Bijeljic, B.: Pore-scale imaging and determination of relative permeability and capillary pressure in a mixed-wet carbonate reservoir rock at subsurface conditions. Presented at the 2019 annual conference of the Society of Core Analysts held in Pau, France, August 26–30 (2019)
Alpak, F.A., Jennings, J.W.: Adjoint method acceleration protocols for model maturation to update static models with time-lapse reservoir surveillance data. J. Petrol. Sci. Eng. 190, 107046 (2020)
Alpak, F. O., Lake, L. W., Embid, S. M.: Validation of a modified Carman-Kozeny equation to model two-phase relative permeabilities. In: Proceedings of the 1999 SPE Annual Technical Conference and Exhibition held in Houston, Texas, 3–6 October 1999. Paper SPE 56479 (1999)
Alpak, F.O., Berg, S., Zacharoudiou, I.: Prediction of fluid topology and relative permeability in imbibition in sandstone rock by direct numerical simulation. Adv. Water Resour. 122, 49–59 (2018)
Alpak, F.O., Zacharoudiou, I., Berg, S., Dietderich, J., Saxena, N.: Direct simulation of pore-scale two-phase visco-capillary flow on large digital rock images using a phase-field lattice boltzmann method on general-purpose graphics processing units. Comput. Geosci. 23, 849–880 (2019)
Anderson, W.G.: Wettability literature survey Part 5: the effects of wettability on relative permeability. J. Petrol. Technol. 39(11), 1453–1468 (1987)
Armstrong, R.T., McClure, J.E., Berrill, M.A., Rücker, M., Schlüter, S., Berg, S.: Beyond Darcy’s law: the role of phase topology and ganglion dynamics for two fluid flow. Phys. Rev. E 94, 043113 (2016)
Ayub, M., Bentsen, R.G.: Experimental testing of interfacial coupling in two-phase flow in porous media. Petrol. Sci. Technol. 23, 863–897 (2005)
Bachmat, Y., Bear, J.: On the concept and size of a representative elementary volume (Rev). In: Bear J., Corapcioglu M.Y. (eds) Advances in transport phenomena in porous media. NATO ASI Series (Series E: Applied Sciences), vol 128. Springer, Dordrecht. Doi:https://doi.org/10.1007/978-94-009-3625-6_1(1987)
Bear, J.: Two-liquid flows in porous media. Adv. Hydrosci. 6, 141–252 (1970)
Bear, J.: Dynamics of fluids in porous media. American Elsevier, New York (1972)
Bear, J., Nitao, J.J.: On equilibrium and primary variables in transport in porous media. Transp. Porous Media 18, 151–184 (1995)
Bear, J., Braester, C., Menier, P.C.: Effective and relative permeabilities of anisotropic porous media. Transp. Porous Media 2, 301–316 (1987)
Bear, J., Ryzhik, V., Braester, C., Entov, V.: On the movement of an LNAPL lens on the water table. Transp. Porous Media 25, 283–311 (1996)
Bentsen, R.G.: Effect of neglecting interfacial coupling when using vertical flow experiments to determine relative permeability. J. Petrol. Sci. Eng. 48, 81–93 (2005)
Berg, S., Ott, H.: Stability of CO2-brine immiscible displacement. Int. J. Greenhouse Gas Control 11, 188–203 (2012)
Berg, S., van Wunnik, J.: Shear rate determination from pore scale flow fields. Transp. Porous Media 117(2), 229–246 (2017)
Berg, S., Cense, A.W., Hofman, J.P., Smits, R.M.M.: Two-phase flow in porous media with slip boundary condition. Transp. Porous Media 74(3), 275–292 (2008)
Berg, S., Oedai, S., Ott, H.: Displacement and mass transfer between saturated and unsaturated CO2-brine systems in sandstone. Int. J. Greenhouse Gas Control 12, 478–492 (2013)
Berg, S., Unsal, E., Dijk, H.: Non-uniqueness and uncertainty quantification of relative permeability measurements by inverse modelling. Comput, GeoTech (2020)
Blunt, M.J., Bijeljic, B., Dong, H., Gharbi, O., Iglauer, S., Mostaghimi, P., Paluszny, A., Pentland, C.: Pore-scale imaging and modelling. Adv. Water Resour. 51, 197–216 (2013)
Brooks, S.: Markov chain Monte Carlo method and its application. J. R. Stat. Soc. D 47, 69–100 (1998)
Brooks, R.H., Corey, A.T.: Hydraulic properties of porous media. Hydrology Papers, No. 3, Colorado State U., Fort Collins, Colorado (1964)
Buckley, S.E., Leverett, M.C.: Mechanism of fluid displacements in sands. Trans. AIME 146, 107–116 (1942)
Bui, M., et al.: Cabon capture and storage (CCS): the way forward. Energy Environ. Sci. 11(5), 1062–1176 (2018)
Chen, Z.G.A., Ruth, D.W.: Centrifuge capillary pressure data reduction with a modified forbes method. J. Petrol. Sci. Eng. 9, 303–312 (1993)
Corey, A.T.: The interrelation between gas and oil relative permeabilities. Prod. Monthly. 19(1), 38–41 (1954)
Cremon, M.A., Christie, M.A., Gerritsen, M.G.: Monte Carlo simulation for uncertainty quantification in reservoir simulation: a convergence study. J. Petrol. Sci. Eng. 190 (2020)
Dake, L.P.: Fundamentals of reservoir engineering. Elsevier, Amsterdam (1978)
Dane, J., Vrugt, J.A., Unsal, E.: Soil hydraulic functions determined from measurements of air permeability, capillary modeling, and high‐dimensional parameter estimation. Vadose Zone J., 10 (2011)
Darcy, H.: Les fontaines publiques de la ville de Dijon. Dalmont, Paris (1856)
Das, D.B., Mirzaei, M., Widdows, N.: Non-uniqueness in capillary pressure-saturation-relative permeability relationships for two-phase flow in porous media: interplay between intensity and distribution of random micro-heterogeneities. Chem. Eng. Sci. 61, 6786–6803 (2006)
Dobson, P., Fursov, I., Lord, G., Ottobre, M.: Reversible and non-reversible Markov chain Monte Carlo algorithms for reservoir simulation problems. Comput. Geosci. 24, 1301–1313 (2020)
Doster, F., Zegeling, P.A., Hilfer, R.: Numerical solutions of a generalized theory for macroscopic capillarity. Phys. Rev. E 81, 036307 (2010)
Dullien, F.A.L.: Porous media fluid transport and pore structure. Academic press, New York (1992)
Element, D. J., Goodyear, S. G.: New coreflood simulator based on independent treatment of in-situ saturation and pressure data. International Symposium of the Society of Core Analysist 2002, paper SCA2002–07.
Fadili, A., Ababou, R.: Dual homogenization of immiscible steady two-phase flows in random porous media. Water Resour. Res. 40, W01513 (2004)
Foreman-Mackey, D., Hogg, D. W., Lang, D., Goodman, J.: emcee: the MCMC Hammer, [astro-ph.IM], DOI:https://doi.org/10.1086/670067, (2012)
Freitas, C.: The issue of numerical uncertainty. Appl. Math. Model. 26, 237–248 (2002)
Gharbia, I.B., Dabaghi, J., Martin, V., Vohralik, M.: A posteriori error estimates for a compositional two-phase flow with nonlinear complementary constraints. Comput. Geosci. 24, 1031–1055 (2020)
Gray, W. G., Miller, C. T.: Thermodynamically constrained averaging theory approach for modeling flow and transport phenomena in porous medium systems: 8. Interf. common. Curve Dyn. Adv. Water Resour. 33(12), 1427–1443, 2010.
Gray, W.G., Miller, C.T.: Introduction to the thermodynamically constrained averaging theory for porous medium systems. Springer, Heidelberg (2014)
Gupta, R., Maloney, D.R.: Intercept method: a novel technique to correct steady-state relative permeability data for capillary end effects. SPE J. 19(02), 316–330 (2016)
Hassanizadeh, S.M., Gray, W.G.: High velocity flow in porous media. Transp. Porous Media 2, 512–531 (1987)
Hassanizadeh, S.M., Gray, W.G.: Toward an improved description of the physics of two-phase flow. Adv. Water Resour. 16, 53–67 (1993)
Hogg, D. W., Bovy, J., Lang, D.: Data analysis recipes: fitting a model to data. (2010)
Huang, D.D., Honarpour, M.M.: Capillary end effects in coreflood calculations. J. Petrol. Sci. Eng. 19, 103–117 (1998)
Jenei, B.: Numerical modelling and automated history matching in SCAL data for improved data quality, Master Thesis, University of Leoben, Austria (2017)
Johnson, E.F., Bossler, D.P., Naumann, V.O.: Calculation of relative permeability from displacement experiments. Trans. AIME 216, 370–372 (1959)
Khait, M., Voskov, D.: Integrated framework for modelling of thermal-compositional multiphase flow in porous media. In: SPE reservoir simulation conference, 10–11 April 2019, Galveston, Texas, USA, number SPE-193932 (2019)
Kondratenko, E.V., Mul, G., Baltrusaitis, J., Larrazabal, G.O., Perez-Ramirez, J.: Status and perspectives of CO2 conversion into fuels and chemicals by catalytic, photocatalytic and electrocatalytic processes. Energy Environ. Sci. 6, 3112–3135 (2013)
Krause, M., Krevor, S., Benson, S.M.: A procedure for the accurate determination of sub-core scale permeability distribution with error quantification. Transp. Porous Media 98, 565–588 (2013)
Lake, L.W.: Enhanced oil recovery. Prentice Hall, New Jersey (1984)
Lenormand, R., Lorentzen, K., Maas, J. G., Ruth, D.: Comparison of four numerical simulators for SCAL experiments. International Symposium of the Society of Core Analysts held in Snowmass, Colorado, USA, 21–26 August 2016, paper SCA2016–006 (2016)
Levenberg, K.: A method for the solution of certain non-linear problems in least squares. Quart. Appl. Math. 2(2), 164–168 (1944)
LeVeque, R.J.: Numerical methods for conservation laws. Lectures in Mathematics ETH Zürich, Birkhäuser (1990)
Leverett, M.C.: Capillary behavior in porous solids. Trans. AIME 142, 152–169 (1941)
Lin, Q., Bijeljic, B., Berg, S., Pini, R., Blunt, M.J., Krevor, S.: Minimal surfaces in porous media: Pore-scale imaging of multiphase flow in an altered-wettability Bentheimer Sandstone. Phys. Rev. E 99, 063105 (2019)
Lomeland, F., Ebeltoft, E., Thomas, W. H.: A new versatile relative permeability correlation. International Symposium of the Society of Core Analysts held in Toronto, Canada, 21–25 August, 2005, paper SCA2005–032 (2005)
Maas, J. G., Schulte, A. M.: Computer simulation of Special Core Analysis (SCAL) flow experiments shared on the Internet. In: International Symposium of the Society of Core Analysts held in Calgary, Alberta, Canada, 1997, paper SCA1997–19 (1997)
Maas, J. G., Flemisch, B., Hebing, A.: Open source simulator DUMUX available for SCAL data interpretation. International Symposium of the Society of Core Analysts held in Austin, Texas, USA 18–21 September, 2011, paper SCA2011–08 (2011)
Maas, J. G., Springer, N., Hebing, A.: Defining a sample heterogeneity cut-off value to obtain representative Special Core Analysis (SCAL) measurements. International Symposium of the Society of Core Analysts held in Pau, France, 26–30 August, 2019, paper SCA2019–024.
Maini, B., Coskuner, G., Jha, K.: A comparison between steady-state and unsteady-state relative permeability in viscous oil and water in Ottawa sand. Can. J. Petrol. Technol. 29(2), 72–77 (1990)
Manasipov, R., Jenei, B.: Automated interpretation tool for synchronous history matching of multiple SCAL experiments with advance nurbs representations of relevant functions. In: SPE Europec featured at 82nd EAGE Conference and Exhibition, 8 June 2020, paper SPE-200559-MS (2020)
Marquardt, D.: An algorithm for least-squares estimation of nonlinear parameters. SIAM J. Appl. Math. 11(2), 431–441 (1963)
Masalmeh, S.: The effect of wettability heterogeneity on capillary pressure and relative permeability. J. Petrol. Sci. Eng. 39, 399–408 (2003)
Masalmeh, S. K, Sorop, T. G., Suijkerbuijk, B.M.J.M., Vermolen, E.C.M., Douma, S., van der Linde, H. A., Pieterse, S.G.J.: Low salinity flooding: experimental evaluation and numerical interpretation. In: IPTC 17558, presented at the International Petroleum Technology Conference, Doha, Qatar 19–22 January 2014 (2014)
Matott, L.S.; Babendreier, J.E.; Purucker, S.T.: Evaluating uncertainty in integrated environmental models: a review of concepts and tools. Water Resour. Res. 45 (2009)
McClure, J.E., Armstrong, R.T., Berrill, M.A., Schlüter, S., Berg, S., Gray, W.G., Miller, C.T.: A geometric state function for two-fluid flow in porous media. Phys. Rev. Fluids 3(8), 084306 (2018)
Miller, C.T., Valdes-Parada, F.J., Ostvar, S., Wood, B.D.: A priori parameter estimation for the thermodynamically constrained averaging theory: species transport in a saturated porous medium. Transp. Porous Media 122, 611–632 (2018)
Muskat, M., Meres, M.: The flow of heterogeneous fluids through porous media. Physics 7, 346 (1936)
Newville, M., Stensitzki, T., Allen, D. B., Ingargiola, A.: LMFIT: non-linear least square minimization and curve-fitting for Python. (2014). https://doi.org/10.5281/zenodo.11813
Niessner, J., Berg, S., Hassanizadeh, S.M.: Comparison of two-phase Darcy’s law with a thermodynamically consistent approach. Transp. Porous Media 88(1), 133–148 (2011)
Okano, H.: Quantification of uncertainty in relative permeability for coarse-scale reservoir simulation. Paper presented at the SPE Europec/EAGE Annual Conference, Madrid, Spain, June 2005., Paper Number: SPE-94140-MS
Oliver, D.S., Reynolds, A.C., Liu, N.: Inverse theory for petroleum reservoir characterization and history matching. Cambridge University Press, Cambridge (2008)
Pradhan, A., Mukerji, T.: Seismic Bayesian evidential learning: estimation and uncertainty quantification of sub-resolution reservoir properties. Comput. Geosci. 24, 1121–1140 (2020)
Press, W.H., Teukosky, S.A., Vetterling, W.T., Flannery, B.P.: Numerical recipes in C, 2nd edn. Cambridge University Press, Cambridge (1992)
Ramstad, T., Kristoffersen, A., Ebeltoft, E.: Uncertainty span for relative permeability and capillary pressure by varying wettability and spatiality flow directions utilizing pore scale modelling. E3S Web of Conf. SCA 2019, 146, 01002. Doi:https://doi.org/10.1051/e3sconf/202014601002(2020)
Reed, J., Maas, J.: Review of the intercept method for relative permeability correction a variety of case study data. Petrophysics 60(2), 283–296 (2019)
Richards, L.: Capillary conduction of liquids through porous mediums. Physics 1(5), 318–333 (1931)
Rücker, M., et al.: From connected pathway flow to ganglion dynamics. Geophys. Res. Lett. 42, 3888–3894 (2015)
Rücker, M., et al.: The effect of mixed wettability on pore scale flow regimes based on a flooding experiment in ketton limestone. Geophys. Res. Lett. 46(6), 3225–3234 (2019)
Scheidt, C., Li, W., Caers, J.: Quantifying uncertainty in subsurface systems, american geophysical union. Wiley, Hoboken (2018)
Schiozer, D.J., Ligero, E.L., Suslick, S.B., Costa, A.P.A., Santos, J.A.M.: Use of representative models in the integration of risk analysis and production strategy definition. J. Petrol. Sci. Eng. 44, 131–141 (2004)
Simon, C., Hasche, F., Gasteiger, H.A.: Influence of the gas diffusion layer compression on the oxygen transport in PEM fuel cells at high water saturation levels. J. Electrochem. Soc. 164(6), F591–F599 (2017)
Skjaeveland, S. M., Siqveland, L. M., Kjosavik, A., Hammervold, W. L., Virnovsky, G. A.: Capillary pressure correlation for mixed-wet reservoirs. In: SPE india oil and gas conference and exhibition, 17–19 February 1998, New Delhi, India, number SPE 39497 (1998)
Sorop, T. G., Masalmeh, S. K., Suijkerbuijk, B. M. J. M., van der Linde, H. A., Mahani, H., Brussee, N. J., Marcelis, F. A. H. M., Coorn, A.: Relative permeability measurements to quantify the low salinity flooding effect at field scale. In: Abu Dhabi international petroleum exhibition and conference held in Abu Dhabi, UAE, 9–12 November 2015, number SPE-177865-MS (2015)
Subbey, S., Monfared, H., Christie, M., Sambridge, M.: Quantification of uncertainty in flow functions derived from SCAL data. Transp. Porous Media 65, 265–286 (2006)
Taheriotaghsara, M.: Enhanced oil recovery methods targeting danish north sea chalk reservoirs PhD Thesis, Denmark Technical University (2020)
Taheriotaghsara, M., Bonto, M., Eftekhari, A., Nick, H.M.: Prediction of oil breakthrough time in modified salinity water flooding in carbonate cores. Fuel 274 (2020)
Tuller, M., Or, D.: Hydraulic conductivity of variably saturated porous media: film and corner flow in angular pore space. Water Resour. Res. 37(5), 1257–1276 (2001)
Valdez, A.R., Rocha, B.M., Chapiro, G., dos Santos, R.W.: Uncertainty quantification and sensitivity analysis for relative permeability models for two-phase flow in porous media. J. Petrol. Sci. Eng. 192, 107297 (2020)
Varnon, J., Greenkorn, R.A.: Nonuniqueness of steady state fingering solutions in porous media. Water Resour. Res. 6, 1411–1414 (1971)
Vrugt, J. A., Dane, J.: Inverse modeling of soil hydraulic properties. Encycl. Hydrol. Sci. 6 Soils (2006)
Wang, Y., Cheng, S., Zhang, K., An, X.: Type-curve analysis of modified two-rate flow test: a simple yet effective technique to minimize the non-uniqueness of interpretation results. J. Petrol. Sci. Eng. 190
Welge, H.J.: A simplified method for computing oil recovery by gas or water drive. J. Petrol. Technol. 4 (1952)
Whitaker, S.: Flow in porous media I: a theoretical derivation of Darcy’s law. Transp. Porous Media. 1, 3–25 (1986). https://doi.org/10.1007/BF01036523
Wyckoff, R., Botset, H.: The flow of gas-liquid mixture through unconsolidated sands. Physics 7, 325–345 (1936)
Zhao, B., Ratnakar, R., Dindoruk, B., Mohanty, K.: A Hybrid approach for the prediction of relative permeability using machine learning of experimental data and numerical proxy SCAL data. SPE Jo. 25(05), 2749–2764 (2020)
Zou, S., Armstrong, R.T., Arns, J.Y., Arns, C.H., Hussain, F.: Experimental and theoretical evidence for increased ganglion dynamics during fractional flow in mixed-wet porous media. Water Resour. Res. 54(5), 3277–3289 (2018)
Acknowledgements
Tibi Sorop, Yingxue Wang, F. Omer Alpak, Matthias Appel, Justin Freeman, and Martin Kraaijveld are acknowledged for helpful discussions and their support.
Funding
Shell Global Solutions International B.V. has provided funding for conducting this research.
Author information
Authors and Affiliations
Contributions
S. B. and H. D. conceptualized the work. H.D. wrote the Python two-phase flow code and the interface to the commercial reservoir simulator. S. B. and E. U. wrote and revised the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Availability of data and material
Data and material are available upon request.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Berg, S., Unsal, E. & Dijk, H. Sensitivity and Uncertainty Analysis for Parameterization of Multiphase Flow Models. Transp Porous Med 140, 27–57 (2021). https://doi.org/10.1007/s11242-021-01576-4
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11242-021-01576-4