20#ifndef OPM_CPGRIDUTILITIES_HEADER_INCLUDED
21#define OPM_CPGRIDUTILITIES_HEADER_INCLUDED
23#include <opm/grid/CpGrid.hpp>
38std::pair<std::unordered_map<int, int>, std::vector<std::array<int, 3>>>
62std::pair<std::vector<double>, std::vector<double>>
65 const std::unordered_map<int, int>& lgrCartesianIdxToCellIdx,
66 const std::vector<std::array<int, 3>>&
lgrIJK);
83 int topCorner,
int bottomCorner,
87 std::vector<double>& lgrCOORD);
104 std::vector<double>& lgrCOORD);
[ provides Dune::Grid ]
Definition CpGrid.hpp:198
Holds the implementation of the CpGrid as a pimple.
Definition CellQuadrature.cpp:68
void 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".
Definition CpGridUtilities.cpp:213
void 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.
Definition CpGridUtilities.cpp:182
std::pair< std::unordered_map< int, int >, std::vector< std::array< int, 3 > > > 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.
Definition CpGridUtilities.cpp:37
std::pair< std::vector< double >, std::vector< double > > 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.
Definition CpGridUtilities.cpp:71