Dune::cpgrid::OrientedEntityTable< codim_from, codim_to > Class Template Reference Represents the topological relationships between sets of entities, for example cells and faces. More...
Inheritance diagram for Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >:
Detailed Descriptiontemplate<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.
Member Typedef Documentation◆ FromType
template<int codim_from, int codim_to>
◆ mutable_row_type
template<int codim_from, int codim_to>
◆ row_type
template<int codim_from, int codim_to>
◆ super_t
template<int codim_from, int codim_to>
◆ ToType
template<int codim_from, int codim_to>
Constructor & Destructor Documentation◆ OrientedEntityTable() [1/2]
template<int codim_from, int codim_to>
Default constructor. ◆ OrientedEntityTable() [2/2]
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.
Member Function Documentation◆ allocate()
template<int codim_from, int codim_to>
template<typename IntegerIter >
Request storage for table of given size.
◆ appendRow()
template<int codim_from, int codim_to>
template<typename DataIter >
Appends a row to the table. Referenced by Dune::cpgrid::Geometry< 3, cdim >::refineCellifiedPatch(). ◆ clear()
template<int codim_from, int codim_to>
Makes the table empty(). ◆ dataSize()
template<int codim_from, int codim_to>
Returns the number of data elements. ◆ empty()
template<int codim_from, int codim_to>
True if the table contains no rows. ◆ makeInverseRelation()
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.
References Dune::cpgrid::EntityRep< codim >::index(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::operator[](), Dune::cpgrid::EntityRep< codim >::opposite(), Dune::cpgrid::EntityRep< codim >::orientation(), Dune::cpgrid::OrientedEntityRange< codim_to >::size(), and Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::size(). ◆ operator==()
template<int codim_from, int codim_to>
Elementwise equality.
References Opm::SparseTable< T >::operator==(). ◆ operator[]()
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.
References Dune::cpgrid::EntityRep< codim >::index(), and Dune::cpgrid::EntityRep< codim >::orientation(). Referenced by Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::makeInverseRelation(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::printRelationMatrix(), and Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::printSparseRelationMatrix(). ◆ printRelationMatrix()
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.
References Dune::cpgrid::EntityRep< codim >::index(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::operator[](), Dune::cpgrid::EntityRep< codim >::orientation(), Dune::cpgrid::OrientedEntityRange< codim_to >::size(), and Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::size(). ◆ printSparseRelationMatrix()
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().
References Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::operator[](), Dune::cpgrid::OrientedEntityRange< codim_to >::size(), and Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::size(). ◆ row()
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.
References Dune::cpgrid::EntityRep< codim >::index(), and Opm::SparseTable< T >::operator[](). ◆ rowSize()
template<int codim_from, int codim_to>
Given an entity e of codimension codim_from, returns the number of neighbours of codimension codim_to.
References Dune::cpgrid::EntityRep< codim >::index(), and Opm::SparseTable< T >::rowSize(). ◆ size()
template<int codim_from, int codim_to>
Returns the number of rows in the table. Referenced by Dune::cpgrid::Intersection::isAtEnd(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::makeInverseRelation(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::printRelationMatrix(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::printSparseRelationMatrix(), and Dune::cpgrid::Intersection::setAtEnd(). Friends And Related Function Documentation◆ CpGridData
template<int codim_from, int codim_to>
The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||