21 #ifndef OPM_CORE_GRIDHELPERS_HEADER_INCLUDED 22 #define OPM_CORE_GRIDHELPERS_HEADER_INCLUDED 24 #include <dune/common/fvector.hh> 28 #include <opm/grid/utility/IteratorRange.hpp> 35 namespace UgGridHelpers
55 : data_(data), offset_(offset), size_(size_arg)
64 return row_type{data_ + offset_[row],
65 data_ + offset_[row+1]};
78 return offset_[size_];
87 const unsigned* offset_;
135 typedef const double* IteratorType;
136 typedef const double* ValueType;
165 Dune::FieldVector<double,3> faceAreaNormalEcl(
const UnstructuredGrid& grid,
int face_index);
200 typedef const double* IteratorType;
224 Opm::EclipseGrid createEclipseGrid(
const UnstructuredGrid& grid,
const Opm::EclipseGrid& inputGrid );
250 typedef const double* IteratorType;
251 typedef const double* ValueType;
323 int operator()(
int face_index,
int local_index)
const 325 return face_cells_[2*face_index+local_index];
328 const int* face_cells_;
354 T* increment(T* cc,
int i,
int dim)
363 T increment(
const T& t,
int i,
int)
373 double getCoordinate(
const T* cc,
int i)
384 double getCoordinate(T t,
int i)
Main OPM-Core grid data structure along with helper functions for construction, destruction and readi...
std::size_t size() const
Get the size of the table.
Definition: GridHelpers.hpp:70
SparseTableView(int *data, unsigned *offset, std::size_t size_arg)
Creates a sparse table view.
Definition: GridHelpers.hpp:54
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.cpp:71
Definition: IteratorRange.hpp:35
Traits of the cell centroids of a grid.
Definition: GridHelpers.hpp:128
Allows viewing a sparse table consisting out of C-array.
Definition: GridHelpers.hpp:43
Traits of the face to attached cell mappping of a grid.
Definition: GridHelpers.hpp:336
int * face_cells
For a face f, face_cells[2*f] and face_cells[2*f + 1] contain the cell indices of the cells adjacent ...
Definition: UnstructuredGrid.h:140
Maps the grid type to the associated type of the cell to faces mapping.
Definition: GridHelpers.hpp:279
Maps the grid type to the associated type of the face to vertices mapping.
Definition: GridHelpers.hpp:294
row_type operator[](std::size_t row) const
Get a row of the the table.
Definition: GridHelpers.hpp:61
face_tag
Connection taxonomy.
Definition: preprocess.h:66
Traits of the face centroids of a grid.
Definition: GridHelpers.hpp:243
Data structure for an unstructured grid, unstructured meaning that any cell may have an arbitrary num...
Definition: UnstructuredGrid.h:100
std::size_t noEntries() const
Get the number of non-zero entries.
Definition: GridHelpers.hpp:76
Definition: GridHelpers.hpp:317
The mapping of the grid type to type of the iterator over the cell volumes.
Definition: GridHelpers.hpp:193