Method, device, electronic device and medium for implementing distributed basin simulation

Through the distributed basin simulation method, the problem of the inability to accurately deal with different geological strata sediment types in the existing technology is solved, and efficient calculation of basin simulation is achieved, ensuring the authenticity of the sedimentation process and the accuracy of the age division.

CN114186375BActive Publication Date: 2024-12-03CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010968298.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-15
Publication Date
2024-12-03
Estimated Expiration
2040-09-15

AI Technical Summary

Technical Problem

The existing basin simulation methods are difficult to achieve a real stratigraphic sedimentary process and chronological division, which leads to the inability to accurately handle the sedimentary types in different regions of the same geological strata, and loses the overall significance of the basin.

Method used

Using the distributed basin simulation method, by creating model blocks, dividing calculation blocks and task blocks, and performing block calculations on distributed machines, a distributed simulation calculation scheduling is established to achieve the distinction and merging of different sedimentary types regions and process ages. calculate.

Benefits of technology

It improves the efficiency of basin simulation calculation, can process different regions in blocks when needed, and merge the results during overall calculation, ensuring the accuracy and efficiency of calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114186375B_ABST
    Figure CN114186375B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and medium for implementing distributed basin simulation, the method comprising: creating a basin modeling model block; dividing the modeling model block into a plurality of calculation blocks; dividing each calculation block into a plurality of task blocks, the plurality of task blocks being distributed to a plurality of distributed machines; establishing a calculation process corresponding to each calculation block; establishing a corresponding distributed simulation calculation scheduling based on the calculation process corresponding to each calculation block; and performing distributed block calculation based on the task block, the calculation process and the distributed simulation calculation scheduling. The present invention constructs a distributed organizational structure by creating model blocks, calculation blocks and task blocks, sets the calculation process and calculation tasks of each calculation block, and establishes a distributed simulation calculation scheduling. It can perform block calculation and merge the whole according to the properties of each algorithm in the basin simulation process, can distinguish different sedimentary type areas and process ages, and improves the efficiency of basin simulation calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of basin simulation, and in particular relates to a method, device, electronic equipment and medium for implementing distributed basin simulation. Background Art

[0002] Basin simulation is based on physical and chemical geological mechanisms. It uses computers to quantitatively simulate the formation and evolution of oil and gas basins, the generation, migration and accumulation of hydrocarbons in time and space to reveal the essence of the oil and gas laws in the basin.

[0003] Basin numerical simulation technology has developed extremely rapidly in the past decade. The wide application of basin simulation technology has made basin analysis move towards quantification, dynamics and automatic drawing. Today, basin simulation technology is not only a form of expression of geological processes, but also an indispensable means of studying various dynamic parameters. Therefore, it has been widely valued by basin analysis experts and petroleum geologists.

[0004] As a long-term technical problem, basin simulation faces difficulties and challenges in many aspects, such as accurate solution of simulation algorithms, consideration of geological factors such as faults and diagenesis, restoration of intermittent mutation processes of oil and gas migration, and reconstruction of paleohydrodynamic processes. Strengthening the application of three-dimensional geological attribute modeling and structural modeling technology, and implementing interactive simulation of key stages under the guidance of oil and gas migration and accumulation laws that conform to geological laws will be the main direction of the development of basin simulation technology in the future. In addition, incorporating the latest progress and new technologies in disciplines such as oil and gas geology, mathematical geology, and computers into basin simulation will also greatly promote the advancement of this technology.

[0005] The commercialization degree of foreign basin simulation software is relatively high, such as TEMISPACK (French Petroleum Research Institute), BasinMod (PlatteRiver, USA), PetroMod (Institute of Organic Geochemistry, Germany), etc. In the first 10 years, the one-dimensional model was mainly used, focusing on the study of the three histories of the basin, namely the geological history, thermal history, and hydrocarbon generation history, and most of them were in the experimental application stage; in the second 10 years, the two-dimensional model was mainly used, focusing on the study of the history of hydrocarbon expulsion and migration and accumulation, and fully entered the practical application stage; it is currently developing towards the direction of three-dimensional model and three-phase multi-component migration. For related literature, see "A Review and Prospect of Basin Simulation Technology in 30 Years", published in Computer Applications in the Petroleum Industry in March 2009.

[0006] The development of basin simulation software in China reached its peak in the 1990s, with more than 10 kinds of related software being developed, such as BASIMS (China Petroleum Exploration and Development Research Institute), PRES (CNOOC Research Center), BIAS (formerly Earth Software Company), GEMDASS and PASS, etc. In terms of the overall level of commercial basin simulation software, there is a gap between China and foreign countries, and continuous efforts are needed to tackle key problems.

[0007] my country's basin simulation technology was developed in the early 1980s by following the technology of Western countries, and its development process is roughly similar to that of the West. China Offshore Oil Exploration and Development Research Center also launched a one-dimensional basin simulation system (HYBSS) in 1989, and cooperated with Jilin University to launch the Oil and Gas Resource Evaluation Expert System (PRES) in 1990, which has been widely used in offshore oil and gas resource evaluation; after 1996, it cooperated with the University of California, Berkeley, the Institute of Mathematics of the Chinese Academy of Sciences, and China University of Geosciences to develop a basin simulation system (ProBases) with a two-dimensional model as the core. For related literature, see "The Development Status and Future Prospects of Basin Simulation Technology", published in Petroleum Experimental Geology in September 2001.

[0008] In basin simulation, different areas of the same geological layer may have different sedimentary types. Regarding this problem, the current mainstream software at home and abroad does not provide a good processing method. Either it is divided into multiple areas and calculated independently, which loses the overall significance of the basin; or it is turned into multiple geological layers, each layer has only one geological type, responsible for one of the areas, and the sedimentary thickness outside the area is set to zero. This does not conform to the actual stratigraphic deposition process and is not accurate in the division of ages. Only by targeting the properties of each algorithm in the basin simulation process, processing blocks when they can be calculated separately, and merging them when the overall calculation is required, can we ensure the overall significance of the basin and distinguish between areas of different sedimentary types. How to design such a basin simulation calculation process that has both block division and merging is of great significance to basin simulation.

[0009] Therefore, there is a particular need for an accurate basin simulation method that can conform to the actual stratigraphic sedimentation process and age division. Summary of the invention

[0010] The purpose of the present invention is to propose a method for implementing distributed basin simulation to solve the problem that the existing basin simulation method cannot realize the actual stratigraphic sedimentation process and age division.

[0011] In the first aspect, the present invention provides a method for implementing distributed basin simulation, including: creating a basin modeling model block; dividing the modeling model block into multiple computing blocks; dividing each computing block into multiple task blocks, and the multiple task blocks are distributed to multiple distributed machines; establishing a computing process corresponding to each computing block; based on the computing process corresponding to each computing block, establishing a corresponding distributed simulation computing schedule; performing distributed block computing based on the task blocks, computing processes and distributed simulation computing schedule.

[0012] Optionally, the basin modeling model block is segmented according to the area of ​​sedimentation type and divided into multiple calculation blocks.

[0013] Optionally, the task block is a distributed computing node for implementing basin simulation, and multiple task blocks are allocated to multiple distributed machines, and the number of task blocks allocated to each distributed machine corresponds to its computing capacity.

[0014] Optionally, each of the computing processes includes a plurality of sequentially connected sub-computing tasks, and each task block included in the computing block corresponding to the computing process executes each sub-computing task included in the computing process.

[0015] Optionally, each of the sub-computing tasks includes a computing task, an execution mode, a loop objective function and an execution state, and the execution mode of the sub-computing task is overall or block-wise.

[0016] Optionally, when the execution mode is holistic, the calculation results of all task blocks are transmitted to the modeling model block; the modeling model block executes the calculation task according to the calculation results of all task blocks to obtain the overall calculation result; the modeling model block transmits the overall calculation result to all task blocks; when the execution mode is block, the sub-calculation task executes the calculation task in its corresponding task block to obtain the block calculation result.

[0017] Optionally, when the computing task is executed as a whole, the distributed simulation computing scheduling obtains the computing results of all task blocks and transmits them to the modeling model block; receives the overall computing results of the modeling model block, and transmits the overall computing results to all task blocks.

