preprocess.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  grdecl
 
struct  processed_grid
 

Enumerations

enum  face_tag { LEFT, BACK, TOP }
 

Functions

void process_grdecl (const struct grdecl *g, double tol, struct processed_grid *out)
 
void free_processed_grid (struct processed_grid *g)
 

Detailed Description

Low-level corner-point processing routines and supporting data structures.

User code should typically employ higher-level routines such as create_grid_cornerpoint() in order to construct fully formed UnstructuredGrid data structures from a corner-point specification. Incidentally, the routines provided by this module are used to implement function create_grid_cornerpoint().

Enumeration Type Documentation

enum face_tag

Connection taxonomy.

Enumerator
LEFT 

Connection topologically parallel to J-K plane.

BACK 

Connection topologically parallel to I-K plane.

TOP 

Connection topologically parallel to I-J plane.

Function Documentation

void free_processed_grid ( struct processed_grid g)

Release memory resources acquired in previous grid processing using function process_grdecl().

Note: This function releases the resources associated to the individual fields of the processed_grid, but does not free() the structure itself.

Parameters
[in,out]gPrototypical grid representation obtained in an earlier call to function process_grdecl().
void process_grdecl ( const struct grdecl g,
double  tol,
struct processed_grid out 
)

Construct a prototypical grid representation from a corner-point specification.

Pinched cells will be removed irrespective of any explicit "active" map in the geological model input specification. On input, the result structure "out" must point to a valid management structure. In other words, the result structure must point to a region of memory that is typically backed by automatic or allocated (dynamic) storage duration.

Parameters
[in]gCorner-point specification. If "actnum" is NULL, then the specification is interpreted as if all cells are initially active.
[in]tolAbsolute tolerance of node-coincidence.
[in,out]outMinimal grid representation featuring face-to-cell neighbourship definition, vertex geometry, face's constituent vertices, and local-to-global cell mapping.