Dune::cpgrid::CombinedGridWellGraph Class Reference

A graph repesenting a grid together with the well completions. More...

#include <ZoltanGraphFunctions.hpp>

Public Types

typedef std::vector< std::set< int > > GraphType
 

Public Member Functions

 CombinedGridWellGraph (const Dune::CpGrid &grid, const std::vector< OpmWellType > *wells, const double *transmissibilities, bool pretendEmptyGrid, EdgeWeightMethod edgeWeightsMethod)
 Create a graph representing a grid together with the wells. More...
 
const Dune::CpGridgetGrid () const
 Access the grid. More...
 
const GraphTypegetWellsGraph () const
 
double transmissibility (int face_index) const
 
double logTransmissibilityWeights (int face_index) const
 
const WellConnectionsgetWellConnections () const
 
double edgeWeight (int face_index) const
 

Detailed Description

A graph repesenting a grid together with the well completions.

The edges of the graph are formed by the superset of the edges representing the faces of the grid and the ones that represent the connections within the wells. If a well has completions on cell i and cell j, then there is an edge from i to j and j to i in the graph. Even for shut wells the connections will exist.

Member Typedef Documentation

◆ GraphType

typedef std::vector<std::set<int> > Dune::cpgrid::CombinedGridWellGraph::GraphType

Constructor & Destructor Documentation

◆ CombinedGridWellGraph()

Dune::cpgrid::CombinedGridWellGraph::CombinedGridWellGraph ( const Dune::CpGrid grid,
const std::vector< OpmWellType > *  wells,
const double *  transmissibilities,
bool  pretendEmptyGrid,
EdgeWeightMethod  edgeWeightsMethod 
)

Create a graph representing a grid together with the wells.

Parameters
gridThe grid.
wellsThe wells used or null.
transmissibilitiesThe transmissibilities associated with the faces. May be null
pretendEmptyGridTrue if we should pretend the grid and wells are empty.
edgeWeightsMethodThe method used to calculated the edge weights.

Member Function Documentation

◆ edgeWeight()

double Dune::cpgrid::CombinedGridWellGraph::edgeWeight ( int  face_index) const
inline

◆ getGrid()

const Dune::CpGrid & Dune::cpgrid::CombinedGridWellGraph::getGrid ( ) const
inline

Access the grid.

◆ getWellConnections()

const WellConnections & Dune::cpgrid::CombinedGridWellGraph::getWellConnections ( ) const
inline

◆ getWellsGraph()

const GraphType & Dune::cpgrid::CombinedGridWellGraph::getWellsGraph ( ) const
inline

◆ logTransmissibilityWeights()

double Dune::cpgrid::CombinedGridWellGraph::logTransmissibilityWeights ( int  face_index) const
inline

Referenced by edgeWeight().

◆ transmissibility()

double Dune::cpgrid::CombinedGridWellGraph::transmissibility ( int  face_index) const
inline

Referenced by edgeWeight().


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