Following construction of a reservoir simulation model, history matching is a process to synchronize the simulation model with production data. History matching is a critical step in reservoir simulation modeling and reservoir management. A history-matched model can be used to simulate future reservoir behavior with higher accuracy, and can be further used for optimal field development, performance optimization, and uncertainty quantifications. Computational cost, uncertainty quantification, and consistency of the reservoir simulation models are three key factors that need to be taken into consideration in a history matching process. Currently, there are two main history matching approaches for reservoir simulation models. One is the traditional approach, which relies on trial-error in adjusting the multipliers to minimize mismatch between a model's forecasts and measured data. The other is the modern approach, which uses computerized algorithm to directly tune parameters. The traditional approach is inefficient and highly depends on human interpretation. The modern approach is highly affected by prior selection, likelihood calculation, and posterior samplings.
This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in limiting the scope of the claimed subject matter.
In one aspect, embodiments disclosed herein relate to a method for history matching utilizing Bayesian Markov Chain Monte Carlo (MCMC) workflow that includes selecting, by a computer processor, a reservoir simulation model of interest. The method includes identifying, by the computer processor, a mathematical model relevant to the reservoir simulation model. The method includes identifying, by the computer processor, a plurality of history matching parameters relevant to the reservoir simulation model as initial priors. The method includes constructing, by the computer processor utilizing the initial priors, a first model. The method includes obtaining, by the computer processor and utilizing the first model, updated priors. The method includes constructing, by the computer processor, a second model. The method includes obtaining, by the computer processor and utilizing the second model, posteriors. The method includes determining, by the computer processor, history matching accuracy of the reservoir simulation model by comparing medians of the posteriors and a plurality of measured data. The method includes, upon determining that the reservoir simulation model is accurate, performing, by the computer processor utilizing the reservoir simulation model, a plurality of predictions of a reservoir.
In one aspect, embodiments relate to a system for performing history matching utilizing Bayesian MCMC workflow. The system includes a history matching manager comprising a computer processor. The history matching manager selects a reservoir simulation model of interest. The history matching manager identifies a mathematical model relevant to the reservoir simulation model. The history matching manager identifies a plurality of history matching parameters relevant to the reservoir simulation model as initial priors. The history matching manager constructs, utilizing the initial priors, a first model, and obtains, utilizing the first model, updated priors. The history matching manager construct a second model and obtains, utilizing the second model, posteriors. The history matching manager determines history matching accuracy of the reservoir simulation model by comparing medians of the posteriors and a plurality of measured data. The history matching manager, upon determining that the reservoir simulation model is accurate, performs, utilizing the reservoir simulation model, a plurality of predictions of a reservoir.
In some embodiments, embodiments relate to a non-transitory computer readable medium storing instructions. The instructions select a reservoir simulation model of interest. The instructions identify a mathematical model relevant to the reservoir simulation model. The instructions identify a plurality of history matching parameters relevant to the reservoir simulation model as initial prior. The instructions construct utilizing the initial priors, a first model, and obtain, utilizing the first model, updated priors. The instructions constructing a second model, and obtain, utilizing the second model, posteriors. The instructions determine history matching accuracy of the reservoir simulation model by comparing medians of the posteriors and a plurality of measured data. The instructions, upon determining that the reservoir simulation model is accurate, perform, utilizing the reservoir simulation model, a plurality of predictions of a reservoir.
Other aspects and advantages of the claimed subject matter will be apparent from the following description and the appended claims.
Specific embodiments of the disclosed technology will now be described in detail with reference to the accompanying figures. Like elements in the various figures are denoted by like reference numerals for consistency.
In the following detailed description of embodiments of the disclosure, numerous specific details are set forth in order to provide a more thorough understanding of the disclosure. However, it will be apparent to one of ordinary skill in the art that the disclosure may be practiced without these specific details. In other instances, well-known features have not been described in detail to avoid unnecessarily complicating the description.
Throughout the application, ordinal numbers (e.g., first, second, third, etc.) may be used as an adjective for an element (i.e., any noun in the application). The use of ordinal numbers is not to imply or create any particular ordering of the elements nor to limit any element to being only a single element unless expressly disclosed, such as using the terms “before”, “after”, “single”, and other such terminology. Rather, the use of ordinal numbers is to distinguish between the elements. By way of an example, a first element is distinct from a second element, and the first element may encompass more than one element and succeed (or precede) the second element in an ordering of elements.
As mentioned above, in order to achieve successful history matching results of reservoir simulation models, three challenges, computational cost, uncertainty quantification, and consistency of the reservoir simulation models must be overcome. Among all of various traditional and modern methods, the Bayesian Markov Chain Monte Carlo (MCMC) history matching method provides a rigorous framework for performing model calibration while considering uncertainties.
Bayesian statistics is a system for describing uncertainty using the mathematical language of probability. In Bayesian statistics, the probability expresses a degree of belief in an event. The degree of belief may be based on prior knowledge about the event, such as the results of previous experiments, or on personal beliefs about the event. Such degree of belief may be referred as prior, or prior distribution. Bayesian statistical method starts with an existing prior and updates the prior using various measured data to give a posterior (or posterior distribution), the latter of which is used as the basis for inferential decisions. More specifically, in this system, the prior is assigned, which represents an evaluation or prediction of an event before obtaining data; the posterior represents an evaluation or evaluation of the event based on the obtained data. In particular, the prior is combined with likelihood to provide the posterior. The likelihood is derived from an aleatory sampling model.
The above described Bayesian statistical procedure, i.e., obtaining the posterior based on the prior and the likelihood, may be commonly realized by MCMC methods. MCMC methods comprise a class of algorithms for statistical sampling, and developing posterior by utilizing the knowledge from the prior through the statistical sampling and by calculating the likelihood. In particular, the more steps included in a MCMC method, the more closely the distribution of the sample matches the actual desired distribution. Examples of MCMC algorithms include: Metropolis-Hastings, Reversible Jump, and Hamiltonian Monte Carlo. MCMC methods are highly affected by prior selection, likelihood calculation, and posterior sampling.
This disclosure aims to provide a history matching method and a system that employ Bayesian MCMC workflow. Specifically, the method develops efficient and cost-effective multi-fidelity models. Further, the method provides proper prior selection, optimum likelihood calculation, and optimum posterior sampling. As a result, the method and system in the disclosure provide precise and physical consistent history matching results.
In general, embodiments of the disclosure include developing a coarse low-fidelity model using Design of Experiment (DoE). DoE is a branch of applied statistics, and refers to the design of a task to study the relationship between multiple input variables and key output variables. As one example, DoE studies effects of multiple input variables or factors on a desired output or response, and may predict the desired output or responses accordingly. DoE may identify and select suitable independent, dependent, and control variables, but planning the delivery of the experiment under statistically optimal conditions given the constraints of available resources.
Embodiments of the disclosure also include constructing a fine low-fidelity model. Embodiments of the disclosure further include feeding posterior into a high-fidelity model to evaluate history matching quality. In particular, the coarse low-fidelity model aims to update initial priors to further improve history matching accuracy. Moreover, by running the fine low-fidelity model in Bayesian workflow, which is a surrogate model of the high-fidelity model, history matching cost is reduced while maintaining physics and accuracy of the high-fidelity model. More specifically, as a surrogate model, the fine low-fidelity model does not only accurately presents the high-fidelity model by providing acceptable results, but also maintains physics consistency of the high-fidelity model so that it captures the trend of the high-fidelity model.
Keeping with
In some embodiments, the history matching manager may include a graphical user interface (GUI) (110) that receives instructions and/or inputs from users. More specifically, the users may enter various types of instructions and/or inputs via the GUI (110) to start certain actions, such as obtaining, calculating, evaluating, selecting, and/or updating data or parameters. In addition, the users may obtain various types of results from the certain actions via the GUI (110) as outputs.
In some embodiments, the history matching manager (100) may include a data controller (120). The data controller (120) may be software and/or hardware implemented on any suitable computing device, and may include functionalities for selecting, obtaining, and/or, processing data from the high-fidelity reservoir model (150), including the history matching parameters (155). The data controller (120) may include data processors (125) and data storage (126). Specifically, the data processors (125) process the data from the high-fidelity reservoir model (150) as well as the data stored in the data storage (126). The data storage (126) may store various data from the high-fidelity reservoir model (150), and other data and parameters for the other components and functionalities of the history matching manager (100).
Keeping with
where ψα(ξ) is an orthogonal basis function, and ξ is a vector of random ariables linked to model parameters. The subscript α denotes a multi-index scheme, where α∈A and
q is the index of model parameter and l is the index of basis function. α returns the polynomial degree.
As mentioned above, MCMC methods are highly affected by prior selection. Therefore, in order to obtain more accurate history matching result, the initial priors (156) are updated by the coarse low-fidelity PCE model (130) to obtain updated priors (170). More specifically, the coarse low-fidelity PCE model (130) improves bounds of the initial priors (156) by utilizing one or more PCE methods to obtain the updated priors (170). In particular, the updated priors (170) are used as priors in the Bayesian framework adopted by the history matching manager (100).
In some embodiments, the coarse low-fidelity PCE model (130) may be constructed utilizing coarse Latin Hypercube Sampler (LHS) (135). Details of the coarse low-fidelity PCE model (130) and the coarse LHS (135) are explained below in
Further, the history matching manager (100) may include a fine-low-fidelity PCE model (140) and an MCMC algorithm (165) to generate posteriors (190). For example, the MCMC algorithm (165) may refer to at least one of the MCMC algorithm examples mentioned above. The posteriors (190) represent predicted distributions of the history matching parameters (155) based on the updated priors (170). Similar to the coarse low-fidelity PCE model (130), the fine low-fidelity PCE model (140) obtains the posteriors (190) by utilizing one ore more PCE methods.
In some embodiments, the fine low-fidelity PCE model (140) may be constructed utilizing fine LHS (145). Compared to the coarse LHS (135), the fine LHS (145) may use a larger training set for sampling. In some embodiments, 2-5% of sample size of the fine low-fidelity PCE model (140) is used to generate the coarse low-fidelity model (130). In particular, the fine low-fidelity PCE model (140) is an cost-effective substitute model representing the high-fidelity reservoir model (150). Details of the fine low-fidelity PCE model (140) are explained below in
Further, the history matching manager (100) may include functionality to feed the generated posteriors (190) back to the high-fidelity reservoir model (150) to determine whether the history matching produces accurate and physically consistent results. Upon determining good quality of the history matching, the corresponding posteriors are referred as final posteriors (195). Once the final posteriors (195) are determined, the successfully history matched high-fidelity reservoir model (150) is applied for future predictions, such as predicting oil and gas productions, etc.
In some embodiments, the GUI (110) and the data controller (120) are coupled to the various models (130, 140, and 150), so that the various models perform their functionalities upon receiving instructions or inputs from the users. In some embodiments, the initial priors (156), the updated priors (170), the posteriors (190), and the posteriors (195) are obtained, generated, processed, and/or stored by the data controller (120), and are delivered to the users through the GUI (110).
While
Turning to
In Step 201, a reservoir simulation model of interest for history matching is selected. For example, the selected reservoir simulation model may refer to the high-fidelity reservoir model (150) as illustrate in
In Step 202, mathematical models relevant to the reservoir simulation model of interest is identified. For example, the selected reservoir simulation model may identify as a mathematical model representing water injection into an oil reservoir at a constant temperature, including only one water injector and one oil producer. The identified mathematical model is referred as water injection model below for illustration purposes. However, examples of the mathematical models identified in Step 202 is not limited to the above example, and may comprise, for example, 3D gas injection into an oil reservoir.
Step 202 is necessary to understand the physics of the problem and to ensure consistency of the high-fidelity reservoir model. Specifically, the physics of the problem refers to governing equations that describe physics of the high-fidelity reservoir model. Consistency of the high-fidelity reservoir model refers to whether predicted posteriors would capture the physics of the model. Taking the water injection model as example, fluid flow properties can be predicted by solving the mass conservation and momentum equation in 2D, which are as equations (2)-(6):
In Step 203, a set of history matching parameters with associated uncertainty are obtained to identify initial priors. Specifically, the history matching parameters are the uncertain parameters that control variance and precision of the reservoir simulation model's prediction. Each history matching parameter is described with a distribution and variability (upper and lower bounds). Such distributions are taken as the initial priors. Take the water injection model as example, identified history matching parameters comprise permeability, porosity, thickness, oil viscosity, and water injection rate.
In Step 204, a coarse low-fidelity model is constructed to obtain updated priors. Specifically, the coarse low-fidelity model is constructed using space-filling DoE, and the space-filling DoE uses LHS as statistical sampling. Space-filling DoE provides uniform filling of a design space for a special number of samples or generates sequences reasonably uniformly distributed when terminated at any point. Space-filling DoE supports the generation of Latin Hypercubes. LHS is a statistical method for generating a near-random sample of parameters from a multidimensional distribution and is often used to construct experiment for MCMC algorithms. For example, the constructed coarse low-fidelity model may refer to the coarse low-fidelity PCE model (130) utilizing coarse (less datasets) LHS (135) described in
For example,
In Step 205, a fine low-fidelity model is constructed to obtain posteriors. Similar to constructing the coarse low-fidelity model, the fine low-fidelity model is constructed using space-filling DoE, which further uses LHS as statistical sampling, but with a larger training set. The updated priors obtained from Step 204 are used as initial inputs to develop the posteriors using Bayesian-optimized Adaptive MCMC workflow. Particularly, resolution of a low-fidelity model is proportional to the size of a training set that is used to train the low-fidelity model. As such, the coarse low-fidelity PCE model may use a smaller training set compared to the fine low-fidelity PCE model. For example, the fine low-fidelity model may refer to the fine low-fidelity PCE model (140) utilizing fine (more datasets) LHS (145) described in
In Step 206, the posteriors obtained from Step 205 are imported in the reservoir simulation model of interest selected in Step 201 to check accuracy and physical consistency of the reservoir simulation model.
In Step 207, determine if P50 prediction matches measured data. Specifically, P50 prediction is the 50th percentile (median) in a probability distribution of an uncertain parameter. In some embodiments, P50 of the posteriors is fed back to the selected reservoir simulation model to compare with the measured data. The measured data refer to data the high-fidelity model wants to match. In some embodiments, the measured data may come from actual field measurements, such as pressures, oil recovery, gas oil ratio, etc. If the determination result is yes, the history matching produces accurate and physically consistent results. Then, the flowchart goes to Step 208 and outputs the corresponding posteriors as final posteriors. With that, the process ends. If the determination is no, the flowchart goes to Step 209.
In Step 209, a determination of the quality of the fine low-fidelity model is made. If the quality is good, the procedure goes back to Step 203 to inspect the history matching parameters in terms of initial prior ranges and distributions. If the quality is poor, the procedure goes back to Step 205 to retrain the fine low-fidelity model with a larger training set.
In Step 210, upon determining that the P50 prediction matches the measured data, the selected reservoir simulation model is determined as being matched and accurate. This matched reservoir simulation model is further utilized to make production predictions of the reservoir, for example, to predict oil and gas productions in the reservoir. In some embodiments, the matched reservoir simulation model may be used in determining recovery schemes for the reservoir.
Those skilled in the art will appreciate that the process of
Turning to
As shown in
As convergence and precision Bayesian MCMC workflow highly depend on prior selection, the initial priors (702) are updated through a coarse low-fidelity PCE model (710) to obtain updated priors (703). For example, coarse low-fidelity PCE model (710) may refer to the coarse low-fidelity PCE model (130) in
The workflow in
Keeping with
Further, the posteriors (704) obtained from the MCMC is fed into the high-fidelity model (700) to ensure accuracy and physical consistency. Specifically, upon determining that the posteriors (704) match the measured data, the history matching produces accurate and physically consistent results. In some embodiments, upon determining that discrepancy between the posteriors and the measured data (707) is good, the corresponding posteriors are determined as final posteriors (708).
Upon determining that the posteriors (704) do not match the measured data, in some embodiments, the following two inspections may be performed in order to improve the history matching results. The first inspection (740) is to check quality of the fine low-fidelity PCE model (720). Accuracy of fine low-fidelity PCE model (720) determines convergence and reliability of the Bayesian MCMC results. The fine-low fidelity PCE model (720) may be revised by increasing number of training samples. The second inspection (760) is to revise the matching parameters (701) and check physics of the high-fidelity reservoir model (700). Particularly, checking physics is to better understand recovery mechanisms in the reservoir and to look for any neglected uncertainty parameters. In addition to the above inspections, other possible that could lead to poor history matching results between the predicted and measured data should also be considered. As such, additional inspections on or adjustment to the other components in the Bayesian MCMC workflow may also be performed.
While
Turning to
In one or more embodiments, for example, the input device 820 may be coupled to a receiver and a transmitter used for exchanging communication with one or more peripherals connected to the network system 830. The receiver may receive information relating to the history matching of the reservoir simulation model as described in
Further, one or more elements of the computing system 800 may be located at a remote location and be connected to the other elements over the network system 830. The network system 830 may be a cloud-based interface performing processing at a remote location from the well site and connected to the other elements over a network. In this case, the computing system 800 may be connected through a remote connection established using a 5G connection, such as protocols established in Release 15 and subsequent releases of the 3GPP/New Radio (NR) standards.
The computing system in
While
Although only a few example embodiments have been described in detail above, those skilled in the art will readily appreciate that many modifications are possible in the example embodiments without materially departing from this invention. Accordingly, all such modifications are intended to be included within the scope of this disclosure as defined in the following claims. In the claims, means-plus-function clauses are intended to cover the structures described herein as performing the recited function and not only structural equivalents, but also equivalent structures. Thus, although a nail and a screw may not be structural equivalents in that a nail employs a cylindrical surface to secure wooden parts together, whereas a screw employs a helical surface, in the environment of fastening wooden parts, a nail and a screw may be equivalent structures. It is the express intention of the applicant not to invoke 35 U.S.C. § 112, paragraph 6 for any limitations of any of the claims herein, except for those in which the claim expressly uses the words ‘means for’ together with an associated function.