Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > > Class Template Reference

#include <gridfactory.hh>

Inheritance diagram for Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >:
Inheritance graph

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, dimensionworldCoordinateType
 
typedef CoordinateType Coordinate
 
using UniquePtrType = std::unique_ptr< Grid >
 

Public Member Functions

 GridFactory (const MPICommunicatorType &=MPIHelper::getCommunicator())
 Default constructor. More...
 
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. More...
 
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< CoordinateTypenodes_
 
std::vector< std::vector< int > > faces_
 
std::vector< std::vector< int > > cells_
 

Member Typedef Documentation

◆ Coordinate

template<int dim, int dimworld, class coord_t >
typedef CoordinateType Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::Coordinate

◆ CoordinateType

template<int dim, int dimworld, class coord_t >
typedef Dune::FieldVector<ctype,dimensionworld> Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::CoordinateType

◆ ctype

template<int dim, int dimworld, class coord_t >
typedef Grid::ctype Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::ctype

◆ Element

template<int dim, int dimworld, class coord_t >
typedef Grid::template Codim<0>::Entity Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::Element

◆ Grid

template<int dim, int dimworld, class coord_t >
typedef PolyhedralGrid< dim, dimworld, coord_t > Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::Grid

◆ MPICommunicatorType

template<int dim, int dimworld, class coord_t >
typedef MPIHelper::MPICommunicator Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::MPICommunicatorType

◆ UniquePtrType

template<int dim, int dimworld, class coord_t >
using Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::UniquePtrType = std::unique_ptr<Grid>

◆ Vertex

template<int dim, int dimworld, class coord_t >
typedef Grid::template Codim<dimension>::Entity Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::Vertex

Constructor & Destructor Documentation

◆ GridFactory()

template<int dim, int dimworld, class coord_t >
Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::GridFactory ( const MPICommunicatorType = MPIHelper::getCommunicator())
inlineexplicit

Default constructor.

Member Function Documentation

◆ createGrid()

template<int dim, int dimworld, class coord_t >
UniquePtrType Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::createGrid ( )
inline

◆ insertBoundarySegment()

template<int dim, int dimworld, class coord_t >
void Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::insertBoundarySegment ( const std::vector< unsigned int > &  )
inline

◆ insertElement()

template<int dim, int dimworld, class coord_t >
virtual void Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::insertElement ( const GeometryType &  type,
const std::vector< unsigned int > &  items 
)
inlinevirtual

Insert an element into the coarse grid.

Parameters
typeThe GeometryType of the new element
itemsThe items are usually the vertex numbers of the inserted element. If the geometry type is none the these can be face numbers.
Note
If the GeometryType is none then faces need to be inserted separately using this method and passing a GeometryType with dimension - 1 (with respect to the Grid's dimension).

◆ insertVertex()

template<int dim, int dimworld, class coord_t >
virtual void Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::insertVertex ( const CoordinateType pos)
inlinevirtual

Member Data Documentation

◆ cells_

template<int dim, int dimworld, class coord_t >
std::vector< std::vector< int > > Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::cells_
protected

◆ dimension

template<int dim, int dimworld, class coord_t >
const int Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::dimension = Grid::dimension
static

◆ dimensionworld

template<int dim, int dimworld, class coord_t >
const int Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::dimensionworld = Grid::dimensionworld
static

◆ faces_

template<int dim, int dimworld, class coord_t >
std::vector< std::vector< int > > Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::faces_
protected

◆ nodes_

template<int dim, int dimworld, class coord_t >
std::vector< CoordinateType > Dune::GridFactory< PolyhedralGrid< dim, dimworld, coord_t > >::nodes_
protected

The documentation for this class was generated from the following file: