Represents the topological relationships between sets of entities, for example cells and faces.
More...
#include <OrientedEntityTable.hpp>
template<int codim_from, int codim_to>
class Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >
Represents the topological relationships between sets of entities, for example cells and faces.
The purpose of this class is to hide the intricacies of handling orientations from the client code, otherwise a straight Opm::SparseTable would do.
- Template Parameters
-
codim_from | Codimension of domain of relation mapping |
codim_to | Codimension of range of relation mapping |
template<int codim_from, int codim_to>
template<typename DataIter , typename IntegerIter >
Constructor taking iterators to a sequence of table data and a sequence of row size data.
These table data are in the same format as the underlying Opm::SparseTable<int> constructor with the same signature.
- Template Parameters
-
- Parameters
-
data_beg | The start of the table data. |
data_end | One-beyond-end of the table data. |
rowsize_beg | The start of the row length data. |
rowsize_end | One beyond the end of the row length data. |
template<int codim_from, int codim_to>
Makes the inverse relation, mapping codim_to entities to their codim_from neighbours.
Implementation note: The algorithm has been changed to a three-pass O(n) algorithm.
- Parameters
-
template<int codim_from, int codim_to>
Elementwise equality.
- Parameters
-
- Returns
- Returns true if this and the other element are equal.
template<int codim_from, int codim_to>
Given an entity e of codimension codim_from, returns a row (an indirect container) containing its neighbour entities of codimension codim_to.
- Parameters
-
- Returns
- A row of the table.
template<int codim_from, int codim_to>
Prints the full relation matrix corresponding to the table.
Let the entities of codimensions f and t be given by the sets
and
. A relation matrix R is defined by
Warning: this method is suited only for tiny grids, use printSparseRelationMatrix() for other cases.
- Parameters
-
template<int codim_from, int codim_to>
Prints the relation matrix corresponding to the table, sparse format.
Let the entities of codimensions f and t be given by the sets
and
. A relation matrix R is defined by
The output is written one entry to each line, in the format:
row column entry (either 1 or -1)
The row and column numbers start from zero, so if using octave or matlab you should add 1 to those columns after loading, before calling spconvert().
- Parameters
-
template<int codim_from, int codim_to>
Given an entity e of codimension codim_from, returns the number of neighbours of codimension codim_to.
- Parameters
-
- Returns
- the number of neighbours of codimension codim_to.
The documentation for this class was generated from the following file: