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>
29#include <opm/grid/utility/OpmParserIncludes.hpp>
34namespace UgGridHelpers
54 : data_(data), offset_(offset), size_(size_arg)
63 return row_type{data_ + offset_[row],
64 data_ + offset_[row+1]};
77 return offset_[size_];
132 typedef const double* IteratorType;
133 typedef const double* ValueType;
162Dune::FieldVector<double,3> faceAreaNormalEcl(
const UnstructuredGrid& grid,
int face_index);
197 typedef const double* IteratorType;
223Opm::EclipseGrid createEclipseGrid(
const UnstructuredGrid& grid,
const Opm::EclipseGrid& inputGrid );
247 typedef const double* IteratorType;
248 typedef const double* ValueType;
320 int operator()(
int face_index,
int local_index)
const
322 return face_cells_[2*face_index+local_index];
325 const int* face_cells_;
351T* increment(T* cc,
int i,
int dim)
360T increment(
const T& t,
int i,
int)
370double getCoordinate(T* cc,
int i)
381double getCoordinate(T t,
int i)
Main OPM-Core grid data structure along with helper functions for construction, destruction and readi...
Definition: GridHelpers.hpp:315
Allows viewing a sparse table consisting out of C-array.
Definition: GridHelpers.hpp:43
std::size_t noEntries() const
Get the number of non-zero entries.
Definition: GridHelpers.hpp:75
SparseTableView(int *data, int *offset, std::size_t size_arg)
Creates a sparse table view.
Definition: GridHelpers.hpp:53
std::size_t size() const
Get the size of the table.
Definition: GridHelpers.hpp:69
row_type operator[](std::size_t row) const
Get a row of the the table.
Definition: GridHelpers.hpp:60
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.hpp:29
face_tag
Connection taxonomy.
Definition: preprocess.h:66
Maps the grid type to the associated type of the cell to faces mapping.
Definition: GridHelpers.hpp:277
Traits of the cell centroids of a grid.
Definition: GridHelpers.hpp:126
The mapping of the grid type to type of the iterator over the cell volumes.
Definition: GridHelpers.hpp:191
Maps the grid type to the associated type of the face to vertices mapping.
Definition: GridHelpers.hpp:292
Traits of the face to attached cell mappping of a grid.
Definition: GridHelpers.hpp:334
Traits of the face centroids of a grid.
Definition: GridHelpers.hpp:241
Definition: IteratorRange.hpp:29
Data structure for an unstructured grid, unstructured meaning that any cell may have an arbitrary num...
Definition: UnstructuredGrid.h:99
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:138