Opm::RockFromDeck Class Reference

#include <RockFromDeck.hpp>

Public Member Functions

 RockFromDeck ()
 Default constructor. More...
 
 RockFromDeck (std::size_t number_of_cells)
 
void init (Opm::EclipseStateConstPtr eclState, int number_of_cells, const int *global_cell, const int *cart_dims)
 
int numDimensions () const
 
int numCells () const
 
const double * porosity () const
 
const double * permeability () const
 

Friends

class BlackoilPropsDataHandle
 

Constructor & Destructor Documentation

Opm::RockFromDeck::RockFromDeck ( )

Default constructor.

Opm::RockFromDeck::RockFromDeck ( std::size_t  number_of_cells)
explicit

Creates rock properties with zero porosity and permeability

Parameters
number_of_cellsThe number of cells

Member Function Documentation

void Opm::RockFromDeck::init ( Opm::EclipseStateConstPtr  eclState,
int  number_of_cells,
const int *  global_cell,
const int *  cart_dims 
)

Initialize from deck and cell mapping.

Parameters
eclStateThe EclipseState (processed deck) produced by the opm-parser code
number_of_cellsThe number of cells in the grid.
global_cellThe mapping fom local to global cell indices. global_cell[i] is the corresponding global index of i.
cart_dimsThe size of the underlying cartesian grid.
int Opm::RockFromDeck::numCells ( ) const
inline
Returns
N, the number of cells.
int Opm::RockFromDeck::numDimensions ( ) const
inline
Returns
D, the number of spatial dimensions. Always 3 for deck input.
const double* Opm::RockFromDeck::permeability ( ) const
inline
Returns
Array of ND^2 permeability values. The D^2 permeability values for a cell are organized as a matrix, which is symmetric (so ordering does not matter).
const double* Opm::RockFromDeck::porosity ( ) const
inline
Returns
Array of N porosity values.

Friends And Related Function Documentation

friend class BlackoilPropsDataHandle
friend

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