Interface class to access the logical Cartesian grid as used in industry standard simulator decks.
More...
#include <AluGridCartesianIndexMapper.hpp>
|
using | Grid = Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming, Dune::ALUGridMPIComm > |
|
|
| CartesianIndexMapper (const Grid &grid, const std::array< int, dimension > &cartDims, const std::vector< int > &cartesianIndex) |
| constructor taking grid More...
|
|
const std::array< int, dimension > & | cartesianDimensions () const |
| return Cartesian dimensions, i.e. number of cells in each direction
More...
|
|
int | cartesianSize () const |
| return total number of cells in the logical Cartesian grid More...
|
|
int | compressedSize () const |
| return number of cells in the active grid More...
|
|
int | compressedLevelZeroSize () const |
| return number of cells in the active grid. Only for unifying calls with CpGrid and PolyhedralGrid specializations. More...
|
|
int | cartesianIndex (const int compressedElementIndex) const |
| return index of the cells in the logical Cartesian grid More...
|
|
int | cartesianIndex (const std::array< int, dimension > &coords) const |
| return index of the cells in the logical Cartesian grid More...
|
|
void | cartesianCoordinate (const int compressedElementIndex, std::array< int, dimension > &coords) const |
| return Cartesian coordinate, i.e. IJK, for a given cell More...
|
|
void | cartesianCoordinateLevel (const int compressedElementIndex, std::array< int, dimension > &coords, int level) const |
| Only for unifying calls with CartesianIndexMapper<CpGrid> where levels are relevant. More...
|
|
template<class GridView > |
std::unique_ptr< GlobalIndexDataHandle< GridView > > | dataHandle (const GridView &gridView) |
|
Interface class to access the logical Cartesian grid as used in industry standard simulator decks.
◆ Grid
using Dune::CartesianIndexMapper< Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming > >::Grid = Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming, Dune::ALUGridMPIComm> |
◆ CartesianIndexMapper()
Dune::CartesianIndexMapper< Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming > >::CartesianIndexMapper |
( |
const Grid & |
grid, |
|
|
const std::array< int, dimension > & |
cartDims, |
|
|
const std::vector< int > & |
cartesianIndex |
|
) |
| |
|
inline |
◆ cartesianCoordinate()
void Dune::CartesianIndexMapper< Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming > >::cartesianCoordinate |
( |
const int |
compressedElementIndex, |
|
|
std::array< int, dimension > & |
coords |
|
) |
| const |
|
inline |
return Cartesian coordinate, i.e. IJK, for a given cell
References Opm::to_string().
◆ cartesianCoordinateLevel()
void Dune::CartesianIndexMapper< Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming > >::cartesianCoordinateLevel |
( |
const int |
compressedElementIndex, |
|
|
std::array< int, dimension > & |
coords, |
|
|
int |
level |
|
) |
| const |
|
inline |
Only for unifying calls with CartesianIndexMapper<CpGrid> where levels are relevant.
◆ cartesianDimensions()
return Cartesian dimensions, i.e. number of cells in each direction
◆ cartesianIndex() [1/2]
int Dune::CartesianIndexMapper< Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming > >::cartesianIndex |
( |
const int |
compressedElementIndex | ) |
const |
|
inline |
return index of the cells in the logical Cartesian grid
◆ cartesianIndex() [2/2]
return index of the cells in the logical Cartesian grid
◆ cartesianSize()
return total number of cells in the logical Cartesian grid
◆ compressedLevelZeroSize()
return number of cells in the active grid. Only for unifying calls with CpGrid and PolyhedralGrid specializations.
◆ compressedSize()
return number of cells in the active grid
◆ computeCartesianSize()
◆ dataHandle()
template<class GridView >
std::unique_ptr< GlobalIndexDataHandle< GridView > > Dune::CartesianIndexMapper< Dune::ALUGrid< 3, 3, Dune::cube, Dune::nonconforming > >::dataHandle |
( |
const GridView & |
gridView | ) |
|
|
inline |
◆ cartesianDimensions_
◆ cartesianIndex_
◆ cartesianSize_
◆ dimension
◆ grid_
The documentation for this class was generated from the following file:
|