CpGridUtilities.hpp File Reference
Include dependency graph for CpGridUtilities.hpp:

Go to the source code of this file.

Namespaces

namespace  Opm
 Holds the implementation of the CpGrid as a pimple.
 

Functions

std::pair< std::unordered_map< int, int >, std::vector< std::array< int, 3 > > > Opm::lgrIJK (const Dune::CpGrid &grid, const std::string &lgr_name)
 Retrieves Cartesian indices for a specified Local Grid Refinement (LGR) level in a Dune::CpGrid. More...
 
std::pair< std::vector< double >, std::vector< double > > Opm::lgrCOORDandZCORN (const Dune::CpGrid &grid, int level, const std::unordered_map< int, int > &lgrCartesianIdxToCellIdx, const std::vector< std::array< int, 3 > > &lgrIJK)
 Extracts the COORD and ZCORN values for the LGR (Local Grid Refinement) block. More...
 
void Opm::setPillarCoordinates (int i, int j, int nx, int topCorner, int bottomCorner, int positionIdx, const Dune::cpgrid::Entity< 0 > &topElem, const Dune::cpgrid::Entity< 0 > &bottomElem, std::vector< double > &lgrCOORD)
 Sets the coordinates for a pillar. More...
 
void Opm::processPillars (int i, int j, int nx, const Dune::cpgrid::Entity< 0 > &topElem, const Dune::cpgrid::Entity< 0 > &bottomElem, std::vector< double > &lgrCOORD)
 Processes and sets the coordinates for all four pillars of a given "(i,j) column of cells". More...