|
opm-grid
|
Public Types | |
| typedef PolyhedralGrid< dim, dimworld, coord_t > | Grid |
| typedef Grid::ctype | ctype |
| typedef MPIHelper::MPICommunicator | MPICommunicatorType |
| typedef Grid::template Codim< 0 >::Entity | Element |
| typedef Grid::template Codim< dimension >::Entity | Vertex |
| typedef Dune::FieldVector< ctype, dimensionworld > | CoordinateType |
| typedef CoordinateType | Coordinate |
| using | UniquePtrType = std::unique_ptr<Grid> |
Public Member Functions | |
| GridFactory (const MPICommunicatorType &=MPIHelper::getCommunicator()) | |
| Default constructor. | |
| virtual void | insertVertex (const CoordinateType &pos) |
| virtual void | insertElement (const GeometryType &type, const std::vector< unsigned int > &items) |
| Insert an element into the coarse grid. | |
| void | insertBoundarySegment (const std::vector< unsigned int > &) |
| UniquePtrType | createGrid () |
Static Public Attributes | |
| static const int | dimension = Grid::dimension |
| static const int | dimensionworld = Grid::dimensionworld |
Protected Attributes | |
| std::vector< CoordinateType > | nodes_ |
| std::vector< std::vector< int > > | faces_ |
| std::vector< std::vector< int > > | cells_ |
|
inlinevirtual |
Insert an element into the coarse grid.
| type | The GeometryType of the new element |
| items | The items are usually the vertex numbers of the inserted element. If the geometry type is none the these can be face numbers. |