A three-dimensional reservoir history fitting method and system based on discrete cosine transform
Through discrete cosine transformation and ES-MDA assimilation methods, the problems of poor permeability adjustment and insufficient three-dimensional fit in the numerical simulation of reservoirs are solved, efficient and accurate reservoir historical fit is achieved, and the scientificity and accuracy of reservoir development are improved.
Patent Information
- Application Number
- CN202411878922.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2044-12-19
AI Technical Summary
The existing numerical simulation software for reservoirs has problems such as strong subjectivity, poor permeability adjustment and insufficient fitting of three-dimensional complex reservoirs during historical fit, resulting in deviations in prediction data.
The permeability field is converted into frequency domain by discrete cosine transformation, a priori geological model is generated using Monte Carlo method, the key frequency domain is screened through Pareto correlation analysis, and the parameters are adjusted using the ES-MDA assimilation method until a posterior geological model that meets the error threshold is generated.
The accuracy and efficiency of historical fitting of reservoirs are improved, ensuring that the model accurately reflects the real situation of the reservoir, and providing a reliable basis for reservoir development.
Smart Images

Figure CN119323145B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a three-dimensional reservoir history fitting method and system based on discrete cosine transform. Background Art
[0002] In the field of reservoir numerical simulation, accurate history matching is crucial for reservoir dynamic prediction. However, existing conventional commercial reservoir numerical simulation software mainly uses the method of adjusting permeability globally or by region when performing history matching. This method has many disadvantages. On the one hand, the adjustment process is highly subjective and lacks a clear zoning basis. On the other hand, in most cases, the adjusted permeability does not match the porosity well, and cannot correctly reflect the relationship between the original formation parameters, which in turn leads to deviations in the predicted data.
[0003] In terms of reservoir history matching, most existing related studies are limited to two-dimensional field parameterization and channel facies, and have serious deficiencies in dealing with three-dimensional complex heterogeneous multi-layer reservoirs; even the latest research still remains at the level of two-dimensional field parameterization and channel facies, with limited practical application value, and the history matching of three-dimensional complex conventional sandstone and carbonate reservoirs is difficult. Summary of the Invention
[0004] In view of this, the present invention proposes a three-dimensional reservoir history fitting method and system based on discrete cosine transform, which can scientifically convert the permeability field, accurately screen the key frequency domain, realize data compression, greatly improve computing efficiency, effectively adjust parameters, and improve the accuracy of reservoir history fitting.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A three-dimensional reservoir history matching method based on discrete cosine transform includes:
[0007] The permeability field is converted from the spatial domain to the M1 frequency domain by discrete cosine transform;
[0008] Using the Monte Carlo method to perturb the M1 frequency domains to generate N prior geological models;
[0009] Perform numerical simulation calculations on the N generated priori geological models to obtain calculation results corresponding to each priori geological model;
[0010] Analyze the calculation results using a Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function;
[0011] Analyzing the simulated data of the prior geological model and the actual data to obtain error data of the simulated data, and determining whether the error data exceeds a preset error threshold;
[0012] If exceeded, determining the parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold;
[0013] If it does not exceed the limit, it is determined that the 3D reservoir history matching is completed.
[0014] On the basis of the above technical solution, the present invention can also be improved as follows:
[0015] Furthermore, the step of converting the permeability field from the spatial domain to M1 frequency domains by discrete cosine transform comprises:
[0016] Calculate the coefficients after discrete cosine transform using formula (1);
[0017] Formula (1);
[0018] Where, is the coefficient after discrete cosine transform, 、 、 is the normalization coefficient, 、 、 are the number of grid points in the x, y, and z directions, respectively. is the function value in the original three-dimensional space field, and i, j, and k are the spatial indexes in the x, y, and z directions respectively.
[0019] Furthermore, the method of perturbing the M1 frequency domains using the Monte Carlo method to generate N prior geological models includes:
[0020] Each frequency domain is multiplied by the corresponding discrete cosine transformed coefficient and then weighted summed to obtain N prior geological models, where each frequency domain retains different permeability field characteristic information.
[0021] Furthermore, the calculation results are analyzed by the Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function, including:
[0022] The correlation coefficient between the two frequency domains X and Y is calculated by formula (2);
[0023] Formula (2);
[0024] Where, is the correlation coefficient between the two frequency domains X and Y, is the i-th data point of the frequency domain X, is the i-th data point of frequency domain Y, is the average value of X in the frequency domain, is the average value of Y in the frequency domain, is the number of data points.
[0025] Furthermore, determining the parameters to be adjusted from the M2 frequency domains based on the error data includes:
[0026] Calculate the posterior geological model parameter values using formula (3);
[0027] Formula (3);
[0028] Where, is the posterior geological model parameter value, is the prior geological model parameter value, is the regional correlation coefficient, is the covariance coefficient between the prior data, is the variance coefficient of the actual data, is the actual data at the jth position, is the simulated data corresponding to the j-th position of the prior geological model.
[0029] Furthermore, determining the parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted by using the ES-MDA assimilation method, includes:
[0030] Performing multi-dimensional decomposition on the error data, determining M3 frequency domains to be adjusted from the M2 frequency domains, and determining parameters corresponding to the M3 frequency domains to be adjusted as parameters to be adjusted;
[0031] Determine the adjustment direction and parameter adjustment range of the parameters to be adjusted;
[0032] The parameter to be adjusted is adjusted based on the adjustment direction and parameter adjustment amplitude range of the parameter to be adjusted.
[0033] Furthermore, the adjusting of the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed a preset error threshold comprises:
[0034] After adjusting the parameters to be adjusted using the ES-MDA assimilation method, the simulated data and actual data of the posterior geological model are analyzed to obtain error data corresponding to the simulated data. It is determined whether the error data exceeds a preset error threshold, and the process is iterated continuously until the error data is less than the preset error threshold.
[0035] A three-dimensional reservoir history matching system based on discrete cosine transform, comprising:
[0036] A discrete cosine transform module, used to transform the permeability field from the spatial domain to M1 frequency domains through discrete cosine transform;
[0037] A priori geological model generation module is used to perturb the M1 frequency domains using the Monte Carlo method to generate N priori geological models;
[0038] A numerical simulation calculation module is used to perform numerical simulation calculations on the N generated priori geological models to obtain calculation results corresponding to each priori geological model;
[0039] A correlation analysis module is used to analyze the calculation results using a Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function;
[0040] An error analysis module is used to analyze the simulated data of the prior geological model and the actual data to obtain error data of the simulated data and determine whether the error data exceeds a preset error threshold;
[0041] If exceeded, determining the parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold;
[0042] If it does not exceed the limit, it is determined that the 3D reservoir history matching is completed.
[0043] An electronic device comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the steps of the method are implemented when the processor executes the computer program.
[0044] A non-transitory computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0045] The present invention has the following advantages:
[0046] The three-dimensional reservoir history fitting method based on discrete cosine transform in the present invention converts the permeability field into the frequency domain through discrete cosine transform, which can mine the deep characteristics of the data, just like organizing the data in an organized manner, providing a good foundation for subsequent precise analysis.
[0047] The three-dimensional reservoir history fitting method based on discrete cosine transform in the present invention uses the Monte Carlo method to perturb the frequency domain to generate N prior geological models, fully considering multiple possibilities, making the prior models more diverse, more comprehensively covering the possible geological conditions of the reservoir, and avoiding fitting deviations caused by a single model.
[0048] In the present invention, the three-dimensional reservoir history fitting method based on discrete cosine transform and Pareto correlation analysis can screen out the top M2 frequency domains with the greatest correlation with the objective function, accurately locate the factors that significantly affect key reservoir indicators (such as oil production and water production), reduce unnecessary calculations, and improve analysis efficiency.
[0049] The three-dimensional reservoir history fitting method based on discrete cosine transform in the present invention continuously narrows the gap between simulation and reality by comparing the errors between simulated data and actual data, determining the parameters to be adjusted based on the error data, and adjusting them using the ES-MDA assimilation method. Through iterative optimization, the generated posterior geological model can highly accurately reflect the actual situation of the reservoir, providing a reliable basis for reservoir development decisions.
[0050] The three-dimensional reservoir history fitting method based on discrete cosine transform in the present invention constitutes a complete and efficient process from data conversion, prior model generation, correlation analysis to error adjustment. The close coordination of various links in the entire process can effectively improve the speed and quality of reservoir history fitting and promote more scientific and reasonable reservoir development planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] For purposes of illustration and not limitation, the present invention will now be described with reference to embodiments thereof and the accompanying drawings, in which:
[0052] Figure 1 Schematic diagram of the process of a three-dimensional reservoir history fitting method based on discrete cosine transform in an embodiment of the present invention;
[0053] Figure 2 Schematic diagram of the main components of a three-dimensional reservoir history matching system based on discrete cosine transform in an embodiment of the present invention;
[0054] Figure 3 Schematic diagram of the correlation between multipliers in different frequency domains and historical oil and water production in an embodiment of the present invention;
[0055] Figure 4 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0056] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0057] It should be noted that the terms "first," "second," and the like in the description of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate for the embodiments of the present invention described herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatuses.
[0058] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features thereof can be combined with each other. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0059] Figure 1 FIG. 1 is a flow chart of a three-dimensional reservoir history fitting method based on discrete cosine transform in an embodiment of the present invention. Figure 1 As shown, the three-dimensional reservoir history matching method based on discrete cosine transform provided by the embodiment of the present invention includes the following steps S101 to S107.
[0060] S101, convert the permeability field from the spatial domain to M1 frequency domains by discrete cosine transform.
[0061] Specifically: First, obtain the permeability field data of the oil reservoir. This data is a three-dimensional spatial field that represents the permeability distribution of the oil reservoir at different spatial locations. The data structure of this three-dimensional spatial field can be imagined as a large cube composed of countless tiny cubes. Each tiny cube (corresponding to a spatial location) has a specific permeability value corresponding to it. These values together constitute the permeability field of the oil reservoir.
[0062] Next, the coefficients after discrete cosine transformation are calculated using formula (1);
[0063] Formula (1);
[0064] Where, is the coefficient after discrete cosine transform; 、 、 are normalization coefficients, and their function is to ensure that the transformed data is within the appropriate numerical range; 、 、 are the number of grid points in the x, y, and z directions, respectively. In the three-dimensional space of the permeability field, a certain number of grid points are divided in each direction. These grid points are used to discretize the space and then perform mathematical calculations; is the function value in the original three-dimensional space field, that is, the permeability value corresponding to each spatial position; i, j, k are the spatial indexes in the x, y, and z directions, respectively, through which each data point in the three-dimensional space field can be located.
[0065] The coefficients after the discrete cosine transform often possess very important properties. One notable characteristic is energy concentration. After the discrete cosine transform, the energy of the data is not evenly distributed across all coefficients, but rather concentrated in low-frequency coefficients. In other words, low-frequency coefficients carry the majority of the energy. This property allows for data compression strategies that retain low-frequency coefficients while discarding high-frequency coefficients. This compression method can significantly reduce the amount of data without losing too much critical information.
[0066] Furthermore, low-frequency coefficients offer another important advantage in the frequency domain: they make it easier to extract data features. In the frequency domain, the data features represented by low-frequency coefficients often correlate with macroscopic reservoir characteristics, such as the overall permeability trend and the direction of primary flow channels. By analyzing and processing low-frequency coefficients, key information in the reservoir permeability field can be more efficiently extracted, providing strong data support for subsequent reservoir numerical simulations and development plan formulation.
[0067] S102, using the Monte Carlo method to perturb M1 frequency domains to generate N priori geological models.
[0068] Specifically, for each frequency domain, a set of random coefficients is generated, such as Figure 3 As shown, these random coefficients obey a specific probability distribution (such as uniform distribution or normal distribution), and their value range is determined according to reservoir characteristics and actual experience.
[0069] Each frequency domain is multiplied by a corresponding random coefficient and then weighted summed to obtain N prior geological models, where each frequency domain retains different permeability field characteristic information.
[0070] Assume the frequency domain is , the random coefficient is , then the prior geological model It can be expressed as:
[0071] ;
[0072] Where, is the random coefficient corresponding to the ith frequency domain in the jth prior geological model.
[0073] By repeating the above random coefficient generation and weighted summation process multiple times, N different priori geological models are generated. The N different priori geological models have different disturbance characteristics in the frequency domain, reflecting the possible different geological structures of the reservoir.
[0074] S103, performing numerical simulation calculations on the generated N priori geological models to obtain calculation results corresponding to each priori geological model.
[0075] Specifically, for each prior geological model, it is used as input and simulated using reservoir numerical simulation software. The numerical simulation process requires consideration of fluid flow equations in the reservoir, such as the mass conservation equation and the momentum conservation equation.
[0076] During the simulation, the reservoir boundary conditions and initial conditions are set. Boundary conditions include the reservoir boundary type (e.g., closed boundary, constant pressure boundary, etc.) and the physical quantities on the boundary (e.g., pressure, flow rate, etc.). Initial conditions are the distribution of physical quantities in the reservoir at the initial time (e.g., initial pressure, initial saturation, etc.).
[0077] The simulation software calculates the dynamic changes of the reservoir over a period of time by solving the fluid flow equation. The calculation results include the changes in physical quantities such as pressure, saturation, flow rate, etc. at different locations in the reservoir over time.
[0078] For each priori geological model, the above numerical simulation process is repeated to obtain N groups of different calculation results, which reflect the dynamic behavior of the reservoir under different priori geological models.
[0079] S104, analyzing the calculation results by a Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function.
[0080] Specifically, the correlation coefficient between the two frequency domains X and Y is calculated using formula (2);
[0081] Formula (2);
[0082] Where, is the correlation coefficient between the two frequency domains X and Y, is the i-th data point of the frequency domain X, which constitutes the data set of the frequency domain x under specific circumstances; is the i-th data point of frequency domain Y, these data points constitute the data set of frequency domain Y; is the average value of X in the frequency domain, is the average value of Y in the frequency domain, is the number of data points, which indicates the total number of data points used in calculating the correlation coefficient.
[0083] The value range is between -1 and 1. =1, indicating that the two frequency domains are completely positively correlated. =-1, indicating that the two frequency domains are completely negatively correlated. =0, indicating that the two frequency domains are unrelated.
[0084] In actual operation, we need to calculate the correlation coefficient for each pair of frequency domains. For example, if there are M1 frequency domains, we need to calculate In this way, a correlation coefficient matrix is obtained, in which each element represents the correlation between a pair of frequency domains.
[0085] Next, the correlation coefficient is calculated for each frequency domain and the frequency domain corresponding to the objective function (assuming the objective function can also be expressed in the frequency domain). The objective function is typically a physical quantity related to reservoir production, such as oil production, water production, and pressure. This calculation determines the degree of correlation between each frequency domain and the objective function.
[0086] Finally, the frequency domains are sorted according to the calculated correlation coefficients, and the top M2 frequency domains with the highest correlation are selected. These top M2 frequency domains have the most significant impact on the objective function. During subsequent reservoir model adjustment and optimization, these top M2 frequency domains are the focus for more accurate reservoir history matching and production prediction.
[0087] S105 , analyzing the simulated data of the priori geological model and the actual data to obtain error data of the simulated data, and determining whether the error data exceeds a preset error threshold.
[0088] Specifically, actual production data of the oil reservoir is collected, and the actual production data includes the measured values of physical quantities such as actual oil production, water production, and pressure of the oil well over time.
[0089] For each priori geological model simulation result, compare it with the corresponding actual production data. For example, compare the simulated oil production with the actual oil production, the simulated pressure with the actual pressure, etc.
[0090] The calculated error data is compared with a preset error threshold. The error threshold is determined based on the production requirements of the reservoir and actual experience. For example, the error threshold for oil production can be set at 5 cubic meters per day, and the error threshold for pressure can be set at 0.5 MPa.
[0091] S106: If exceeded, determine the parameters to be adjusted from the M2 frequency domains based on the error data, and adjust the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold.
[0092] Specifically, the posterior geological model parameter values are calculated using formula (3);
[0093] Formula (3);
[0094] Where, is the posterior geological model parameter value, is the prior geological model parameter value, which represents the model parameter before this adjustment and is the basis for the adjustment; is the regional correlation coefficient, which reflects the correlation between the prior model and the measured data in a specific area. It plays an important role in determining the amplitude of parameter adjustment. is the covariance coefficient between the prior data, which describes the correlation of the prior data itself and affects the judgment of the reliability of the prior model; is the variance coefficient of the actual data, which reflects the degree of dispersion of the actual data and helps to evaluate the fluctuation of the actual data; is the actual data at the jth position, which reflects the real situation of the reservoir and is the basis for adjusting the model; is the simulated data corresponding to the jth position of the priori geological model, and is the predicted value of the priori geological model for the reservoir situation.
[0095] When the error data exceeds a preset error threshold, we first perform a multi-dimensional decomposition of the error data. This decomposition allows us to analyze the source of the error from multiple perspectives, such as the distribution of errors at different spatial locations, different time points, or different physical quantities (such as pressure and permeability).
[0096] This decomposition enables us to gain deeper insight into how errors are generated and propagated across the M2 frequency domains.
[0097] According to the distribution of the error data in the frequency domain, M3 frequency domains to be adjusted are determined from the M2 frequency domains. These frequency domains to be adjusted are the frequency domains that contribute more to the error.
[0098] Then, the parameters corresponding to the M3 frequency domains to be adjusted are determined as the parameters to be adjusted. These parameters may include amplitude, phase, etc. in the frequency domain, and their inaccuracy may be the main reason for the error.
[0099] By analyzing the relationship between the error data and the parameters to be adjusted, the adjustment direction of each parameter to be adjusted is determined. For example, if the permeability simulation value corresponding to a certain frequency domain is too high, resulting in a large error, then the permeability-related parameters in that frequency domain need to be adjusted in the direction of reduction.
[0100] The determination of this adjustment direction requires comprehensive consideration of the physical properties of the reservoir and actual production data to ensure the rationality of the adjustment.
[0101] Determine the range of adjustment for each parameter based on the magnitude of the error, the geological complexity of the reservoir, and the uncertainty of the prior model. If the error is large and the reservoir geology is complex, a larger adjustment range may be acceptable, but avoid over-adjustment that could lead to model instability.
[0102] The determination of the adjustment range can be achieved by establishing an error-adjustment range relationship model, which can be constructed based on historical data and reservoir engineering experience.
[0103] Adjust the parameters in the specified direction and range. During the adjustment process, ensure that the parameter values remain within a reasonable physical range. For example, permeability cannot be negative, and saturation must be between 0 and 1.
[0104] After each adjustment, the posterior geological model is regenerated and numerical simulation calculations are performed to evaluate whether the adjusted model is closer to the actual situation.
[0105] After adjusting the parameters using the ES-MDA assimilation method, we need to reanalyze the simulated data from the posterior geological model and the actual data. By calculating the error between the two, we can determine whether the error exceeds the preset error threshold.
[0106] If the error data still exceeds the preset error threshold, then the above-mentioned parameter determination, adjustment direction and amplitude range determination, and parameter adjustment process need to be repeated and iterated continuously.
[0107] During each iteration, the ES-MDA assimilation method recalculates the posterior model parameters based on the new prior information (adjusted parameters and model) and actual data, allowing the model to gradually converge to a state where the error data is less than the preset error threshold, thereby obtaining an accurate posterior geological model and completing 3D reservoir history fitting.
[0108] S107: If it does not exceed, it is determined that the 3D reservoir history fitting is completed.
[0109] Specifically, when the error data does not exceed the preset error threshold, it indicates that the current posterior geological model can well fit the actual production situation of the reservoir.
[0110] At this point, it can be considered that the 3D reservoir history fitting process has been successfully completed, and the obtained geological model can be used for subsequent development and production prediction of the reservoir, such as predicting the future production of oil wells and the trend of reservoir pressure changes.
[0111] Figure 2 Schematic diagram of the main components of the three-dimensional reservoir history matching system based on discrete cosine transform in the embodiment of the present invention. Figure 2 As shown, the three-dimensional reservoir history fitting system 1 based on discrete cosine transform provided by an embodiment of the present invention includes a discrete cosine transform module 10, a priori geological model generation module 20, a numerical simulation calculation module 30, a correlation analysis module 40, and an error analysis module 50.
[0112] The discrete cosine transform module 10 is used to transform the permeability field from the spatial domain to M1 frequency domains through discrete cosine transform; the coefficients after discrete cosine transform are calculated by formula (1).
[0113] The prior geological model generation module 20 is used to perturb the M1 frequency domains using the Monte Carlo method to generate N prior geological models; for each frequency domain, a set of random coefficients is generated, each frequency domain is multiplied by the corresponding random coefficient, and then a weighted sum is performed to obtain N prior geological models, wherein each frequency domain retains different permeability field characteristic information.
[0114] The numerical simulation calculation module 30 is used to perform numerical simulation calculations on the N generated priori geological models to obtain calculation results corresponding to each priori geological model;
[0115] The correlation analysis module 40 is used to analyze the above calculation results using the Pareto correlation analysis method to obtain the first M2 frequency domains with the greatest correlation with the objective function; and calculate the correlation coefficient between the two frequency domains X and Y using formula (2).
[0116] The error analysis module 50 is used to analyze the simulation data and actual data of the prior geological model, obtain the error data of the simulation data, and judge whether the error data exceeds the preset error threshold; if it exceeds, determine the parameter to be adjusted from the M2 frequency domains based on the error data, and adjust the parameter to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold; if it does not exceed, it is determined that the three-dimensional reservoir history fitting has been completed; calculate the parameter value of the posterior geological model by formula (3); perform multi-dimensional decomposition on the error data, determine M3 frequency domains to be adjusted from the M2 frequency domains, and determine the parameters corresponding to the M3 frequency domains to be adjusted as the parameters to be adjusted; determine the adjustment direction and parameter adjustment amplitude range of the parameter to be adjusted; adjust the parameter to be adjusted based on the adjustment direction and parameter adjustment amplitude range of the parameter to be adjusted; and adjust the parameter to be adjusted by the ES- After the MDA assimilation method adjusts the parameters to be adjusted, the simulated data and actual data of the posterior geological model are analyzed to obtain error data corresponding to the simulated data, and it is determined whether the error data exceeds a preset error threshold. The method is iterated continuously until the error data is less than the preset error threshold.
[0117] Figure 4 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 4 As shown, the electronic device 60 includes: a processor 601 (processor), a memory 602 (memory) and a bus 603;
[0118] The processor 601 and the memory 602 communicate with each other via the bus 603.
[0119] The processor 601 is used to call program instructions in the memory 602 to execute the methods provided by the above-mentioned method embodiments, for example, including: converting the permeability field from the spatial domain into M1 frequency domains through discrete cosine transform; perturbing the M1 frequency domains using the Monte Carlo method to generate N priori geological models; performing numerical simulation calculations on the generated N priori geological models to obtain calculation results corresponding to each priori geological model; analyzing the calculation results using the Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function; analyzing the simulated data of the priori geological model with actual data to obtain error data of the simulated data, and determining whether the error data exceeds a preset error threshold; if so, determining parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted using the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold; if not, determining that the three-dimensional reservoir history fitting is completed.
[0120] This embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions cause a computer to execute the methods provided by the above-mentioned method embodiments, for example, including: converting a permeability field from a spatial domain into M1 frequency domains through discrete cosine transform; perturbing the M1 frequency domains using the Monte Carlo method to generate N priori geological models; performing numerical simulation calculations on the generated N priori geological models to obtain calculation results corresponding to each priori geological model; analyzing the calculation results using a Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function; analyzing simulated data of the priori geological model with actual data to obtain error data of the simulated data, and determining whether the error data exceeds a preset error threshold; if so, determining parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted using the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold; if not, determining that the three-dimensional reservoir history fitting is complete.
[0121] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk, etc. Various storage media that can store program codes.
[0122] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A three-dimensional reservoir history fitting method based on discrete cosine transform, characterized in that: include: The permeability field is converted from the spatial domain to the M1 frequency domain by discrete cosine transform; Using the Monte Carlo method to perturb the M1 frequency domains to generate N prior geological models; Perform numerical simulation calculations on the N generated priori geological models to obtain calculation results corresponding to each priori geological model; Analyze the calculation results using a Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function; Analyzing the simulated data of the prior geological model and the actual data to obtain error data of the simulated data, and determining whether the error data exceeds a preset error threshold; If exceeded, determining the parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold; If it does not exceed the limit, it is determined that the 3D reservoir history matching is completed.
2. The three-dimensional reservoir history fitting method based on discrete cosine transform according to claim 1 is characterized in that: The permeability field is converted from the spatial domain to M1 frequency domains by discrete cosine transform, comprising: Calculate the coefficients after discrete cosine transform using formula (1); = Formula (1); Where, is the coefficient after discrete cosine transform, 、 、 is the normalization coefficient, 、 、 are the number of grid points in the x, y, and z directions, respectively. is the function value in the original three-dimensional space field, and i, j, and k are the spatial indexes in the x, y, and z directions respectively.
3. The three-dimensional reservoir history fitting method based on discrete cosine transform according to claim 1, characterized in that: The method of using the Monte Carlo method to perturb the M1 frequency domains to generate N priori geological models includes: For each frequency domain, a set of random coefficients is generated, each frequency domain is multiplied by the corresponding random coefficient, and then weighted summation is performed to obtain N prior geological models, where each frequency domain retains different permeability field characteristic information.
4. The three-dimensional reservoir history fitting method based on discrete cosine transform according to claim 1, characterized in that: The calculation results are analyzed by the Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function, including: The correlation coefficient between the two frequency domains X and Y is calculated by formula (2); Formula (2); Where, is the correlation coefficient between the two frequency domains X and Y, is the i-th data point of the frequency domain X, is the i-th data point of frequency domain Y, is the average value of X in the frequency domain, is the average value of Y in the frequency domain, is the number of data points.
5. The three-dimensional reservoir history fitting method based on discrete cosine transform according to claim 1, characterized in that: The determining the parameters to be adjusted from the M2 frequency domains based on the error data includes: Calculate the posterior geological model parameter values using formula (3); Formula (3); Where, is the posterior geological model parameter value, is the prior geological model parameter value, is the regional correlation coefficient, is the covariance coefficient between the prior data, is the variance coefficient of the actual data, is the actual data at the jth position, is the simulated data corresponding to the j-th position of the prior geological model.
6. The three-dimensional reservoir history fitting method based on discrete cosine transform according to claim 1, characterized in that: Determining the parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted by using the ES-MDA assimilation method, includes: Performing multi-dimensional decomposition on the error data, determining M3 frequency domains to be adjusted from the M2 frequency domains, and determining parameters corresponding to the M3 frequency domains to be adjusted as parameters to be adjusted; Determine the adjustment direction and parameter adjustment range of the parameters to be adjusted; The parameter to be adjusted is adjusted based on the adjustment direction and parameter adjustment amplitude range of the parameter to be adjusted.
7. The three-dimensional reservoir history fitting method based on discrete cosine transform according to claim 6, characterized in that: The adjusting of the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed a preset error threshold includes: After adjusting the parameters to be adjusted using the ES-MDA assimilation method, the simulated data and actual data of the posterior geological model are analyzed to obtain error data corresponding to the simulated data. It is determined whether the error data exceeds a preset error threshold, and the process is iterated continuously until the error data is less than the preset error threshold.
8. A system for three-dimensional reservoir history matching based on discrete cosine transform, characterized in that: include: A discrete cosine transform module, used to transform the permeability field from the spatial domain to M1 frequency domains through discrete cosine transform; A priori geological model generation module is used to perturb the M1 frequency domains using the Monte Carlo method to generate N priori geological models; A numerical simulation calculation module is used to perform numerical simulation calculations on the N generated priori geological models to obtain calculation results corresponding to each priori geological model; A correlation analysis module is used to analyze the calculation results using a Pareto correlation analysis method to obtain the top M2 frequency domains with the greatest correlation with the objective function; An error analysis module is used to analyze the simulated data of the prior geological model and the actual data to obtain error data of the simulated data and determine whether the error data exceeds a preset error threshold; If exceeded, determining the parameters to be adjusted from the M2 frequency domains based on the error data, and adjusting the parameters to be adjusted by the ES-MDA assimilation method until the error data of the generated posterior geological model does not exceed the preset error threshold; If it does not exceed the limit, it is determined that the 3D reservoir history matching is completed.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A non-transitory computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Methods and systems for reservoir history matching for improved estimation of reservoir performance
CN105122153A
Strong heterogeneous reservoir history fitting method based on deep learning dimension reduction reconstruction
CN112541256A