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>
35namespace 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;
165Dune::FieldVector<double,3> faceAreaNormalEcl(
const UnstructuredGrid& grid,
int face_index);
200 typedef const double* IteratorType;
226Opm::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_;
354T* increment(T* cc,
int i,
int dim)
363T increment(
const T& t,
int i,
int)
373double getCoordinate(
const T* cc,
int i)
384double getCoordinate(T t,
int i)
Main OPM-Core grid data structure along with helper functions for construction, destruction and readi...
Definition GridHelpers.hpp:318
Allows viewing a sparse table consisting out of C-array.
Definition GridHelpers.hpp:44
SparseTableView(int *data, unsigned *offset, std::size_t size_arg)
Creates a sparse table view.
Definition GridHelpers.hpp:54
std::size_t noEntries() const
Get the number of non-zero entries.
Definition GridHelpers.hpp:76
std::size_t size() const
Get the size of the table.
Definition GridHelpers.hpp:70
row_type operator[](std::size_t row) const
Get a row of the the table.
Definition GridHelpers.hpp:61
Holds the implementation of the CpGrid as a pimple.
Definition CellQuadrature.cpp:68
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:280
Traits of the cell centroids of a grid.
Definition GridHelpers.hpp:129
The mapping of the grid type to type of the iterator over the cell volumes.
Definition GridHelpers.hpp:194
Maps the grid type to the associated type of the face to vertices mapping.
Definition GridHelpers.hpp:295
Traits of the face to attached cell mappping of a grid.
Definition GridHelpers.hpp:337
Traits of the face centroids of a grid.
Definition GridHelpers.hpp:244
Definition IteratorRange.hpp:29
Data structure for an unstructured grid, unstructured meaning that any cell may have an arbitrary num...
Definition UnstructuredGrid.h:101
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