(19)
(11)EP 2 811 112 A2

(12)EUROPEAN PATENT APPLICATION

(43)Date of publication:
10.12.2014 Bulletin 2014/50

(21)Application number: 14175672.6

(22)Date of filing:  26.08.2011
(51)International Patent Classification (IPC): 
E21B 49/00(2006.01)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(30)Priority: 07.09.2010 US 876727
29.11.2010 US 955504

(62)Application number of the earlier application in accordance with Art. 76 EPC:
11767321.0 / 2614460

(71)Applicant: Saudi Arabian Oil Company
Dhahran 31311 (SA)

(72)Inventors:
  • Fung, Larry, S.K.
    Dhahran 31311 (SA)
  • Mezghani, Mokhles M.
    Dhahran 31311 (SA)

(74)Representative: Robinson, David Edward Ashdown 
Marks & Clerk LLP 1 New York Street
Manchester M1 4HD
Manchester M1 4HD (GB)

 
Remarks:
This application was filed on 03-07-2014 as a divisional application to the application mentioned under INID code 62.
Remarks:
The references to the drawing(s) no. 4........... are deemed to be deleted (Rule 56(4) EPC).
 


(54)Machine, computer program product and method to generate unstructured grids and carry out parallel reservoir simulation


(57) A machine, computer program product, and method to enable scalable parallel reservoir simulations for a variety of simulation model sizes are described herein. Some embodiments of the disclosed invention include a machine, methods, and implemented software for performing parallel processing of a grid defining a reservoir or oil/gas field using a plurality of sub-domains for the reservoir simulation, a parallel process of re-ordering a local cell index for each of the plurality of cells using characteristics of the cell and location within the at least one sub-domain and a parallel process of simulating at least one production characteristic of the reservoir.




Description

BACKGROUND OF THE INVENTION


1. Field of the Invention



[0001] The present invention relates to oil and gas reservoir simulation and more particularly related to a machine, computer program product and method to enable scalable parallel processing of oil and gas reservoirs for a variety of simulation model sizes.

2. Description of Prior Art



[0002] A subterranean geologic body or formation contains multi-phase, multi-component fluids and accordingly a petroleum reservoir may contain oil, natural gas, water and several constituent compounds that may be modeled to predict the fluid flow from a reservoir, which is also known as reservoir simulation. Reservoir simulation models may be run before or after a well is drilled to determine production rate, etc. for the various methods.

[0003] Current reservoir modeling techniques create a numerical grid of the reservoir comprised of a plurality of grid cells, and process data in the finite volume of each grid cell. Because reservoirs can be very large and complex and grid cells can number in the millions to over one billion, the simulation models can take several hours to days to run. The desirable runtime is in the minutes to a few hours, maximum, as hundreds of runs are usually required for history matching. Accordingly, Saudi Aramco's POWERS™ program was created to speed up data processing using parallel computing. Parallel computing, as performed by the POWERS™ program, divides the numerical grid into a plurality of domains, with each domain consisting of a plurality of grid cells. The numerical grid is a structured grid, meaning each grid cell can be described the same, i.e., each inner vertex is incident to a fixed number of cells and each cell is defined by a fixed number of faces and edges. Structured grids may use Cartesian coordinate (I, J, K), or some other similar mapping method to locate grid cells for data processing. To run the simulations, rock properties, described using geologic models (porosity, permeability, etc.), as well as the geometry of the rock formation and data related to the well bore, are read into each computer. Because the domain is sub-divided into several finite volumes, or grid cells, conservation equations of mass, momentum, and energy are then constructed for each grid cell. These balance equations represent the discrete time rate of change of these quantities stored in the grid block due to the inter-block fluxes and sources and sinks of the quantities due to the physical and chemical processes being modeled, and are accordingly a set of discrete nonlinear partial differential equations involving complex functions. Finally, using the mapping method for the grid, each computer can arrange for cross talk with other computers to simulate flow through the domains. FIG. 1 shows a prior art, two-dimensional structured grid of a reservoir with a multi-lateral well disposed therein. As can be seen, each grid cell is uniform, regardless of the geological feature or proximity of the grid cell to the well.

[0004] Unfortunately, reservoirs are of a sedimentary origin and have multiple layers that have thicknesses and depth variations throughout, which do not neatly follow the pattern of a structured grid. For example, a layer can disappear locally due to lack of deposition or subsequent erosion, which is known as a pinch-out. Also, uplifting (the raising of the earth's crust) and subsidence (the lowering of the earth's crust) over geologic time can lead to faulting and fracturing of the layers. In addition to the complexity of the reservoir layers, complex wells may be drilled into the reservoirs to extract fluids from them or to inject fluids into them for pressure maintenance or enhance oil-recovery operations, i.e., these wells may be multibranched. Simply, a structured grid does not produce accurate flow models in these circumstances. Better, unstructured grids, built to represent the geologic layers and well, would represent faults, fractures, pinch-outs and well geometry, are required for accuracy.

[0005] To create unstructured grids, oil or gas reservoirs are subdivided into non-uniform elementary finite-volumes, i.e., grid cells or grid blocks. These grid cells can have variable numbers of faces and edges that are positioned to honor physical boundaries of geological structures and well geometry embedded within the reservoir. Accordingly, these maps may be very complex. Examples of unstructured gridding methods includes Voronoi diagrams, i.e., a grid where each cell has faces and edges that are closer to one Voronoi site or point than any other Voronoi site or point. FIG. 2 is an example of a two dimensional Voronoi grid. While unstructured grids more accurately reflect the geological features of the geological body, in order to perform unstructured grid simulation using parallel processing techniques, the global coordinate system, e.g., (I,J,K) Cartesian indexing, must be replaced with a global hash table, accessible by the computer processing each domain, to arrange for cell and domain cross-talk. Unfortunately, the global hash table for a model with, e.g., tens of millions to over a billion cells, can overwhelm the memory of each of the parallel computers.

[0006] In addition to the problems with prior art reservoir grids, simulating reservoirs with multi-lateral wells requires more data input and uses more complex algorithms, and simulation models for these types of production methods can be very cumbersome - even using the POWERS™ system. The computational complexity of these equations is further complicated by the geological model size which is typically in the tens of millions to hundreds of millions of grid cells. Since finding a solution to several million to a few billion nonlinear partial differential equations with multiphase discontinuities is computationally expensive, reservoir simulation models are usually built at a coarser scale than the geologic model via a process known as upscaling, i.e., the averaging of rock properties for a plurality of grid cells. While computationally more efficient, upscaling renders the simulation model inaccurate. It is very desirable to develop simulation system that can directly use the original geologic model without upscaling and can honor complex well geometries and geology at the same time.

[0007] Therefore, the machine, methods, and program products in this invention constitute the enabling technology to do scalable parallel reservoir simulation of a desired model size (from small models to over one-billion-cell models) using both unstructured grids for complex reservoirs and multi-lateral wells, and structured grids at seismic-scale geologic model without upscaling.

SUMMARY OF THE INVENTION



[0008] In view of the foregoing, various embodiments of the present invention advantageously provide a machine, program product, and method for facilitating parallel reservoir simulation for a plurality of grid types and simulation types, and which does not require the use of a global hash table to locate grid cells for communication between computing nodes of a supercomputer, described herein as application servers.

[0009] More specifically, embodiments of a machine defining a plurality of application servers with a plurality of executable codes running on each application server that simulates at least one production characteristic for a plurality of oil or gas wells defined by a grid of a reservoir is described herein, the grid is comprised of a plurality of cells with boundaries that are defined by geologic characteristics, complex well geometries, and user-specified cell sizes of the reservoir. The application server has a processor and a memory, the memory has computer readable instructions stored thereon and operable on the processor. The software code executing on each application server collectively causes the application server to perform a process of dividing the grid, whose cells has been indexed previously and stored consecutively on computer disk, into a plurality of sub-domains, each containing optimally nearly an equal number of cells for processing based on the user specified number of application servers to be used, and a process of assigning each application server ownership of a sub-domain among the plurality of sub-domains. The computer readable instructions can comprise creating the plurality of cells from geologic characteristics and well geometries of the subsurface, the plurality of cells having faces that are formed equidistant to each of a plurality of points corresponding to the geologic characteristics and well geometries, discounting any grid cells that are not active, and dividing the remaining cells into a plurality of sub-domains, and assigning each one of the cells an original index; and at least one separate application server having a processor and a memory with computer readable instructions stored thereon. At least one application server can be assigned at least one sub-domain and including a computer program product, operable on the memory, for performing a process of re-ordering a local cell identification reference for each of the plurality of cells using characteristics of the cell and location within at least one sub-domain and a process of simulating at least one production characteristic of the reservoir. Such computer readable instructions can comprise: creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to original index for each of the plurality of cells, generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into the memory of the separate application server using the initial local cell identification reference, determining at least one other sub-domain adjacent to the sub-domain, and which of the plurality of grid cells share at least one face with grid cells of the at least one other sub-domain, re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the at least one other sub-domain, re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells, and transmitting simulation data between the application servers for the grid cells sharing at least one face with the at least one other sub-domain adjacent to the sub-domain with the one other sub-domain.

[0010] A computer program product according to an exemplary embodiment of the invention is also described. The exemplary computer program product is operable on a cluster of machines wherein each machine defining a computer and stored in a memory of the computer, the computer program product can perform a collective process of dividing a grid defining a reservoir into a plurality of sub-domains and a plurality of cells, a process of re-ordering a local cell identification reference for each of the plurality of cells using characteristics of the cell and location within the at least one sub-domain and a process of simulating at least one production characteristic of the reservoir. The computer program product can perform the steps of: creating the plurality of cells from geologic characteristics and well geometries of the subsurface, the plurality of cells having faces that are formed equidistant to each of a plurality of points corresponding to the geologic characteristics and well geometries; discounting any grid cells that are not active, and dividing the remaining cells into a plurality of sub-domains; assigning each one of the cells an original index; creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to original index for each of the plurality of cells; generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into the memory of the separate application server using the initial local cell identification reference; determining at least one other sub-domain adjacent to the sub-domain, and which of the plurality of grid cells share at least one face with grid cells of the at least one other sub-domain; re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the at least one other sub-domain; re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells; and transmitting simulation data between the grid cells sharing at least one face with the at least one other sub-domain adjacent to the sub-domain with the one other sub-domain.

[0011] A computer-implemented method for performing a process of dividing a grid defining a reservoir into a plurality of sub-domains for processing, a process of re-ordering a local cell identification reference for each of the plurality of cells using characteristics of the cell and location within the at least one sub-domain and a process of simulating at least one production characteristic of the reservoir according to an exemplary embodiment of the invention is also described. The computer-implemented method can perform the steps of: creating the plurality of cells from geologic characteristics and well geometries of the subsurface, the plurality of cells having faces that are formed equidistant to each of a plurality of points corresponding to the geologic characteristics and well geometries; discounting any grid cells that are not active, and dividing the remaining cells into a plurality of sub-domains; assigning each one of the cells an original index; creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to original index for each of the plurality of cells; generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into the memory of the separate application server using the initial local cell identification reference; determining at least one other sub-domain adjacent to the sub-domain, and which of the plurality of grid cells share at least one face with grid cells of the at least one other sub-domain; re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the at least one other sub-domain; re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells; and transmitting simulation data between the grid cells sharing at least one face with the at least one other sub-domain adjacent to the sub-domain with the one other sub-domain.

[0012] Accordingly, as will be described herein below, embodiments of the machine, computer program product and methods allow for scalable parallel reservoir simulations using complex geological, well and production characteristics and over one-billion grid cells.

BRIEF DESCRIPTION OF THE DRAWINGS



[0013] So that the manner in which the features and advantages of the invention, as well as others, which will become apparent, may be understood in more detail, a more particular description of the invention briefly summarized above may be had by reference to the embodiments thereof, which are illustrated in the appended drawings, which form a part of this specification. It is to be noted, however, that the drawings illustrate only various embodiments of the invention and are therefore not to be considered limiting of the invention's scope as it may include other effective embodiments as well.

FIG 1 is a diagram of approximated well geometries of a multi-lateral well in a structured grid where the grid is not optimized to the production characteristics according to the prior art;

FIG. 2 is approximated well geometries of a multi-lateral in an unstructured grid where the grid is optimized to the production characteristics according the prior art and used in the present invention;

FIG. 3A is a diagram of a distributed network for processing the simulation using parallel computing according to an embodiment of the invention;

FIG. 3B is a data and work flow diagram for the parallel processing of unstructured/structured reservoir simulation according to an embodiment of the invention;

FIG. 4A is a block diagram of an application server used in the distributed network according to an embodiment of the invention;

FIG. 4B is a diagram of an application server showing various components operable thereon and used in the distributed network according to an embodiment of the invention;

FIG. 5A is a diagram of a pre-processor computer having a memory and a program product of an embodiment of the instant invention installed thereon;

FIG. 5B is a diagram of an application server having a memory and a program product of an embodiment of the instant invention installed thereon;

FIG. 5C is a system flow diagram of the operation of a computer program operable on the pre-processing server and application server of an embodiment of the invention of FIG. 5A;

FIG. 6 is a diagram showing a sub-domain and its neighbors according to an embodiment of the invention;

FIG. 7 is a diagram showing the unstructured grid divided into sub-domains according to an embodiment of the invention;

FIG. 8 is a diagram of a sub-domain showing the sub-domain's interior region, inner halo region and outer halo region according to an embodiment of the invention;

FIG. 9 is a diagram of a sub-domain showing an exemplary global cell numbering for the grid cells according to an embodiment of the invention;

FIG. 10 is a diagram of a sub-domain showing a first permutation of grid cell ordering according to the location of the grid cell inside the sub-domain or inside an outer halo regions;

FIG. 11 is a chart showing the local graph for a sub-domain showing a relationship of the local cell identification numbers for cells in the outer region of a sub-domain to the global cell identification numbers of cells connected to the cells in the outer region of the sub-domain according to an embodiment of the invention;

FIG. 12 is a chart showing connectivity between sub-domains according to an embodiment of the invention;

FIG. 13 is a chart showing the connectivity of cells within sub-domains according to an embodiment of the instant invention;

FIG. 14 is a diagram of a sub-domain showing a second permutation of cell ordering in the local numbering of grid cells according to the location of the grid cells in an interior region of the sub-domain, inner halo region of the sub-domain, or outer halo regions of the sub-domains according to an embodiment of the invention;

FIG. 15 is a diagram of the sub-domain 6 showing the third permutation of cell ordering in the local numbering of grid cells according to the transmissibility of the cells according to an embodiment of the invention;

FIG. 16 is a chart showing the connectivity of local cell IDs based on the final permutation excluding self connections according to an embodiment of the invention; and

FIG. 17 is a map of local cell IDs to global cell IDs for a sub-domain according to an embodiment of the invention.


DETAILED DESCRIPTION



[0014] The present invention will now be described more fully hereinafter with reference to the accompanying drawings in which embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the illustrated embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like numbers refer to like elements throughout.

[0015] FIGS. 3A and 3B describe an exemplary networked group of computers defining an embodiment of the machine of the instant invention. However, as one skilled in the art will recognize, the inventive machines, program products and methods of the invention can be implemented on a wide variety of computer hardware from a single PC workstation to a massively parallel high performance supercomputer illustrated in FIGS 3B and 4B, involving several thousands of processing cores on thousands of computer nodes. As such, though these embodiments are not specifically described herein, they are included within the scope of this disclosure. An exemplary inventive machine is described in detail with reference to FIGS. 3A and 3B. The exemplary machine consists of a pre-processing server 302 for generating and managing the reservoir grids and directing grid data into storage; a plurality of application servers 304 for receiving grid, well-production and completion data and processing reservoir simulations; file server 306 for the management and storage of simulation data, reservoir grids, geological data, well-production data and well completion data in files or databases in the memory; post-processing server 308 for processing completed simulation data, workstations 310 for viewing simulations and well performance data generated by application servers 304 and computer network 316 for connecting the pre-processing server 302, application servers 304, file server 306 and post-processing server 308 to workstations 310.

[0016] As shown, at least one file server 306 may be employed by the machine to manage well production and completion data, grid data, and simulation data and to allow the preprocessing server 302, post processing server 308 and plurality of application servers 304 to upload data to and download data from the file server 306. The file server 306 may include databases such as well completion database 314, well trajectory survey database 316, geological model database 318, and user gridding input database 320, each providing data to pre-processing server 302; databases or files storing grid geometry, grid geological properties, grid well perforation, model data, well history generated by pre-processing server 302 and input into the application servers 304; databases or files storing output maps, well output, and performance calculations generated by application server 304 and input into the post-processing server 308; and databases or files storing 3D visualization data, well plot analyses, and history match analyses output from post-processing server 308. File server 306 may be network attached storage (NAS), storage area networks (SAN), or direct access storage (DAS), or any combination thereof, comprising, e.g., multiple hard disk drives. File server 306 may also allow various user workstations 310 to access and display data stored thereon. Accordingly, as is known in the art, file server 308 may have stored thereon database management system, e.g. a set of software programs that controls the organization, storage, management, and retrieval of data in the databases, such as 314/316/318/320 as is know in the art.

[0017] Databases 314/316/318/320 and any other databases or files stored in file server 306, may be separate databases as shown, or the same database, and well completion data, e.g., well production, completion and injection data; geological data e.g., fluid dynamics, rock porosity, etc; and simulation data, e.g., completed or partially complete grids or simulations, can be stored in a plurality of databases, tables, or fields in separate portions of the file server memory. As one skilled in the art will appreciate, file server 306 provides the pre-processing server 302, each of the application servers 304, and the workstations 310 access to the databases through, e.g., database management software or other application. Moreover, a database server may be used to store the databases instead of or in addition to file server 306, and such a configuration is within the scope of this disclosure. In some configurations, file server 306 may be configured so that the organization of data files that store simulation data and the output snap-shots of dynamic simulation results are independent of the number application servers 304 used to run a simulation model. As such, the inventive method may generate an indexing system to do parallel scattered I/O where each application server 304 reads data and writes results for its portion of the simulation to the exact positions, i.e., data files, in the file server. In such an embodiment, regardless of the number of application servers used, the data and results stored in data files are always the same. In some applications, the well and reservoir data may be stored in databases, but all or a portion of grid data output from gridder 315 can be stored in indexed files and are organized in global cell indexing which is invariant of the number of application servers 304 used to run the model, e.g., compressed sparse row (CSR) format.

[0018] As is known in the art, CSR format stores data which indicates the spatial connectivities of grid cells in the model. Therefore, in such embodiments, some databases and files represented in FIG 3B could use CSR format for the datasets. In this regard, dataset array parameters may be defined using CSR protocols. Datasets created by gridder 315 are stored in file server 306 and can be defined by a dataset type, a data rank, dataset dimensions, and units, which can then be read by the application servers 304 to perform the simulation. Together, the file server 306 can store enough datasets to define, completely and uniquely, the reservoir geometry utilizing a 3D unstructured grid of the instant invention.

[0019] Returning to FIG 3A, workstations 310 are connected to the machine 300 using, e.g., communication network 315. Workstations 310 may be any personal computer (PC) as is known in the art and may run UNIX, Linux, Windows®, or some other operating system compatible with the networked systems discussed herein. Moreover, workstations 310 may access computer program products stored on pre and post processing servers to input simulation or processing parameters. For example, simulation engineers positioned at workstations 310 could manually select fluid parameters, production characteristics, i.e., run a simulation with various well types such as multi-lateral wells with different numbers and sizes of laterals, reservoir or simulation size, rock features, etc., through software applications stored or accessible on the workstations. Data entered from the workstations can be stored on the file server 306 memory, pre-processing server 302 memory, or post-processing server 308 memory for access during the reservoir simulation. Reservoir engineers may also access simulation data, partial or complete, simulation characteristics, run time, processor speed, compute processes run, etc., on application servers 304 as may be needed to monitor the simulation. As one skilled in the art will appreciate, it is possible for workstations 310 to interface with a separate web or network server for access to the simulation through the communications network, and such a configuration may be preferred.

