Opm::EclipseGridInspector Class Reference

A class for inspecting the contents of an eclipse file. More...

#include <EclipseGridInspector.hpp>

Public Member Functions

 EclipseGridInspector (Opm::DeckConstPtr deck)
 
double cellVolumeVerticalPillars (int i, int j, int k) const
 
double cellVolumeVerticalPillars (int cell_idx) const
 
std::pair< double, double > cellDips (int i, int j, int k) const
 
std::pair< double, double > cellDips (int cell_idx) const
 
std::array< int, 3 > cellIdxToLogicalCoords (int cell_idx) const
 
std::array< double, 6 > getGridLimits () const
 
std::array< int, 3 > gridSize () const
 
std::array< double, 8 > cellZvals (int i, int j, int k) const
 

Detailed Description

A class for inspecting the contents of an eclipse file.

Given an Eclipse deck, this class may be used to answer certain queries about its contents.

Author
Atgeirr F. Rasmussen atgei.nosp@m.rr@s.nosp@m.intef.nosp@m..no
Date
2008/06/02 09:46:08

Constructor & Destructor Documentation

Opm::EclipseGridInspector::EclipseGridInspector ( Opm::DeckConstPtr  deck)

Constructor taking a parser as argument. The parser must already have read an Eclipse file.

Member Function Documentation

std::pair<double,double> Opm::EclipseGridInspector::cellDips ( int  i,
int  j,
int  k 
) const

Compute the average dip in x- and y-direction of the cell tops and bottoms relative to the xy-plane

std::pair<double,double> Opm::EclipseGridInspector::cellDips ( int  cell_idx) const
std::array<int, 3> Opm::EclipseGridInspector::cellIdxToLogicalCoords ( int  cell_idx) const
double Opm::EclipseGridInspector::cellVolumeVerticalPillars ( int  i,
int  j,
int  k 
) const

Assuming that the pillars are vertical, compute the volume of the cell given by logical coordinates (i, j, k).

double Opm::EclipseGridInspector::cellVolumeVerticalPillars ( int  cell_idx) const

Assuming that the pillars are vertical, compute the volume of the cell given by the cell index

std::array<double, 8> Opm::EclipseGridInspector::cellZvals ( int  i,
int  j,
int  k 
) const

Returns the eight z-values associated with a given cell. The ordering is such that i runs fastest. That is, with L = low and H = high: {LLL, HLL, LHL, HHL, LLH, HLH, LHH, HHH }.

std::array<double, 6> Opm::EclipseGridInspector::getGridLimits ( ) const

Returns a vector with the outer limits of grid (in the grid's unit). The vector contains [xmin, xmax, ymin, ymax, zmin, zmax], as read from COORDS and ZCORN

std::array<int, 3> Opm::EclipseGridInspector::gridSize ( ) const

Returns the extent of the logical cartesian grid as number of cells in the (i, j, k) directions.


The documentation for this class was generated from the following file: