|
opm-grid
|
Routines to form a complete UnstructuredGrid from a corner-point specification. More...
Go to the source code of this file.
Functions | |
| struct UnstructuredGrid * | create_grid_cornerpoint (const struct grdecl *in, double tol, int edge_conformal) |
| Construct grid representation from corner-point specification of a particular geological model. | |
| void | compute_geometry (struct UnstructuredGrid *g) |
| Compute derived geometric primitives in a grid. | |
Routines to form a complete UnstructuredGrid from a corner-point specification.
| void compute_geometry | ( | struct UnstructuredGrid * | g | ) |
Compute derived geometric primitives in a grid.
This function computes values for each of the following quantities
g->dimensions scalars per face stored sequentially in g->face_centroids.g->face_areas.g->dimensions scalars per face stored sequentially in g->face_normals. The Euclidian norm of each normal is equal to the corresponding face's area.g->dimensions scalars per cell stored sequentially in g->cell_centroids.g->cell_volumes.These fields must be allocated prior to calling compute_geometry().
| [in,out] | g | Grid structure. |
| struct UnstructuredGrid * create_grid_cornerpoint | ( | const struct grdecl * | in, |
| double | tol, | ||
| int | edge_conformal ) |
Construct grid representation from corner-point specification of a particular geological model.
Pinched cells will be removed irrespective of any explicit "active" map in the geological model input specification. Geometric primitives such as cell barycenters (i.e., centroids), volumes and interface areas are computed internally using function compute_geometry(). The caller does not need to compute this information separately.
| [in] | in | Corner-point specification. If "actnum" is NULL, then the specification is interpreted as if all cells are initially active. |
| [in] | tol | Absolute tolerance of node-coincidence. |
| [in] | edge_conformal | Whether or not to create an edge-conformal grid structure. This is an experimental feature, aimed at supporting geo-mechanical workflows, that should typically not be used in production runs of traditional reservoir simulations. Non-zero to enable edge-conformal processing, zero to disable this mode. |