[0020] Communications network 315 connects the workstations 310, the machine 300, and various networked components together. As one skilled in the art will appreciate, the computer network 315 can connect all of the system components using a local area network ("LAN") or wide area network ("WAN"), or a combination thereof. For example, pre-processing server 302, file server 306, application server 304, and post-processing server 308 may be privately networked to allow for faster communication and better data synchronization between computing nodes, or pre-processing server 302, application servers 304, file server 306, and post-processing server 308, may be networked using a LAN, with a web server (not shown) interfacing with the workstations 310 using a WAN. Accordingly, though not all such configurations are depicted, all are within the scope of the disclosure.

[0021] At least one pre-processing server 302 and application server 304, for example, perform the functions of the inventive method of the invention, and are used to perform reservoir simulations. In addition, pre-processing server 302, although represented as one server, may be a plurality of servers, e.g., may be configured as separate application servers and a web server, creates the unstructured 3 dimensional reservoir grid and assigns the distributed computers a portion of the grid for processing, as will be discussed herein below. Application servers 304 perform the simulation processing functions for each of the grid cells loaded into the server for processing. As one skilled in the art will appreciate, though depicted as application servers, each of the application servers 304 may be workstations that can be used by individual reservoir engineers to access data. One skilled in the art will appreciate, however, that parallel processing techniques described herein are by way of example, and the methods and gridding software of the instant invention can be used in serial processing environments. Importantly, as is known in grid computing, each application server performs a distributed read of the well history and grid data for processing. As one skilled in the art will appreciate, each application server accessing the file server 302 only reads data regarding one process node.

[0022] As shown in FIG. 3A, the file server 306 is connected to a network of application servers 304. The application servers 304 are depicted separately networked on TCP/IP network that allows for rapid communication between the compute nodes- though depending upon the cluster architecture, both the application servers 304 and pre-processing server 302 may be separately networked. For example, the application servers 304 may be configured as a grid cluster, with each application server having separate software loaded thereon reading compute data from the file server 306 to perform data processing. Alternatively, as one skilled in the art will recognize, the application servers 304 may be configured as a compute cluster, or Beowulf cluster, where the pre-processing server 302 or similar server distributes files to the application server 304 using communication libraries that allow for data exchange. As one skilled in the art will also recognize, there are several different methodologies for deploying distributed computing systems and all of these are within the scope of this disclosure. Moreover, the system architecture may support a variety of operating systems and communications software for each of the pre-processing server 302 and application servers 304. For example, Unix, Linux, Microsoft Compute Cluster, etc., are examples of operating systems that may be used to form a super computer like the one contemplated herein, and Message Passing Interface (MPI interfacing) or Parallel Virtual Machine (PVM) software libraries may be used to provide communication between the servers herein, which is discussed in detail herein below.

[0023] An exemplary pre-processing server 302 will now be described. The pre-processing server may access the file server e.g., data from well completion database 314, well trajectory survey database 316, geological model database 318, and user gridding input database 320. The pre-processing server 302 may perform preliminary calculations and grid generation using unstructured grid generation software. For example, gridder 315 pre-processes data from the database to grid the reservoir and partitions the grid for processing using, e.g., a METIS software application for partitioning grids produced by George Karypis at the University of Minnesota and available for download at http://glaros.dtc.umn/edu/gkhome/views/metis. The application servers 304 process the reservoir simulation using the grid, the output of which can then be interpreted by post-processing server 308. Specifically, post-processing server 308 accesses simulator results, including map output, well output and performance output, which may be stored on the file server 306, and generates user-friendly data displays. For example, post-processing server may have software loaded thereon that provides 3D visualization of the reservoir, well plots within the reservoir, and generates an analysis of the simulation results as compared with historical simulations. As one skilled in the art will appreciate, though depicted as separate servers for simplicity, pre-preprocessing server and post-processing server may be configured as the same server or cluster of servers. Finally, workstations 310 can access the post-processing server 308, or file server 306 to, e.g., modify, specify, control, upload, download or direct any output software. As one skilled in the art will appreciate, the embodiment discussed above has well history software, grid data software, map output software, and performance output software stored on the pre-processing server 302, but these may be stored on more than server or computer.

[0024] FIG. 5A describes the structure of the pre-processing server 302 in detail. The pre-processing server 302 comprises a memory 405, a program product 407, a processor, and an input/output device ("I/O device") (not shown). The I/O device connects the pre-processing server 302, via the network, to file server 306, application servers 304 and distributed computers 308, and can be any I/O device 408 including, but not limited to a network card/controller connected by a PCI bus to the motherboard, or hardware built into the motherboard to connect the pre-processing server 302 to the network 314. The I/O device is connected to the processor (not shown). The processor is the "brains" of the pre-processing server 302, and as such executes program product 407 and works in conjunction with the I/O device to direct data to memory 405 and to send data from memory 405 to the network. In this way, the processor may also make available the program product 407 to the application servers 304 and workstations 310. The processor can be any commercially available processor, or plurality of processors, adapted for use in a pre-processing server 302, e.g., Intel® Xeon® multicore processors, Intel® micro-architecture Nehalem, AMD Opteron™ multicore processors, etc. As one skilled in the art will appreciate, the processor may also include components that allow the pre-processing server 302 to be connected to a display [not shown] and a keyboard that would allow a user direct access to the processor and memory 405. Memory 405 may store several pre and post processing software applications and the well history and grid data related to the methods described herein. As such, memory 405 may consist of both non-volatile memory , e.g., hard disks, flash memory, optical disks, and the like, and volatile memory, e.g., SRAM, DRAM, SDRAM, etc., as required to process embodiments of the instant invention. As one skilled in the art will appreciate, though memory 405 is depicted on, e.g., the motherboard, of the pre-processing server 302, memory 405 may also be a separate component or device, e.g., FLASH memory, connected to the pre-processing server 405. Memory 405 may also store applications that the workstations 310 can access and run on the pre-processing server 302.

[0025] Importantly, as is known in grid computing, the pre-processing server 302 creates the unstructured grids and grid partitions and computes cell properties for storage on the file server 306, so that the grids are accessible to the application servers 304 for processing. As one skilled in the art will appreciate, each application server accessing the file server 306 is only allowed to read data regarding one sub-domain, and that sub-domain's adjacent cells. Moreover, as one skilled in the art will recognize, the pre-processing server 302, shown as having multiple applications stored thereon, may only access data stored on the file server to compute grid data to save on pre-processing server memory and processing speeds.

[0026] Each pre-processing server 302 may communicate with the file server 306, and file server 306 may communicate with application servers 304 using, e.g., a communications software such as MPI interfacing. As known in the art, MPI interfacing comes with a plurality of library functions that include, but are not limited to, send/receive operations, choosing between a Cartesian or graph-like logical data processing 304 or a unstructured topology, combining partial results of computations, synchronizing application servers for data exchange between sub-domains, as well as obtaining network-related information such as the number of processes in the computing session, current processor identity that a application server 304 is mapped to, neighboring processes accessible in a logical topology, etc. Importantly, as is known in the art, the MPI interfacing software can operate with a plurality of software languages, including C, C++, FORTRAN, etc., allowing program product 326 to be programmed or interfaced with a plurality of computer software program products programmed in different computer languages for greater scalability and functionality, e.g., an implementation where pre-processing server 302 is implemented as a plurality of servers running separate programs for pre-processing algorithms.

[0027] FIGS. 4A, 4B, and 5B describe the structure of the application servers 304 in detail, which are linked together using a high-speed intranet TCP/IP connection. Like the pre-processing server 302, each application server 304 comprises a memory 400, a program product 326, a processor 401, and an input output device ("I/O") 403. I/O device 403 connects the application server 304, via the network, to file server 308, other application servers 304 and the pre-processing server 302, and can be any I/O device 403 including, but not limited to a network card/controller connected by a PCI bus to the motherboard, or hardware built into the motherboard to connect the application server 304 to the network (not shown). As can be seen, the I/O device 403 is connected to the processor 401. Processor 401 is the "brains" of the application server 304, and as such executes program product 404 and works in conjunction with the I/O device 403 to direct data to memory 400 and to send data from memory 400 to the network. Processor 401 can be any commercially available processor, or plurality of processors, adapted for use in an application server, e.g., Intel® Xeon® multicore processors, Intel® micro-architecture Nehalem, AMD Opteron" multicore processors, etc. As one skilled in the art will appreciate, processor 401 may also include components that allow the application servers 304 to be connected to a display [not shown] and keyboard that would allow a user to directly access the processor 401 and memory 400 - though such configurations of the application servers 304 could slow the processing speeds of the computing cluster.

[0028] Memory 400 stores instructions for execution on the processor 401, including the operating system and communications software and consists of both non-volatile memory, e.g., hard disks, flash memory, optical disks, and the like, and volatile memory, e.g., SRAM, DRAM, SDRAM, etc., as required to application server 304 embodiments of the instant invention. As one skilled in the art will appreciate, though memory 400 is depicted on, e.g., the motherboard, of the application server 304, memory 400 may also be a separate component or device, e.g., FLASH memory, connected to the application servers 304. Importantly, memory 400 stores the program product of the instant invention. As shown, the program product 402 is downloaded into each application server 304 for performing the inventive methods, but one skilled in the art will appreciate that program product 326 may also be stored on a separate application server or the pre-processing server 302 for access by each of the networked application servers 304 though such a configuration could only be used for smaller simulations.

[0029] As one skilled in the art will appreciate, each application server 304 communicates with each other application server 304 using the I/O device 403 and a communications software, e.g. MPI interfacing. As known in the art, MPI interfacing comes with a plurality of library functions that include, but are not limited to, send/receive operations, choosing between a Cartesian or graph-like logical application server 304 or an unstructured topology, combining partial results of computations, synchronizing application servers for data exchange between sub-domains, as well as obtaining network-related information such as the number of processes in the computing session, current processor identity that an application server 304 is mapped to, neighboring processes accessible in a logical topology, etc. Importantly, as is known in the art, the MPI interfacing software can operate with a plurality of software languages, including C, C++, FORTRAN, etc., allowing program product 326 to be programmed or interfaced with a plurality of computer software program products programmed in different computer languages for greater scalability and functionality, e.g., an implementation where pre-processing server 302 is implemented as a plurality of servers running separate programs for pre-processing algorithms.

[0030] Program products 326 perform the methods of the invention and may be the same program product stored on one server and operable on the pre-processing server 302 and application servers 304, stored on pre-processing server 302 and operable on the application server 304 or various steps of the inventive method could be stored in the memory of the application servers 304 and pre-processing server 302 as applicable for the function of each. Accordingly, though the steps of the inventive methods and programming products may be discussed as being on each application server, one skilled in the art will appreciate; each of the steps can be stored and operable on any of the processors described herein, including any equivalents thereof.

[0031] Program product 326 may be part of the reservoir simulator GigaPOWERS™. The relationship of program product 326 to other software components GigaPOWERS™ is illustrated in FIGS. 3B. Unstructured system data 404 contains various reference maps and hash tables which are created and organized by implemented methods 402. These reference maps and hash tables data 404, together with implemented methods in 406 provide the organized data access for read/write in the random access memory (RAM) of each application server 304 and achieve data communication/synchronization requirement with other processes running on other compute nodes 304 where each the application server 304 hold a sub-domain of grid cells of the global flow simulation problem. Software methods 406 and data system 404 serves all other software components in GigaPOWERS™ by managing the inter-relationship between sub-domains among compute nodes 304 and the inter-relationships between grid cells within each sub-domain in order to achieve reservoir simulation.

[0032] Parallel data input may be performed by each application server, and software process 408 places the data in the RAM of each application server 304. Software process 402 sets up the unstructured data 404, which is also placed in RAM, so that it is available to support all data access functionality of all other software components of the application server. The components include the initialization module 410, the nonlinear solver 412, the Jacobian builder 414, the linear solver 416, the solution update module 418, the PVT package 422, the rock-fluid property package 424, the well model 423, the well management module 428, the parallel output module 420, each of which will be described in detail herein below. As one skilled in the art will appreciate, the efficiency and parallel scalability of the simulator will depend on the data system and methods of 402/404/406 because they control and manage the data access, communication, computation of the application servers implementing a simulator such as GigaPOWERS™.

[0033] The program product 404 of the instant invention is stored in memory 400 and operable on processor 401, as shown in FIG. 5B. The program product 404 performs the steps of: reading activity data from the file server 308 into the application servers (502); partitioning the unstructured grids into domains (504); setting up initial distributed unstructured map reference (506); constructing distributed unstructured graphs and connection factors (508); setting up domain adjacencies and halo cross reference (510); reordering cells locally based upon maximum transmissibility ordering (512); setting up distributed Jacobian and solver matrix references (514); and finalizing distributed local to global reference and derived data types for network communication (516). Steps 502, 504, 506, 508, 510, 512, 514, and 516 are operable on the application servers 304 and perform internal reordering to minimize processing time and provide optimized sharing of halo data to adjacent sub-domains. In other words, in the exemplary embodiment, the pre-processing server 302 sets up the grid data for the application servers 304 to provide parallel processing of the well simulation.

