Opm::GridManager Class Reference

#include <GridManager.hpp>

Public Member Functions

 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
 

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/5]

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

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

◆ GridManager() [2/5]

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

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

◆ GridManager() [3/5]

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

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

◆ GridManager() [4/5]

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() [5/5]

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: