Opm::GraphOfGrid< Grid > Class Template Reference A class storing a graph representation of the grid. More...
Detailed Descriptiontemplate<typename Grid> class Opm::GraphOfGrid< Grid > A class storing a graph representation of the grid. Stores the list of all cell global IDs and for each cell a list of global IDs of its neighbors. In addition, weights of graph vertices and edges are stored. Features edge contractions, which adds weights of merged vertices and of edges to every shared neighbor. Intended use is for loadbalancing to ensure that no well is split between processes. Constructor & Destructor Documentation◆ GraphOfGrid()
template<typename Grid >
Member Function Documentation◆ addNeighboringCellsToWells() [1/2]
template<typename Grid >
Contract a layer of verices around each well into it. Representing a well by one node guarantees that the well won't be split over several processes. Giving the well an extra layer of cells distances that well from the subdomain boundary. Referenced by Opm::GraphOfGrid< Grid >::addNeighboringCellsToWells(). ◆ addNeighboringCellsToWells() [2/2]
template<typename Grid >
◆ addWell()
template<typename Grid >
Register the well to the list of wells. If checkIntersection==true, it checks if any of well's cells is in another well(s) and merges them together. checkIntersection==false skips those (possibly expensive) checks but leaves it to user to guarantee that wells are disjoint and that all cell global IDs are in the graph ◆ begin()
template<typename Grid >
◆ contractVertices()
template<typename Grid >
Contract two vertices. Vertex weights are added, and edges are merged. Edge weights for their common neighbors are added up. Returns global ID of the resulting vertex, which is smaller ID. If either gID is in a well, well's ID can be returned if it is smaller. ◆ edgeList()
template<typename Grid >
List of neighbors for given vertex. References Opm::GraphOfGrid< Grid >::find(). ◆ end()
template<typename Grid >
◆ find()
template<typename Grid >
Get iterator to the vertex with this global ID or ID of the well containing it. Referenced by Opm::GraphOfGrid< Grid >::edgeList(), Opm::GraphOfGrid< Grid >::getVertex(), and Opm::GraphOfGrid< Grid >::numEdges(). ◆ getGrid()
template<typename Grid >
◆ getVertex()
template<typename Grid >
Return properties of vertex of given ID. If no such vertex exists, returns vertex with process -1, weight 0, and empty edgeList. If the vertex is in a well, return the well's vertex. References Opm::GraphOfGrid< Grid >::find(). ◆ getWells()
template<typename Grid >
Return the list of wells. ◆ numEdges()
template<typename Grid >
Number of vertices for given vertex. References Opm::GraphOfGrid< Grid >::find(). ◆ size()
template<typename Grid >
Number of graph vertices. The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||