[0034] As discussed above, the reservoir simulation typically involves the modeling of complex reservoir and well geometry and starts with the mapping or "gridding" of the reservoir using grid techniques that may be structured or unstructured, e.g., by preprocessing server 302. Though the methods of the invention may be employed with both structured and unstructured grids, as well as simulations of different model sizes, to describe the steps performed by the program product of the instant invention, a 2-dimensional unstructured grid will be used as an example. To model the reservoir using the unstructured grid, oil or gas reservoirs are subdivided into elementary finite-volumes, which are known as grid cells or grid blocks. These grid cells can have variable numbers of faces and edges that are positioned to honor physical boundaries of geological structures and well geometry embedded within the reservoir.

[0035] All methods in FIG. 5B and 5C are parallel methods. Once software 304 has been initiated to execute on a processor of one application server 304, that application server 304 may spawn exactly the number of parallel processes as designated by the user to run the simulation. Thereafter, each processor of each application server 304 may execute a copy of the software code 326 which handles the computation for a sub-domain of the overall problem. As shown in step 502, cell activity is calculated in parallel from geometry and property data 326/328 read from the file server 306 into each application server 304 using, e.g., a distributed parallel read procedure employing the (MPI-2) interfacing discussed above. In step 502, prior to partitioning, inactive cells are removed by the pre-processing server 302. As one skilled in the art will recognize, a grid cell is inactive if it is a pinch-out, has porosity less than minimum porosity, pore volume less than minimum pore volume, or all permeabilities less than minimum permeability, as defined by the simulations parameters, e.g., those set by the reservoir engineers running the simulation. For computational efficiency, inactive cells are discounted from the local domain partitioning process as well as subsequent flow computation.

[0036] Utilizing the cell activity data to discount inactive cells, program product 326, which may be running on the first application server 304, may perform distributed parallel operations to generate optimal domain partitions, or sub-domains, of the plurality of remaining cells using, e.g., a METIS/PARMETIS software library (step 504). As is known in the art, the METIS/PARMETIS software library divides the grid into sub-domains of roughly equal number of cells and minimizes boundary regions. In this way, the application servers 304 may partition the grid instead of the pre-processing server 302 (or the pre-processing server 302 may also be another application server 304). One sub-domain may be assigned to each application server 304 within a cluster of application servers 304 to solve the reservoir simulation problem, i.e., to compute the simulation for the plurality of cells in the sub-domain. Each sub-domain, for example, has roughly equal number of active cells, identified using, for example, a global cell ID (shown in FIG. 9), and the sub-domain bounding surface is minimized to reduce network communication requirement. An exemplary partitioning of sub-domains is shown with reference to FIG. 7. As can be seen, each sub-domain 0-7 is adjacent to at least one other sub-domain.

[0037] In step 506, based on the domain partitions generated in step 504, an initial distributed cell reference map is computed for the cells in each sub-domain to refer to the global cell ID generated above, as shown, for example, in FIG. 10. As can be seen, the global cell IDs shown in FIG. 9, are indexed completely locally in FIG. 10. This initial ordering of local cell IDs is known as the first permutation.

[0038] The local cell ID to global cell ID references from step 506 is used to perform a distributed parallel reading of the grid data, input parameters, e.g., from workstations, and well history data, including porosity and permeability data, from the file server 306 into the local memory of each application server 304 and to construct graphs using the same in step 508. This data includes the data that describe the geometry for each grid cell, i.e., where the grid cell is located with respect to other grid cells in the simulator. As shown in FIGS. 6 and 8, each sub-domain is at least partially surrounded with a plurality of boundary cells, assigned to adjacent sub-domains, known as the halo region 602. The halo region 602 contains cells from adjacent sub-domains that share at least one cell facet with sub-domain cells 604 which reside on the external boundary of the sub-domain (outer halo), and cells in the sub-domain that share a facet with a neighboring sub-domain (inner halo). In this step, each application server 304 constructs the distributed unstructured graph to describe the connectivities of all the cells in its sub-domain and the halo, for example, as shown in FIG. 11. At the same time, the connection factors (also known as transmissibility) between two adjacent cells can be calculated. Each computer process running program product 326 on application server 304 generates its own portion of the connectivity graphs and stores it in, for example, the distributed compressed sparse row (CSR) format. Moreover, each connection can further be identified as either in-domain connection or out-of-domain connection. An out-of-domain connection is one between an in-domain grid-cell and a halo grid-cell. Active halo cells, which have no transmissibilities with the internal sub-domain cells, are discounted in this step to minimize necessary inter-application server 304 communication.

[0039] In step 510, utilizing the computed graph and its associated data in step 508, sub-domain adjacency is computed. Sub-domain adjacency is the distributed graph which identifies for each sub-domain all of its neighboring sub-domains, like the one shown in FIG. 12. The distributed sub-domain connectivity graph is also stored in, for example, CSR format but in distributed parallel fashion. The in-domain cells that reside on the sub-domain boundary are identified and the adjacent sub-domain IDs that share these cells facets are identified. The sub-domain adjacency information is used to form a second permutation for the local cell IDs such that all interior cells are ordered first and boundary cells are ordered next in a sequence of blocks based on sub-domain adjacency, e.g., as shown in FIG. 14. As can be seen, the exemplary second permutation of local grid cells orders the sub-domain interior cells first, the inner halo region cells next, and the outer halo region last.

[0040] The second permutation of local boundary cell IDs are also exchanged among the adjacent application servers 304 so that each application server 304 has the necessary information to exchange boundary cell data during transient time stepping of flow simulation (shown in FIG. 13). The incoming data from adjacent sub-domain boundaries are placed in the halo regions, e.g., in cached memory, so that the process server can place the incoming data in the outer halo region.

[0041] In step 512, after the domain-partitioning step 510, the order of cells may not be optimal for the simulation algorithms and a better cell ordering may be required for computational efficiency. For example, maximum transmissibility ordering (MTO) of the local cells may be performed to further reduce process time. For such embodiments, and the preferred embodiment of the invention, MTO sequences the cell list by following the largest transmissibility pathways through the graph constructed in step 508. However, other reordering methods such as the reverse Cuthill-McKee (RCM) ordering or fill-reducing ordering can be implemented using the inventive method and are included within the scope of the disclosure. As one skilled in the art will appreciate, the reordering step produces a third permutation of local cell ID for the system such that the cell ordering is optimal for the numerical solution application server 304 during flow simulation, as shown in FIG. 15.

