GridHelpers.hpp File Reference
#include <opm/core/grid.h>
#include <boost/range/iterator_range.hpp>
Include dependency graph for GridHelpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Opm::UgGridHelpers::SparseTableView
 Allows viewing a sparse table consisting out of C-array. More...
 
class  Opm::UgGridHelpers::SparseTableView::IntRange
 
struct  Opm::UgGridHelpers::CellCentroidTraits< G >
 Traits of the cell centroids of a grid. More...
 
struct  Opm::UgGridHelpers::CellCentroidTraits< UnstructuredGrid >
 
struct  Opm::UgGridHelpers::CellVolumeIteratorTraits< T >
 The mapping of the grid type to type of the iterator over the cell volumes. More...
 
struct  Opm::UgGridHelpers::CellVolumeIteratorTraits< UnstructuredGrid >
 
struct  Opm::UgGridHelpers::FaceCentroidTraits< G >
 Traits of the face centroids of a grid. More...
 
struct  Opm::UgGridHelpers::FaceCentroidTraits< UnstructuredGrid >
 
struct  Opm::UgGridHelpers::Cell2FacesTraits< T >
 Maps the grid type to the associated type of the cell to faces mapping. More...
 
struct  Opm::UgGridHelpers::Cell2FacesTraits< UnstructuredGrid >
 
struct  Opm::UgGridHelpers::Face2VerticesTraits< T >
 Maps the grid type to the associated type of the face to vertices mapping. More...
 
struct  Opm::UgGridHelpers::Face2VerticesTraits< UnstructuredGrid >
 
class  Opm::UgGridHelpers::FaceCellsProxy
 
struct  Opm::UgGridHelpers::FaceCellTraits< T >
 Traits of the face to attached cell mappping of a grid. More...
 
struct  Opm::UgGridHelpers::FaceCellTraits< UnstructuredGrid >
 

Namespaces

 Opm
 
 Opm::UgGridHelpers
 

Functions

int Opm::UgGridHelpers::numCells (const UnstructuredGrid &grid)
 Get the number of cells of a grid. More...
 
int Opm::UgGridHelpers::numFaces (const UnstructuredGrid &grid)
 Get the number of faces of a grid. More...
 
int Opm::UgGridHelpers::dimensions (const UnstructuredGrid &grid)
 Get the dimensions of a grid. More...
 
int Opm::UgGridHelpers::numCellFaces (const UnstructuredGrid &grid)
 Get the number of faces, where each face counts as many times as there are adjacent faces. More...
 
const int * Opm::UgGridHelpers::cartDims (const UnstructuredGrid &grid)
 Get the cartesion dimension of the underlying structured grid. More...
 
const int * Opm::UgGridHelpers::globalCell (const UnstructuredGrid &grid)
 Get the local to global index mapping. More...
 
CellCentroidTraits
< UnstructuredGrid >
::IteratorType 
Opm::UgGridHelpers::beginCellCentroids (const UnstructuredGrid &grid)
 Get an iterator over the cell centroids positioned at the first cell. More...
 
double Opm::UgGridHelpers::cellCenterDepth (const UnstructuredGrid &grid, int cell_index)
 Get vertical position of cell center ("zcorn" average.) More...
 
double Opm::UgGridHelpers::cellCentroidCoordinate (const UnstructuredGrid &grid, int cell_index, int coordinate)
 Get a coordinate of a specific cell centroid. More...
 
const double * Opm::UgGridHelpers::cellCentroid (const UnstructuredGrid &grid, int cell_index)
 Get the centroid of a cell. More...
 
double Opm::UgGridHelpers::cellVolume (const UnstructuredGrid &grid, int cell_index)
 Get the volume of a cell. More...
 
const double * Opm::UgGridHelpers::beginCellVolumes (const UnstructuredGrid &grid)
 Get an iterator over the cell volumes of a grid positioned at the first cell. More...
 
const double * Opm::UgGridHelpers::endCellVolumes (const UnstructuredGrid &grid)
 Get an iterator over the cell volumes of a grid positioned after the last cell. More...
 
const double * Opm::UgGridHelpers::faceCentroid (const UnstructuredGrid &grid, int face_index)
 Get the cell centroid of a face. More...
 
FaceCentroidTraits
< UnstructuredGrid >
::IteratorType 
Opm::UgGridHelpers::beginFaceCentroids (const UnstructuredGrid &grid)
 Get an iterator over the face centroids positioned at the first cell. More...
 
const double * Opm::UgGridHelpers::faceNormal (const UnstructuredGrid &grid, int face_index)
 Get the normal of a face. More...
 
double Opm::UgGridHelpers::faceArea (const UnstructuredGrid &grid, int face_index)
 Get the area of a face. More...
 
int Opm::UgGridHelpers::faceTag (const UnstructuredGrid &grid, boost::iterator_range< const int * >::const_iterator cell_face)
 Get Eclipse Cartesian tag of a face. More...
 
Cell2FacesTraits
< UnstructuredGrid >::Type 
Opm::UgGridHelpers::cell2Faces (const UnstructuredGrid &grid)
 Get the cell to faces mapping of a grid. More...
 
Face2VerticesTraits
< UnstructuredGrid >::Type 
Opm::UgGridHelpers::face2Vertices (const UnstructuredGrid &grid)
 Get the face to vertices mapping of a grid. More...
 
const double * Opm::UgGridHelpers::vertexCoordinates (const UnstructuredGrid &grid, int index)
 Get the coordinates of a vertex of the grid. More...
 
FaceCellTraits
< UnstructuredGrid >::Type 
Opm::UgGridHelpers::faceCells (const UnstructuredGrid &grid)
 Get the face to cell mapping of a grid. More...
 
template<class T >
T * Opm::UgGridHelpers::increment (T *cc, int i, int dim)
 Increment an iterator over an array that reresents a dense row-major matrix with dims columns. More...
 
template<class T >
Opm::UgGridHelpers::increment (const T &t, int i, int)
 Increment an iterator over an array that reresents a dense row-major matrix with dims columns. More...
 
template<class T >
double Opm::UgGridHelpers::getCoordinate (T *cc, int i)
 Get the i-th corrdinate of a centroid. More...
 
template<class T >
double Opm::UgGridHelpers::getCoordinate (T t, int i)
 Get the i-th corrdinate of an array. More...