Opm::GridManager Class Reference

#include <GridManager.hpp>

Public Member Functions

 GridManager (const EclipseGrid &inputGrid, bool edge_conformal=false)
 Construct a grid from an EclipseState::EclipseGrid instance. More...
 
 GridManager (const EclipseGrid &inputGrid, const std::vector< double > &poreVolumes, bool edge_conformal)
 
 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 UnstructuredGrid * c_grid () const
 

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

◆ GridManager() [1/7]

Opm::GridManager::GridManager ( const EclipseGrid &  inputGrid,
bool  edge_conformal = false 
)
explicit

Construct a grid from an EclipseState::EclipseGrid instance.

◆ GridManager() [2/7]

Opm::GridManager::GridManager ( const EclipseGrid &  inputGrid,
const std::vector< double > &  poreVolumes,
bool  edge_conformal 
)

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

◆ GridManager() [3/7]

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

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

◆ GridManager() [4/7]

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

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

◆ GridManager() [5/7]

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

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

◆ GridManager() [6/7]

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].

◆ GridManager() [7/7]

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.

◆ ~GridManager()

Opm::GridManager::~GridManager ( )

Destructor.

Member Function Documentation

◆ c_grid()

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.


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