[0018] In a second aspect, the present invention further provides an electronic device, comprising: a memory storing executable instructions; and a processor, wherein the processor runs the executable instructions in the memory to implement the above-mentioned distributed basin simulation implementation method.

[0019] In a third aspect, the present invention further provides a computer-readable storage medium storing a computer program, which implements the above-mentioned distributed basin simulation implementation method when executed by a processor.

[0020] In a fourth aspect, the present invention also provides an implementation device for distributed basin simulation, comprising: a model block creation module, which creates a basin modeling model block; a calculation block division module, which divides the modeling model block into multiple calculation blocks; a task block division module, which divides each calculation block into multiple task blocks, and the multiple task blocks are distributed to multiple distributed machines; a calculation process establishment module, which establishes a calculation process corresponding to each calculation block; a calculation scheduling establishment module, which establishes a corresponding distributed simulation calculation schedule based on the calculation process corresponding to each calculation block; and a block calculation module, which performs distributed block calculation based on the task block, calculation process and distributed simulation calculation schedule.

[0021] Optionally, the basin modeling model block is segmented according to the area of ​​sedimentation type and divided into multiple calculation blocks.

[0022] Optionally, the task block is a distributed computing node for implementing basin simulation, and multiple task blocks are allocated to multiple distributed machines, and the number of task blocks allocated to each distributed machine corresponds to its computing capacity.

[0023] Optionally, each of the computing processes includes a plurality of sequentially connected sub-computing tasks, and each task block included in the computing block corresponding to the computing process executes each sub-computing task included in the computing process.

[0024] Optionally, each of the sub-computing tasks includes a computing task, an execution mode, a loop objective function and an execution state, and the execution mode of the sub-computing task is overall or block-wise.

[0025] Optionally, when the execution mode is holistic, the calculation results of all task blocks are transmitted to the modeling model block; the modeling model block executes the calculation task according to the calculation results of all task blocks to obtain the overall calculation result; the modeling model block transmits the overall calculation result to all task blocks; when the execution mode is block, the sub-calculation task executes the calculation task in its corresponding task block to obtain the block calculation result.

[0026] Optionally, when the computing task is executed as a whole, the distributed simulation computing scheduling obtains the computing results of all task blocks and transmits them to the modeling model block; receives the overall computing results of the modeling model block, and transmits the overall computing results to all task blocks.

[0027] The beneficial effects of the present invention are as follows: the implementation process of the distributed basin simulation of the present invention creates model blocks, calculation blocks and task blocks, builds a distributed organizational structure, sets the calculation process and calculation tasks of each calculation block, and establishes distributed simulation calculation scheduling. It can target the properties of each algorithm in the basin simulation process. When block calculation is required, each distributed node processes it separately. When it is necessary to merge them for overall calculation, it can distinguish different sedimentary type areas and process ages, thereby improving the efficiency of basin simulation calculation.

[0028] The present invention has other features and advantages, which will be apparent from or will be described in detail in the accompanying drawings and the following specific embodiments incorporated herein, which together serve to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.

[0030] Figure 1 A flow chart of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0031] Figure 2 A schematic diagram of a distributed organizational framework of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0032] Figure 3 A schematic diagram of model block creation for a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0033] Figure 4 A schematic diagram of establishing computing blocks for a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0034] Figure 5 A schematic diagram of establishing task blocks of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0035] Figure 6 A schematic diagram of establishing sub-computing tasks of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0036] Figure 7 A calculation flow chart of several basin simulations of a method for implementing a distributed basin simulation according to an embodiment of the present invention is shown.

[0037] Figure 8 A distributed simulation calculation flow chart of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0038] Fig. 9 A distributed simulation computing task scheduling diagram of a distributed basin simulation implementation method according to an embodiment of the present invention is shown.

[0039] Fig.10 A block diagram of a device for implementing distributed basin simulation according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0040] The preferred embodiments of the present invention will be described in more detail below. Although the preferred embodiments of the present invention are described below, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0041] Embodiment 1

[0042] Figure 1 A flow chart of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Figure 2 A schematic diagram of a distributed organizational framework of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Figure 3 A schematic diagram of model block creation for a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Figure 4 A schematic diagram of establishing computing blocks for a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Figure 5 A schematic diagram of establishing task blocks of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Figure 6 A schematic diagram of establishing sub-computing tasks of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Figure 7 A calculation flow chart of several basin simulations of a method for implementing a distributed basin simulation according to an embodiment of the present invention is shown. Figure 8 A distributed simulation calculation flow chart of a method for implementing distributed basin simulation according to an embodiment of the present invention is shown. Fig. 9 A distributed simulation computing task scheduling diagram of a distributed basin simulation implementation method according to an embodiment of the present invention is shown.

[0043] Combination Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 and Fig. 9 As shown, the present invention provides a method for implementing distributed basin simulation, including: creating a basin modeling model block; dividing the modeling model block into multiple computing blocks; dividing each computing block into multiple task blocks, and the multiple task blocks are distributed to multiple distributed machines; establishing a computing process corresponding to each computing block; based on the computing process corresponding to each computing block, establishing a corresponding distributed simulation computing schedule; performing distributed block computing based on the task blocks, computing processes and distributed simulation computing schedule.

[0044] Specifically, a distributed organizational structure is created, which mainly includes four structures: Model Block, Solution Block, Job Block, and Job Task. The Model Block represents the overall basin modeling model. Each Solution Block represents a calculation area with the same sedimentation type. The Solution Block is divided into blocks to generate multiple Job Blocks. Each Job Block represents a distributed computing unit, which means that the distributed block calculation of this Solution Block is performed. Each calculation module in the basin simulation calculation process is a Job Task. These Job Tasks are organized together according to a certain calculation process to represent the overall calculation process of the basin simulation. For each Solution Block, a set of Job Tasks, that is, the calculation process, is created. There is a sequential relationship between each Job Task, which represents the various calculation modules of the basin simulation. There are different calculation processes depending on the type of basin simulation method to be executed.

[0045] Job Task mainly contains the following data structures: function name, execution mode, loop target function, and execution status. The function name is the computing module corresponding to this Job Task. The execution modes include block and whole. The loop target function means that after this function is executed, there may be two options for the next function: one is to execute the next Job Task function in the Job Task queue, and the other is to execute the Job Task function represented by the loop target function. The execution status includes pending execution and executed.

[0046] According to the simulation calculation scheduling diagram established under distributed conditions based on the calculation process, for the entire node, data merging and splitting, as well as synchronization are required.

[0047] In each distributed computing node, determine a scheduling node to coordinate the overall distributed computing process. This node runs the JobScheduler function to implement distributed scheduling. The specific process is as follows: First, GetReadyJobBlocks is performed, which means obtaining the Job Block and Job Task to be executed next. If obtained, the next step DoJob is performed to execute a specific computing module and execute the Job Task in each Job Block found. After the execution is completed, reset_for_next_job is performed to change the execution status of the Job Task in order to obtain the next Job Task to be performed. Then continue to perform GetReadyJobBlocks until there are no new computing tasks to be executed, and then exit.

[0048] According to an exemplary implementation, the implementation process of distributed basin simulation creates model blocks, calculation blocks and task blocks, builds a distributed organizational structure, sets the calculation process and calculation tasks of each calculation block, and establishes distributed simulation calculation scheduling. It can target the properties of each algorithm in the basin simulation process. When block calculation is required, each distributed node processes it separately. When it is necessary to merge them for overall calculation, it can distinguish between different sedimentary type areas and process ages, thereby improving the efficiency of basin simulation calculation.

[0049] As a preferred solution, the basin modeling model block is segmented according to the area of ​​sedimentation type and divided into multiple calculation blocks.

[0050] The distributed parallel organizational structure mainly includes four structures: Model Block, Solution Block, Job Block, and Job Task. Figure 2 As shown, the Model Block represents the overall basin modeling model, which is divided into blocks according to the regional range containing different sedimentary types to generate multiple Solution Blocks. Each Solution Block represents a calculation area with the same sedimentary type. The Solution Block is further divided into blocks to generate multiple Job Blocks. Each Job Block represents a distributed computing unit, which means distributed block calculation of this Solution Block. Specifically, first create a Model Block, and input the basin simulation modeling model data, including the overall model Hypermesh and some local refined area simulation Hypermeshrefined, and create the Model Block through the DeployModel function. The basin simulation modeling model data is organized as follows: Figure 3As shown in the figure, on the overall grid on the left, several areas have been locally refined, so the input data is a global Hypermesh grid and two locally refined Hypermeshrefined grids. The Model Block contains these grids, representing all basin modeling data for the overall and locally refined areas.

[0051] Next, the Model Block is divided into blocks according to the range of different sedimentary types contained in the basin model, such as Figure 4 As shown in the figure, the model contains six different sedimentation type areas from a to f, so the Solution Block is created according to these areas, and each Solution Block corresponds to one area. The range of different sedimentation type areas is defined based on the range of the entire basin. For the Hypermesh grid, the block division method is to divide the blocks according to the different sedimentation type areas as a whole, while for the Hypermeshrefined grid, it represents a part of the basin range. It is necessary to intersect the overall different sedimentation type area blocks with the current refined range to obtain the different sedimentation type area blocks corresponding to the Hypermeshrefined grid. Each of these blocks generates a Solution Block, which represents a calculation area with the same sedimentation type. At this point, the various Solution Blocks contained in the Model Block have been created.

[0052] As a preferred solution, the task block is a distributed computing node for implementing basin simulation, and multiple task blocks are allocated to multiple distributed machines, with the number of task blocks allocated to each distributed machine corresponding to its computing capacity.

[0053] After creating the Solution Block, it is further divided into blocks to generate Job Blocks. Each JobBlock represents a distributed computing unit, such as Figure 5As shown, the DeployBlock function divides the Solution Block into blocks according to the set row and column size, for example, 5x5, that is, the Solution Block is divided into a series of 5x5 JobBlocks. For the boundaries where the number of rows and columns is not divisible, the Job Block is expanded. For example, if there are 3 rows left at the end, the number of rows of the last Job Block in the row direction is expanded to 8 rows. Each Job Block is executed independently as a distributed computing unit. The purpose of generating Job Blocks instead of directly using Solution Blocks is that the size of different deposition type areas is uncontrollable, some may be large, and some may be small. Based on this level, the calculation amount of each distributed node is uneven, affecting the overall efficiency. The Solution Block is further divided into Job Blocks of specified size, and the size of each JobBlock is basically close, and the calculation amount of each distributed node can be close. Then a certain number of Job Blocks are allocated to each distributed machine, indicating that this machine executes these Job Block tasks. The number of allocations can refer to the storage space size and computing power of each machine. At this point, the basin simulation modeling data has been divided into blocks, and these blocks are sent to each distributed computing node to complete the data preparation work.

[0054] As a preferred solution, each computing process includes a plurality of sequentially connected sub-computing tasks, and each task block included in the computing block corresponding to the computing process executes each sub-computing task included in the computing process.

[0055] The basin simulation calculation process is created at the Solution Block level. Each calculation module in the basin simulation calculation process is a Job Task. These Job Tasks are organized together according to a certain calculation process to represent the overall calculation process of the basin simulation. When performing basin simulation, each Solution Block executes their Job Task. When each JobTask is executed, it will be executed in each Job Block contained in the Solution Block to which it belongs.

[0056] As a preferred solution, each sub-computing task includes a computing task, an execution mode, a loop objective function and an execution state, and the execution mode of the sub-computing task is overall or in blocks.

[0057] As a preferred solution, when the execution mode is holistic, the calculation results of all task blocks are transmitted to the modeling model block; the modeling model block executes the calculation task according to the calculation results of all task blocks to obtain the overall calculation result; the modeling model block transmits the overall calculation result to all task blocks; when the execution mode is block, the sub-calculation task executes the calculation task in its corresponding task block to obtain the block calculation result.

[0058] like Figure 2 In SolutionToJob, for each Solution Block, a set of Job Tasks is created. Each JobTask has a sequential relationship, representing each computing module of the basin simulation. For each Job Task, JobToBlock is executed to fill in all the Job Blocks contained in the Solution Block, that is, each distributed computing unit that needs to execute this Job Task. Figure 6 As shown, each Solution Block will execute a batch of Job Tasks, and each JobTask, when executed, is executed in each Job Block contained in this Solution Block.

[0059] Job Task mainly contains the following data structures: function name (computation task), execution mode, loop target function, and execution status. The function name is the calculation module corresponding to this Job Task. The execution modes include block and whole. Block means that this function can be executed in Job Block, and whole means that this function needs to be executed in Model Block. It is necessary to merge the calculation results of all Job Blocks into the original input modeling model range, and then calculate at the ModelBlock level. After calculation, the results are written to each Job Block. The loop target function means that after this function is executed, the next function may have two options. One is to execute the next JobTask function in the Job Task queue, and the other is to execute the Job Task function represented by the loop target function. The specific judgment is determined by the return value of the current Job Task function. The execution status includes pending execution and executed.

[0060] For the creation of Job Task, there are different calculation task processes depending on the type of basin simulation method to be executed, such as Figure 7 As shown in the figure, the calculation flow charts corresponding to several basin simulation methods are listed, including steady state, thermal history, single-phase overpressure, three-phase overpressure, etc. Figure 7In the four calculation flowcharts, each box represents a Job Task. These Job Tasks form a queue in the order from top to bottom and are executed sequentially. A Job Task with a loop objective function will have two arrows. One arrow points to the next Job Task in the current queue, and the other points to the objective function that it needs to execute in a loop. Those with "(whole)" behind indicate that the execution mode of this function is as a whole, while those without it indicate the execution mode is in chunks.

[0061] Taking Figure 7 the three-phase overpressure calculation process on the far right in

[0062] as an example, the Job Task queue is the order of each box from top to bottom in the figure. First, the maximum burial depth is calculated, then simulation preparation and thermal history parameter preparation are carried out. Next, the thermal history calculation is performed. In this step, all current Job Blocks need to be merged back into the original input modeling model grid, and then the calculation is carried out as a whole. After the calculation is completed, the results are written to each Job Block. Next, the thermal history loop judgment is carried out, indicating whether this calculation meets the convergence condition. If it does not meet the condition, it returns to the thermal history parameter preparation step to continue the calculation. If it meets the condition, the next overpressure parameter preparation is carried out. Then, the calculations of three-phase overpressure, overpressure_water, and overpressure_oil are performed. These three steps are also calculated as a whole. After the three steps are completed, the results are written back to each Job Block. Then, the overpressure loop judgment is carried out. If it does not converge, it returns to the overpressure parameter preparation step again. If it converges, it proceeds to the next stage simulation loop judgment, indicating whether the basin simulation for each age stage is completed. If it is not completed, it returns to the initial simulation preparation step, indicating to perform the basin simulation for the next age stage. If it is completed, the next simulation loop judgment is carried out, indicating whether the basin simulation calculation results meet the convergence requirements. If they do not meet the requirements, it recalculates from the very beginning. If they meet the requirements, it is completed and exits. Figure 7 Based on the basin simulation calculation process shown above Figure 8 a simulation calculation scheduling diagram under distributed conditions is established, as shown in Figure 7 which represents the calculation scheduling diagram of a single-phase overpressure basin simulation in a distributed environment. The topmost is the Model Block node, representing the overall basin modeling model. The next level is the Solution Block, representing the chunks divided according to different sedimentary type regions. The next level is the Job Block node, representing each distributed calculation node that executes specific basin simulation calculation modules. On each Job Block node, the basin simulation calculation process in Figure 7No difference, for the whole node, data merging and splitting are needed, which is realized by two functions, blocktomodel and modeltoblock. Blocktomodel means filling the calculation results of each Job Block grid back into the Model Block grid, and modeltoblock means filling the calculation results of the Model Block grid back into the Job Block grid. In the distributed computing process, the calculation speeds of different nodes are inconsistent, so the modules calculated by each node are different. For the whole computing module, synchronization is required, that is, waiting for each computing node to complete the previous step of this module, and then merging the data. After the calculation is completed, it is split back to each Job Block to continue to execute the next computing module; for the block computing module, synchronization is not required and it can be executed asynchronously.

[0063] As a preferred solution, when the computing task is executed as a whole, the distributed simulation computing scheduling obtains the computing results of all task blocks and transmits them to the modeling model block; receives the overall computing results of the modeling model block, and transmits the overall computing results to all task blocks.

[0064] Specifically, a scheduling node is determined to coordinate the overall distributed computing process. This node runs the JobScheduler function to implement distributed scheduling. The specific process of JobScheduler is as follows:

[0065] First, GetReadyJobBlocks is performed to obtain the Job Block and Job Task to be executed next. The specific method is to traverse each Solution Block, traverse all the Job Tasks contained in each Solution Block, find the first Job Task with a status of pending execution, that is, the next computing task to be executed, and then obtain all Job Blocks corresponding to this JobTask, that is, the computing nodes to execute it.

[0066] Next, the hasJobBlock judgment is performed to indicate whether the computing task to be executed is found. If not, it means that all computing tasks have been executed. If so, the next step DoJob is performed to execute the specific computing module and execute the Job Task in each found JobBlock.

[0067] After the execution is completed, reset_for_next_job is performed to change the execution status of the Job Task so as to obtain the next Job Task to be performed. The implementation method is that for Job Tasks without a loop target function, the current Job Task status is changed to executed, and the next Job Task status in the queue is changed to pending execution; for JobTasks with a loop target function, if the loop condition is not met, the processing method is the same as before. If the loop condition is met, the current Job Task status is changed to executed, and the Job Task status corresponding to the loop target function is changed to pending execution.

[0068] Then continue to perform GetReadyJobBlocks until there are no new computing tasks to be executed, and then exit.

[0069] Embodiment 2

[0070] Fig.10 A block diagram of a device for implementing distributed basin simulation according to an embodiment of the present invention is shown.

[0071] like Fig.10 As shown, the present invention provides a distributed basin simulation implementation device, comprising:

[0072] A model block creation module 102 is used to create a basin modeling model block;

[0073] A calculation block division module 104 divides the modeling model block into a plurality of calculation blocks;

[0074] A task block partitioning module 106 is configured to partition each computing block into a plurality of task blocks, and the plurality of task blocks are distributed to a plurality of distributed machines;

[0075] A calculation process establishment module 108 is used to establish a calculation process corresponding to each calculation block;

[0076] A calculation scheduling establishment module 110 establishes a corresponding distributed simulation calculation schedule based on the calculation process corresponding to each calculation block;

[0077] The block computing module 112 performs distributed block computing based on the task blocks, computing flow and distributed simulation computing scheduling.

[0078] As a preferred solution, the basin modeling model block is segmented according to the area of ​​sedimentation type and divided into multiple calculation blocks.

[0079] As a preferred solution, the task block is a distributed computing node for implementing basin simulation, and multiple task blocks are allocated to multiple distributed machines, with the number of task blocks allocated to each distributed machine corresponding to its computing capacity.

[0080] As a preferred solution, each computing process includes a plurality of sequentially connected sub-computing tasks, and each task block included in the computing block corresponding to the computing process executes each sub-computing task included in the computing process.

[0081] As a preferred solution, each sub-computing task includes a computing task, an execution mode, a loop objective function and an execution state, and the execution mode of the sub-computing task is overall or in blocks.

[0082] As a preferred solution, when the execution mode is holistic, the calculation results of all task blocks are transmitted to the modeling model block; the modeling model block executes the calculation task according to the calculation results of all task blocks to obtain the overall calculation result; the modeling model block transmits the overall calculation result to all task blocks; when the execution mode is block, the sub-calculation task executes the calculation task in its corresponding task block to obtain the block calculation result.

[0083] As a preferred solution, when the computing task is executed as a whole, the distributed simulation computing scheduling obtains the computing results of all task blocks and transmits them to the modeling model block; receives the overall computing results of the modeling model block, and transmits the overall computing results to all task blocks.

[0084] Embodiment 3

[0085] The present invention provides an electronic device, which includes: a memory storing executable instructions; a processor, which runs the executable instructions in the memory to implement the above-mentioned distributed basin simulation implementation method.

[0086] An electronic device according to an embodiment of the present disclosure includes a memory and a processor.

[0087] The memory is used to store non-temporary computer-readable instructions. Specifically, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc.

[0088] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the present disclosure, the processor is used to run the computer-readable instructions stored in the memory.

[0089] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present disclosure.

[0090] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0091] Embodiment 4

[0092] The present invention provides a computer-readable storage medium storing a computer program, which implements the above-mentioned distributed basin simulation method when executed by a processor.

[0093] According to the computer-readable storage medium of the embodiment of the present disclosure, non-transitory computer-readable instructions are stored thereon. When the non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the above-mentioned methods of each embodiment of the present disclosure are executed.

[0094] The above-mentioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).

[0095] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A method for implementing distributed basin simulation, characterized in that: include: Create a basin modeling model block; Dividing the modeling model block into a plurality of calculation blocks; Divide each computing block into multiple task blocks, and distribute the multiple task blocks to multiple distributed machines; Establish the calculation process corresponding to each calculation block; Based on the calculation process corresponding to each calculation block, establish the corresponding distributed simulation calculation scheduling; Based on the task blocks, computing flow and distributed simulation computing scheduling, distributed block computing is performed; wherein the basin modeling model block is segmented according to the area of ​​sedimentation type and divided into a plurality of calculation blocks; The task blocks are distributed computing nodes for implementing basin simulation, and multiple task blocks are allocated to multiple distributed machines, with the number of task blocks allocated to each distributed machine corresponding to its computing capacity; Each of the computing flows includes a plurality of sequentially connected sub-computing tasks, and each task block included in the computing block corresponding to the computing flow executes each sub-computing task included in the computing flow; Each of the sub-computing tasks includes a computing task, an execution mode, a loop objective function and an execution state, and the execution mode of the sub-computing task is a whole or a block; Wherein, when the execution mode is holistic, the calculation results of all task blocks are transmitted to the model building block; The modeling model block executes the calculation task to obtain the overall calculation result according to the calculation results of all task blocks; The model building block transmits the overall calculation result to all task blocks; When the execution mode is block-based, the sub-computing task executes the computing task in its corresponding task block to obtain the block computing result.

2. The method for implementing distributed basin simulation according to claim 1, characterized in that: When the computing task is executed in an integrated manner, the distributed simulation computing scheduling obtains the computing results of all task blocks and transmits them to the modeling model block; Receive the overall calculation result of the model building block, and transmit the overall calculation result to all task blocks.

3. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the distributed basin simulation implementation method according to any one of claims 1 or 2.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for implementing distributed basin simulation according to any one of claims 1 or 2 is implemented.

5. A distributed basin simulation implementation device, characterized in that: include: Model block creation module, creating basin modeling model blocks; A calculation block division module, which divides the modeling model block into multiple calculation blocks; A task block partitioning module is used to partition each computing block into a plurality of task blocks, and the plurality of task blocks are distributed to a plurality of distributed machines; A calculation process establishment module is used to establish the calculation process corresponding to each calculation block; The calculation scheduling establishment module establishes the corresponding distributed simulation calculation scheduling based on the calculation process corresponding to each calculation block; A block computing module, which performs distributed block computing based on the task blocks, computing flow and distributed simulation computing scheduling; wherein the basin modeling model block is segmented according to the area of ​​sedimentation type and divided into a plurality of calculation blocks; The task blocks are distributed computing nodes for implementing basin simulation, and multiple task blocks are allocated to multiple distributed machines, with the number of task blocks allocated to each distributed machine corresponding to its computing capacity; Each of the computing flows includes a plurality of sequentially connected sub-computing tasks, and each task block included in the computing block corresponding to the computing flow executes each sub-computing task included in the computing flow; Each of the sub-computing tasks includes a computing task, an execution mode, a loop objective function and an execution state, and the execution mode of the sub-computing task is a whole or a block; Wherein, when the execution mode is holistic, the calculation results of all task blocks are transmitted to the model building block; The modeling model block executes the calculation task to obtain the overall calculation result according to the calculation results of all task blocks; The model building block transmits the overall calculation result to all task blocks; When the execution mode is block-based, the sub-computing task executes the computing task in its corresponding task block to obtain the block computing result.

Citation Information

Patent Citations

  • Method and system for conducting geologic basin analysis

    US20100257004A1

  • Reservoir turning bands simulation with distributed computing

    US20230213685A1