This example shows you how to partition rectangular 2D Cartesian grids, the relationship between cell and block numbers, and outlines the basics of the coarse-grid structure, including numbering of cells, faces, and node.

We show partitions of grids representing more complex domains: a rectangular grid with a semi-circular cutout, a 3D cup-formed domain, a 2D Voronoi grid of rectangular domain with a quater-circle cutout, and a corner-point grid with a single fault.

The example continues the discussion of the coarse-grid structure and shows how we can partition the coarse faces so that there are more than one face (connection) between neighboring coarse blocks.

In this example, we take a closer look at partition vectors and discuss how different types of partitions can be combined into one.

In this example, we use the function refineNearWell to make coarse grids with various types of near-well refinement. The examples uses both Cartesian and 2.5 D PEBI fine grids.

refineNearWell

We partition the Norne field uniformly in logical Cartesian space. Since the model contains many inactive cells, the initial partition must be postprocessed to ensure a contigous partition vector. We visualize some of the coarse blocks and show how they are connected with their neighbors.

The example partitions the SAIGUP model uniformly in index space. Some of the blocks contain disconnected cells because of erosion, faults, etc. After these have been split, there is almost a factor 100 in size difference between the smallest and the largest coarse block. An extra processing step is included to ensure that coarse blocks have more uniform volumes.

In MRST, a coarse grid always refers to a grid that is defined as a partition of another grid, which is referred to as the 'fine' grid. The coarsegrid module defines a basic grid structure for such coarse grids and supplies simple tools for partitioning fine grids and turning these partitions into coarse grids that are compatible with the majority of the incompressible and compressible flow and transport solvers in MRST.

coarsegrid

List of the main functions offered by the module:

generateCoarseGrid

partitionCartGrid

partitionLayers

partitionMETIS

partitionTensor

partitionUI

In addition, the module offers a number of utility routines the operate on partitions or the coarse-grid structure

compressPartition

processPartition

processFacePartition

cellPartitionToFacePartition

subFaces

Published December 8, 2016

By clicking the "Agree"-button you are agreeing to our use of cookies. Find out more in our privacy policy (in Norwegian only).