[0042] Utilizing results from step 508, 510, and 512, the indexing systems for the distributed graphs representing the Jacobian matrix and the solver matrices for each sub-domain can be built in step 514. These distributed graphs consist of two CSR lists: one for the in-domain connections and one for the out-of-domain connections, in order to facilitate the overlapping of communication and computation to enhance parallel scalability. In other words, each application server can process data between in-domain cells and communicate with other application servers simulations. The distributed graphs for the Jacobian is bidirectional, so data can flow between application servers 302, and the Jacobian matrix has a symmetric non-zeros structure but asymmetric in values. The referencing of symmetric positions in the matrices is useful during Jacobian construction and the symmetrical references are computed and stored in this step. The distributed transmissibility graph is also reordered from the initial cell ID permutation in step 606 to the final cell ID permutation in step 612, as shown in FIGS. 16 and 17.

[0043] Finally, distributed derived data types for inter-application server 304 communication among adjacent application servers in order to run the simulation is generated, step 616. Essentially, this is a sub-domain's local ID to another sub-domain's local ID referencing system. Methods to perform both synchronous and asynchronous inter-application server communication utilizing the derived data types are constructed and used to communicate halo variables and data during the reservoir simulation.

[0044] As one skilled in the art will recognize, the methods of the system are scalable for simulation size and well type. For example, another reference system may be constructed for well completions in the distributed unstructured grid cells belonging to the sub-domains. A single well network can have multiple laterals and can span two or more sub-domains. The disclosed indexing system may be used in parallel gather/scatter methods to construct well constraint equations from the required data residing in the distributed variable maps of grid cells and to construct the well source and sink terms of the individual component mass or energy balance equations for the perforated grid cells. The reading of well perforation data uses the inverse cell reference method of the system to locate local cell ID and application server 304 from the global cell ID of the perforation. The local cell ID to global cell ID indexing can be finalized based on the final local permutation. Such an indexing system forms the necessary data to perform parallel distributed input/output of processing of simulation data and results through the MP1-2 standard protocol.

[0045] As one skilled in the art will appreciate, a small 2D unstructured-grid model is used to illustrate the system and methods of the invention, which considers the case when the model is assigned to eight application servers to run the simulation and sub-domain 6 is chosen to illustrate the cell identification and ordering steps of the inventive method, but this exemplary embodiment is in no way limiting of the disclosure. Simulations using unstructured and structured grids of various types and sizes may be processed using the inventive machine, program product, and computer-implemented methods of the disclosure. Moreover, in exemplary embodiment, all the grid-cells are active. However, when inactive cells exist in the model, they may be discounted from the maps and graphs during steps 502 and 504 for memory management. Such discounting usually results in a modest to a significant saving of RAM space. It should also be noted that an active cell in the outer-halo might be discounted if it is connected to an inactive cell in its sub-domain.

[0046] As one skilled in the art will appreciate, for each application server 304, the data files for a model are independent of the number of application servers used to solve a particular simulation model. Each grid cell in the model has a cell ID so that all the properties for that grid cell can be referenced. During parallel computer simulation, the memory of an application server 304 holds only the data for the sub-domain assigned to it. This is known as distributed data store. A reference system such that the global cell ID of the model can be determined given any local cell ID on any application server 304.

[0047] In the drawings and specification, there have been disclosed a typical preferred embodiment of the invention, and although specific terms are employed, the terms are used in a descriptive sense only and not for purposes of limitation. The invention has been described in considerable detail with specific reference to these illustrated embodiments. It will be apparent, however, that various modifications and changes can be made within the spirit and scope of the invention as described in the foregoing specification.

[0048] Aspects of the invention may be understood by the following numbered paragraphs:
  1. 1. A machine for simulating a production characteristic for a plurality of oil or gas wells defined by a grid of a reservoir, the machine comprising:

    a first application server having a processor and a non-transitory memory, the memory having computer readable instructions stored thereon and operable on the processor, the first application server performing a process of dividing the grid into a plurality of sub-domains, and a process of assigning each of the cells in the plurality of sub-domains an index; the computer readable instructions comprising:

    creating the plurality of cells from geologic characteristics of the subsurface, the plurality of cells having faces that are formed equidistant to each of a plurality of points corresponding to the geologic characteristic,

    discounting any grid cells that are not active, and dividing the remaining cells into a plurality of sub-domains, and

    assigning each one of the cells an original index;

    at least one separate application server having a processor and a memory with computer readable instructions stored thereon, the at least one application server being assigned at least one sub-domain and including a computer program product, operable on the memory, for performing a process of re-ordering a local cell identification reference for each of the plurality of cells using characteristics of the cell and location within the at least one sub-domain and a process of simulating at least one production characteristic of the reservoir; the computer readable instructions comprising:

    creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to original index for each of the plurality of cells,

    generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into the memory of the separate application server using the initial local cell identification reference,

    determining at least one other sub-domain adjacent to the sub-domain, and which of the plurality of grid cells share at least one face with grid cells of the at least one other subdomain,

    re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the at least one other sub-domain, and re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells, and transmitting simulation data between the grid cells sharing at least one face with the at least one other sub-domain adjacent to the sub-domain with the one other sub-domain.

  2. 2. A machine of paragraph 1, wherein the geological characteristics include at least one of depth, porosity, transmissibility, rock regions, rock properties and permeability.
  3. 3. A machine of paragraph 1 or 2, wherein the first application server and the separate application server are connected together on a secured network and form a computer cluster.
  4. 4. A machine of paragraph 1 or 2, wherein the first application server and the separate application server are connected together on a wide area network, so that the first application server, and the separate application server are located remotely from each other.
  5. 5. A machine of paragraph 2, 3 or 4 wherein a file server stores geologic characteristics in separate fields for each one of the plurality of characteristics, and the application server accesses each of the fields to run simulation calculations, using said computer program product.
  6. 6. A machine of paragraph 1, 2, 3, or 4 further comprising a file server, the file server storing grid data, well data and permeability data and geological characteristics in a non-transitory memory thereon, the file server having a database computer program product stored thereon that allows the first application server and the separate application server to access to the data using the database computer program product.
  7. 7. A machine of paragraph 6, wherein simulation results for each of the plurality of sub-domains are written in parallel and stored in a database in the file server in global tables based on global cell indices.
  8. 8. A computer-implemented method for causing a computer to perform a process of dividing a grid defining a reservoir into a plurality of sub-domains and a plurality of cells, a process of re-ordering a local cell identification reference for each of the plurality of cells using characteristics of the cell and location within the at least one sub-domain and a process of simulating at least one production characteristic of the reservoir; the computer-implemented method performing the steps of:

    creating the plurality of cells from geologic characteristics of the subsurface, the plurality of cells having faces that are formed equidistant to each of a plurality of points corresponding to the geologic characteristic;

    discounting any grid cells that are not active, and dividing the remaining cells into a plurality of sub-domains;

    assigning each one of the cells an original index;

    creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to original index for each of the plurality of cells;

    generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into the memory of the separate application server using the initial local cell identification reference;

    determining at least one other sub-domain adjacent to the sub-domain, and which of the plurality of grid cells share at least one face with grid cells of the at least one other sub-domain;

    re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the at least one other sub-domain;

    re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells; and

    transmitting simulation data between the grid cells sharing at least one face with the at least one other sub-domain adjacent to the sub-domain with the one other sub-domain.

  9. 9. A computer-implemented method of paragraph 8, wherein the geological characteristics include at least one of depth, porosity, transmissibility, rock regions, rock properties and permeability.
  10. 10. A computer-implemented method of paragraph 8 or 9, wherein the computer-implemented method is implemented on a first application server and a separate application server connected together to form a computer cluster.
  11. 11. A computer-implemented method of paragraph 10, wherein the first application server and the separate application server are connected together on a wide area network, so that the first application server, and the separate application server are located remotely from each other.
  12. 12. A computer-implemented method of paragraph 10 or 11, wherein a file server stores geologic characteristics in separate fields for each one of the plurality of geological characteristics, and the application server accesses each of the fields to run simulation calculations, using said computer program product.
  13. 13. A computer-implemented method of paragraph 10 or 11, wherein a file server accesses and stores grid data, well data and permeability data and geological characteristics in a database thereon, the file server having a database computer program product stored thereon that allows the first application server and the separate application server to access to the well characteristics or geological characteristics using the database program product.
  14. 14. A computer-implemented method of paragraph 13, wherein simulation results for each of the plurality of sub-domains are written in parallel and stored in the database in global tables based on global cell indices.
  15. 15. A computer program comprising computer program code means adapted to perform all the steps of any of paragraphs 8 to 14 when said program is run on a computer.
  16. 16. A computer program as claimed in paragraph 15 embodied on a computer readable medium.



Claims

1. A machine for simulating a production characteristic for a plurality of oil or gas wells defined by a grid of a reservoir, the machine comprising:

one or more separate application servers having one or more processors and memory with computer readable instructions stored thereon, the one or more application servers being assigned one or more sub-domains of the grid and including computer programs, operable by the one ore more processors, for performing a process of re-ordering a local cell identification reference for each of a plurality of cells associated with the one or more sub-domains using characteristics of the cell and location within the one or more sub-domain, the plurality of cells having faces that are formed equidistant to each of a plurality of points corresponding to a geological characteristic of the subsurface, and a process of simulating at least one production characteristic of the reservoir; the computer readable instructions comprising:

creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to an original index assigned to each of the plurality of cells,

generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into the memory of the one or more separate application servers responsive to the initial local cell identification reference,

determining one or more other sub-domains adjacent the one or more sub-domains, and which of the plurality of grid cells share at least one face with grid cells of the one or more other subdomains,

re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the one or more other sub-domains,

re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells, and

transmitting simulation data between the grid cells sharing at least one face with the one or more other sub-domains adjacent the sub-domain with the one other sub-domain.


 
2. A machine of Claim 1, wherein the geological characteristics include at least one of depth, porosity, transmissibility, rock regions, rock properties and permeability.
 
3. A machine of Claim 1 or 2, wherein the one or more separate application servers are in communication with a first application server on a secured network and form a computer cluster, the first application server being arranged to divide the grid into a plurality of sub-domains, and assign each of the cells in the plurality of sub-domains the index.
 
4. A machine of Claim 3, wherein the first application server and the separate application server are connected together on a wide area network, so that the first application server, and the one or more separate application servers are located remotely from each other.
 
5. A machine of Claim 2, 3 or 4, wherein a file server stores geologic characteristics in separate fields for each one of the plurality of characteristics, and the one or more application servers access each of the fields to run simulation calculations, using said computer programs.
 
6. A machine of Claim 1, 2, 3, or 4 further comprising a file server, the file server storing grid data, well data and permeability data and geological characteristics in a non-transitory memory thereon, the file server having one or more database computer programs stored thereon that allows the first application server and the separate application server to access to the data using the one or more database computer programs.
 
7. A machine of Claim 6, wherein simulation results for each of the plurality of sub-domains are written in parallel and stored in a database in the file server in global tables based on global cell indices.
 
8. A computer-implemented method for causing a computer to perform a process of re-ordering a local cell identification reference for each of a plurality of cells associated with at least one subdomain of a grid defining a reservoir using characteristics of the cell and location within the at least one sub-domain and a process of simulating at least one production characteristic of the reservoir, the computer-implemented method performing the steps of:

creating an initial local cell identification reference for each of the plurality of cells in the sub-domain, each local cell identification reference being mapped to an original index assigned to each of the plurality of cells;

generating transmissibility characteristics between each of the plurality of cells in the sub-domain using grid data, well data and permeability data read into memory of a separate application server using the initial local cell identification reference;

determining at least one other sub-domain adjacent the sub-domain, and which of the plurality of grid cells share at least one face with grid cells of the at least one other sub-domain;

re-indexing each of the plurality of grid cells according to whether the grid cell shares at least one face with grid cells of the at least one other sub-domain;

re-indexing each of the plurality of grid cells according to the transmissibility of each of the plurality of grid cells; and

transmitting simulation data between the grid cells sharing at least one face with the at least one other sub-domain adjacent the sub-domain with the one other sub-domain.


 
9. A computer-implemented method of Claim 8, wherein the geological characteristics include at least one of depth, porosity, transmissibility, rock regions, rock properties and permeability.
 
10. A computer-implemented method of Claim 8 or 9, wherein the computer-implemented method is implemented on a first application server and the separate application server connected together to form a computer cluster.
 
11. A computer-implemented method of Claim 10, wherein the first application server and the separate application server are connected together on a wide area network, so that the first application server, and the separate application server are located remotely from each other.
 
12. A computer-implemented method of Claim 10 or 11, wherein a file server stores geologic characteristics in separate fields for each one of the plurality of geological characteristics, and the application server accesses each of the fields to run simulation calculations.
 
13. A computer-implemented method of Claim 10 or 11, wherein a file server accesses and stores grid data, well data and permeability data and geological characteristics in a database thereon, the file server having one or more database computer programs stored thereon that allows the first application server and the separate application server to access to the well characteristics or geological characteristics responsive to the one or more database computer programs, wherein simulation results for each of the plurality of sub-domains are optionally written in parallel and stored in the database in global tables based on global cell indices.
 
14. A computer program comprising computer program code means adapted to perform all the steps of any of claims 8 to 13 when said program is run on a computer.
 
15. A computer program as claimed in claim 14 embodied on a computer readable medium.
 




Drawing