Format-independent oil reservoir model post-processing general agent interface method
By adopting a format-independent generic proxy interface method for reservoir model post-processing, the problem of data format differences between different numerical simulation software is solved, enabling unified access and analysis of data, simplifying the development process, supporting the conversion and comparison of multiple models, and improving data sharing efficiency.
Patent Information
- Application Number
- CN202410677409.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2025-12-02
AI Technical Summary
Existing commercial and self-developed numerical simulation software cannot effectively integrate and share data from various software results due to format differences, leading to difficulties in data sharing and comparative analysis, as well as long compilation times.
A format-independent, general proxy interface method for reservoir model post-processing is adopted. By using a customized parsing engine to proxy the model and a common access interface, different types of simulator data are loaded and parsed, stored in a unified model basic data structure, and accessed and analyzed through the common interface. This method supports the conversion and comparison of multiple models.
It achieves data format independence across different numerical simulation software, reduces compilation time, isolates development errors, supports hot-swappable plug-in functions, provides a unified data access and analysis interface, and simplifies business application development.
Smart Images

Figure CN121050839A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of reservoir numerical simulation post-processing technology, and in particular to a format-independent universal proxy interface method for reservoir model post-processing. Background Technology
[0002] Currently, various commercial and self-developed numerical simulation software programs possess different keyword systems and output formats, each equipped with its own corresponding post-processing system. This makes it difficult to effectively integrate the results data from multiple numerical simulation software programs, enabling data sharing, comparative analysis, and other tasks. Therefore, it is necessary to develop a post-processing technique compatible with the result formats of different reservoir simulation software systems to address the differences between them and improve loading speed. One feasible method is to abstract different numerical simulation software programs into a standard object model based on the objects of the numerical simulation business, thereby achieving effective integration of different result data. Currently, no relevant technical method has been developed to achieve this function.
[0003] Chinese patent application CN201410833925.4 discloses a method for integrated management of multiple data sources in oil and gas fields. The method includes: Step 1, establishing a unified data model based on a reference model and multiple data sources; Step 2, establishing a central database through projection deployment based on the unified data model; and Step 3, building a data management system by integrating multiple protocol data interfaces using the unified data model and the central database. This invention addresses the lack of mature or universal technologies for managing diverse data and integrating multiple data sources during the digital construction and transformation of oil and gas fields. It meets the needs of unified standard management, standardized management, seamless integration of multiple data sources, and collaborative work in digital oilfields, and has significant social and economic benefits.
[0004] Chinese patent application CN202210258208.8 discloses a reservoir modeling method and system based on multi-source data integration. This method designs standard templates covering reservoir data extraction requirements based on the data characteristics of associated multi-source reservoir data and the applied modeling data conditions. Reservoir source data is extracted from multi-source databases according to the required modeling data conditions and stored in the standard templates. The integrity and validity of data in each sub-template are verified according to preset modeling conditions, and anomalies are overcome. Finally, the source data that meets the conditions is converted into several reservoir numerical model module data structure files, which are then integrated to obtain the overall reservoir numerical model. This approach overcomes the problems of insufficient accuracy and long processing time in existing reservoir modeling methods. It organically combines data templates that consider both data attributes and applied modeling conditions with data processing technology, achieving rapid data integration throughout the entire process. This ensures the accuracy and matching degree of relevant data in reservoir modeling while improving modeling efficiency.
[0005] Chinese patent application CN202210258210.5 discloses a method and system for fusion processing of multi-source oil and gas reservoir data. This method designs a standard template covering the comprehensive extraction needs of oil and gas reservoir data based on the data characteristics of associated multi-source oil and gas reservoir data and the modeling data conditions for application. Based on this, oil and gas reservoir source data is extracted from independent or integrated multi-source databases according to the required modeling data conditions and stored in corresponding sub-templates of the standard template. The integrity and validity of the data in each sub-template are verified according to preset modeling conditions, and anomalies are overcome. Finally, the source data that meets the conditions is transmitted to the corresponding data modeling platform. This approach overcomes the problems of long processing times and format mismatches in existing technologies. It organically combines data templates that consider both data attributes and application modeling conditions with data processing technology, achieving rapid data integration throughout the entire process. This not only efficiently processes data but also ensures the accuracy and matching degree of the processing results with the modeling application.
[0006] The existing technologies described above are significantly different from the present invention and have failed to solve the technical problem we want to address. Therefore, we have invented a new format-independent universal proxy interface method for reservoir model post-processing. Summary of the Invention
[0007] The purpose of this invention is to provide a format-independent general proxy interface method for reservoir model post-processing that allows for the arbitrary addition or removal of supported simulation software types, achieving format independence and development isolation, and providing technical support for next-generation reservoir numerical simulation software.
[0008] The objective of this invention can be achieved through the following technical measures: a format-independent universal proxy interface method for reservoir model post-processing, which includes:
[0009] Step 1: Customize the parsing engine proxy model and common access interface for different numerical simulation software;
[0010] Step 2: Connect to multiple model parsing engines, load and parse different types of simulator data results;
[0011] Step 3: Store the parsed numerical simulation results data into a unified model basic data structure;
[0012] Step 4: Access the model data through the reservoir model public interface;
[0013] Step 5: Using the various model data obtained in Step 4, develop business applications such as data statistical analysis, visualization rendering, and model comparison analysis.
[0014] The objective of this invention can also be achieved through the following technical measures:
[0015] In step 1, the parsing engines of different numerical simulation software are introduced, and their respective parsing engine proxy models and common access interfaces are customized according to a unified standard.
[0016] In step 1, new parsing engine proxy models can be dynamically added without affecting subsequent steps and upper-layer business application code development.
[0017] In step 2, multiple model parsing engines are connected via a public interface and the proxy model of the parsing engine, using a plug-in hot-swappable function to load and parse different types of simulator data results.
[0018] In step 3, the parsed numerical simulation results are stored in a unified model basic data structure, which includes a common grid data structure, a phase type data structure, a simulator type data identifier, a grid type identifier, and standard keywords for reservoir model grid parameters.
[0019] In step 3, all interfaces must be synchronously compatible with standard keywords and their simulator's original keywords, and all output data must be converted to the default unit.
[0020] In step 4, the common interfaces include: mesh model, static model, dynamic model, rock fluid model, and index model.
[0021] In step 5, developers obtain various model data through step 4 and develop business applications such as data statistical analysis, visualization rendering, and model comparison analysis. Because it is based on a unified public interface, only one set of code needs to be maintained for multiple models, avoiding the repeated development of business applications and realizing that the development of business applications is independent of the data format of numerical simulation results.
[0022] The format-independent reservoir model post-processing general proxy interface method also includes, after step 5, step 6, where different numerical simulation software models can be converted to each other through the reservoir model common interface, so that the same reservoir model can be used for calculation, comparison and analysis by different numerical simulation software, and the calculation results can be returned to step 2 to start again.
[0023] The objective of this invention can also be achieved through the following technical measures: a format-independent reservoir model post-processing universal proxy interface system, which adopts a format-independent reservoir model post-processing universal proxy interface method to achieve a unified reservoir simulation post-processing interface that saves compilation time, isolates errors, and allows for hot-plugging of plug-in functions.
[0024] This invention presents a format-independent universal proxy interface method for reservoir model post-processing. Based on a virtual interface mechanism in C++, it designs a format-independent public proxy interface for the mesh model, static model, dynamic model, rock-fluid model, and index model of reservoir simulation results. For different types of simulator data, a proxy model for the public interface and the parsing engine is developed based on the existing model parsing engine. Formal calls to the proxy parsing engine are implemented, thereby achieving a unified interface method for reservoir simulation post-processing that saves compilation time, isolates errors, and allows for hot-pluggable plug-in functions. This format-independent universal proxy interface method for reservoir model post-processing allows for the addition or removal of supported simulation software types without modifying the upper-level statistical analysis and visualization rendering functions, achieving format independence and development isolation. Based on this invention, a unified interface method for reservoir simulation post-processing that saves compilation time, isolates errors, and allows for hot-pluggable plug-in functions is realized, providing technical support for next-generation reservoir numerical simulation software. Attached Figure Description
[0025] Figure 1 This is a flowchart of a specific embodiment of the format-independent reservoir model post-processing universal proxy interface method of the present invention;
[0026] Figure 2 This is a schematic diagram of the chemical flooding numerical simulation post-processing software interface in a specific embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram of the interface of the reservoir intelligent dynamic analysis software in a specific embodiment of the present invention;
[0028] Figure 4 This is a schematic diagram of the interface of the reservoir intelligent dynamic analysis software in a specific embodiment of the present invention;
[0029] Figure 5 This is a schematic diagram illustrating the effect of loading a large-scale model into the intelligent dynamic analysis software for reservoirs in a specific embodiment of the present invention. Detailed Implementation
[0030] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0031] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments of the present invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, and / or combinations thereof.
[0032] like Figure 1 As shown, Figure 1 This is a flowchart of the format-independent reservoir model post-processing general proxy interface method of the present invention. The format-independent reservoir model post-processing general proxy interface method includes:
[0033] Step 1: Introduce the parsing engines of different numerical simulation software, and customize their respective parsing engine proxy models and common access interfaces according to a unified standard. New parsing engine proxy models can be added dynamically without affecting subsequent steps and upper-layer business application code development.
[0034] Step 2: Through the public interface and the proxy model of the parsing engine, multiple model parsing engines are connected with the plug-in hot-swappable function to load and parse different types of simulator data results.
[0035] Step 3: The parsed numerical simulation results are stored in a unified model basic data structure, including a common grid data structure, phase type data structure, simulator type data identifier, grid type identifier, and reservoir model grid parameter standard keywords. All interfaces must be synchronously compatible with the standard keywords and their simulator's original keywords, and all output data must be converted to the default units.
[0036] Step 4: Developers access the model data through the reservoir model's common interface, which includes, but is not limited to: grid model, static model, dynamic model, rock-fluid model, and index model.
[0037] Step 5: Developers acquire various model data through Step 4 and develop business applications such as data statistical analysis, visualization rendering, and model comparison analysis. Because it's based on a unified public interface, only one set of code needs to be maintained for multiple models, avoiding redundant development of business applications and making business application development independent of the numerical simulation results data format.
[0038] Step Six: Through the reservoir model common interface, different numerical simulation software models can be output to achieve mutual conversion between different software models. After that, the calculations can be performed by different numerical simulation software, and the calculation results can be returned to Step Two to start again.
[0039] This invention defines the basic data structure of the model, designs a common interface for reservoir models, and develops a proxy model for the common interface and the parsing engine based on the original model parsing engine. This enables formal calls to the proxy parsing engine, forming a format-independent post-processing proxy interface. Using this interface, general-purpose post-processing software can be written, achieving isolation from the actual model format. Furthermore, because the interface is a pure virtual function, there are no compile-time debugging issues. Supported simulation software types can be arbitrarily added or removed without modifying the upper-level statistical analysis and visualization rendering functions, achieving format independence and development isolation, providing technical support for next-generation reservoir numerical simulation software.
[0040] The following are several specific embodiments of the application of the present invention.
[0041] Example 1
[0042] In a specific embodiment 1 of the present invention, a self-developed chemical flooding numerical simulation post-processing software was developed based on a format-independent reservoir model post-processing general proxy interface method.
[0043] Since chemical flooding technology is generally applied in the mid-to-late stages of oilfield development, while water flooding is often used in the early stages, historical data fitting and future prediction for oilfields in this context require numerical simulations of both water flooding and chemical flooding. Currently, there is no numerical simulation software that effectively supports both techniques simultaneously. Therefore, this post-processing software uses a format-independent, universal proxy interface for reservoir model post-processing. It first loads a standard water flooding numerical simulation model, performs analysis, and then, depending on the actual situation, either adjusts parameters to re-perform the water flooding numerical simulation fitting and prediction, or converts the model to a chemical flooding model for later chemical flooding numerical simulation fitting and prediction. The post-processing software developers provide professional application technicians with unified post-processing tools for dynamic analysis and 3D visualization through this format-independent, universal proxy interface. This reduces development workload while providing a unified UI and data comparison standards, greatly simplifying the complexities of the work.
[0044] Figure 2 This paper presents the interface of a self-developed chemical flooding numerical simulation post-processing software, which utilizes a format-independent, general proxy interface method for reservoir model post-processing. The reservoir model shown in the figure has a grid size of 50*50*37 and 423 time steps, involving over 30 types of general dynamic and static parameters for water flooding and chemical flooding, as well as related experimental data, production data, and rock fluid data.
[0045] Example 2
[0046] In a specific embodiment 2 of the present invention, a reservoir intelligent dynamic analysis software was developed based on a format-independent reservoir model post-processing general proxy interface method.
[0047] Figure 3 The interface of the intelligent dynamic analysis software for oil reservoirs is presented. Based on the calculation results model of oil reservoir numerical simulation software, this software realizes functions such as model visualization, index curve plotting, model index statistics, oil-water relative permeability characterization, fine characterization and analysis of high water-consuming layers, and oil reservoir smoothness analysis and display. Figure 4 The display software platform, based on a format-independent reservoir model post-processing general proxy interface method, can load multiple commercial and self-developed numerical simulation software models, enabling the loading, characterization, quantitative analysis, and comparative analysis of results from multiple master models under the same software platform.
[0048] Example 3
[0049] In a specific embodiment 3 of the present invention, a reservoir intelligent dynamic analysis software was developed based on a format-independent reservoir model post-processing general proxy interface method.
[0050] Figure 5 The given loading model has a mesh size of 196*316*180, a total mesh count of ten million, a time step of 283 steps, more than 200 wells, and more than 20 dynamic and static parameters. The proposed method enables stable and fast loading and access.
[0051] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0052] Except for the technical features described in the specification, all other technologies are known to those skilled in the art.
Claims
1. A format-independent, general proxy interface method for reservoir model post-processing, characterized in that: The format-independent reservoir model post-processing general proxy interface methods include: Step 1: Customize the parsing engine proxy model and common access interface for different numerical simulation software; Step 2: Connect to multiple model parsing engines, load and parse different types of simulator data results; Step 3: Store the parsed numerical simulation results data into a unified model basic data structure; Step 4: Access the model data through the reservoir model public interface; Step 5: Using the various model data obtained in Step 4, develop business applications such as data statistical analysis, visualization rendering, and model comparison analysis.
2. The format-independent reservoir model post-processing general proxy interface method according to claim 1, characterized in that, In step 1, the parsing engines of different numerical simulation software are introduced, and their respective parsing engine proxy models and common access interfaces are customized according to a unified standard.
3. The format-independent reservoir model post-processing general proxy interface method according to claim 2, characterized in that, In step 1, new parsing engine proxy models can be dynamically added without affecting subsequent steps and upper-layer business application code development.
4. The format-independent reservoir model post-processing general proxy interface method according to claim 1, characterized in that, In step 2, multiple model parsing engines are connected via a public interface and the proxy model of the parsing engine, using a plug-in hot-swappable function to load and parse different types of simulator data results.
5. The format-independent reservoir model post-processing general proxy interface method according to claim 1, characterized in that, In step 3, the parsed numerical simulation results are stored in a unified model basic data structure, which includes a common grid data structure, a phase type data structure, a simulator type data identifier, a grid type identifier, and standard keywords for reservoir model grid parameters.
6. The format-independent reservoir model post-processing general proxy interface method according to claim 5, characterized in that, In step 3, all interfaces must be synchronously compatible with standard keywords and their simulator's original keywords, and all output data must be converted to the default unit.
7. The format-independent reservoir model post-processing general proxy interface method according to claim 1, characterized in that, In step 4, the common interfaces include: mesh model, static model, dynamic model, rock fluid model, and index model.
8. The format-independent reservoir model post-processing general proxy interface method according to claim 1, characterized in that, In step 5, developers obtain various model data through step 4 and develop business applications such as data statistical analysis, visualization rendering, and model comparison analysis. Because it is based on a unified public interface, only one set of code needs to be maintained for multiple models, avoiding the repeated development of business applications and realizing that the development of business applications is independent of the data format of numerical simulation results.
9. The format-independent reservoir model post-processing general proxy interface method according to claim 1, characterized in that, The format-independent reservoir model post-processing general proxy interface method also includes, after step 5, step 6, where different numerical simulation software models can be converted to each other through the reservoir model common interface, so that the same reservoir model can be used for calculation, comparison and analysis by different numerical simulation software, and the calculation results can be returned to step 2 to start again.
10. A format-independent universal proxy interface system for reservoir model post-processing, characterized in that: The format-independent reservoir model post-processing general proxy interface system adopts the format-independent reservoir model post-processing general proxy interface method described in any one of claims 1-9 to achieve a unified reservoir simulation post-processing interface that saves compilation time, isolates errors, and allows for hot-plugging of plug-in functions.
Citation Information
Patent Citations
A method and data management system for integrated management of multiple data sources in oil and gas fields
CN104504094B
Fusion processing method and system for multi-source oil and gas reservoir data
CN114969024A
Oil reservoir modeling method and system based on multi-source data integration
CN115034028A
