#include <GridManager.hpp>

Public Member Functions

 GridManager (Opm::DeckConstPtr deck)
 Construct a 3d corner-point grid or tensor grid from a deck. More...
 
 GridManager (Opm::EclipseGridConstPtr eclipseGrid)
 Construct a grid from an EclipseState::EclipseGrid instance. More...
 
 GridManager (Opm::EclipseGridConstPtr eclipseGrid, const std::vector< double > &poreVolumes)
 
 GridManager (int nx, int ny)
 Construct a 2d cartesian grid with cells of unit size. More...
 
 GridManager (int nx, int ny, double dx, double dy)
 Construct a 2d cartesian grid with cells of size [dx, dy]. More...
 
 GridManager (int nx, int ny, int nz)
 Construct a 3d cartesian grid with cells of unit size. More...
 
 GridManager (int nx, int ny, int nz, double dx, double dy, double dz)
 Construct a 3d cartesian grid with cells of size [dx, dy, dz]. More...
 
 GridManager (const std::string &input_filename)
 
 ~GridManager ()
 Destructor. More...
 
const UnstructuredGridc_grid () const
 

Static Public Member Functions

static void createGrdecl (Opm::DeckConstPtr deck, struct grdecl &grdecl)
 

Detailed Description

This class manages an Opm::UnstructuredGrid in the sense that it encapsulates creation and destruction of the grid. The following grid types can be constructed:

  • 3d corner-point grids (from deck input)
  • 3d tensor grids (from deck input)
  • 2d cartesian grids
  • 3d cartesian grids The resulting UnstructuredGrid is available through the c_grid() method.

Constructor & Destructor Documentation

Opm::GridManager::GridManager ( Opm::DeckConstPtr  deck)
explicit

Construct a 3d corner-point grid or tensor grid from a deck.

Opm::GridManager::GridManager ( Opm::EclipseGridConstPtr  eclipseGrid)
explicit

Construct a grid from an EclipseState::EclipseGrid instance.

Opm::GridManager::GridManager ( Opm::EclipseGridConstPtr  eclipseGrid,
const std::vector< double > &  poreVolumes 
)

Construct a grid from an EclipseState::EclipseGrid instance, giving an explicit set of pore volumes to be used for MINPV considerations. [in] eclipseGrid encapsulates a corner-point grid given from a deck [in] poreVolumes one element per logical cartesian grid element

Opm::GridManager::GridManager ( int  nx,
int  ny 
)

Construct a 2d cartesian grid with cells of unit size.

Opm::GridManager::GridManager ( int  nx,
int  ny,
double  dx,
double  dy 
)

Construct a 2d cartesian grid with cells of size [dx, dy].

Opm::GridManager::GridManager ( int  nx,
int  ny,
int  nz 
)

Construct a 3d cartesian grid with cells of unit size.

Opm::GridManager::GridManager ( int  nx,
int  ny,
int  nz,
double  dx,
double  dy,
double  dz 
)

Construct a 3d cartesian grid with cells of size [dx, dy, dz].

Opm::GridManager::GridManager ( const std::string &  input_filename)
explicit

Construct a grid from an input file. The file format used is currently undocumented, and is therefore only suited for internal use.

Opm::GridManager::~GridManager ( )

Destructor.

Member Function Documentation

const UnstructuredGrid* Opm::GridManager::c_grid ( ) const

Access the managed UnstructuredGrid. The method is named similarly to c_str() in std::string, to make it clear that we are returning a C-compatible struct.

static void Opm::GridManager::createGrdecl ( Opm::DeckConstPtr  deck,
struct grdecl grdecl 
)
static

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