dune-foamgrid  2.7-git
Public Member Functions | Protected Attributes | List of all members
Dune::GridFactoryBase< dimgrid, dimworld, ct > Class Template Reference

Specialization of the generic GridFactory for FoamGrid<dimgrid, dimworld> More...

#include <dune/foamgrid/foamgrid/foamgridfactory.hh>

Inheritance diagram for Dune::GridFactoryBase< dimgrid, dimworld, ct >:
Inheritance graph

Public Member Functions

 GridFactoryBase ()
 Default constructor. More...
 
 GridFactoryBase (FoamGrid< dimgrid, dimworld, ctype > *grid)
 Constructor for a given grid object. More...
 
 ~GridFactoryBase () override
 Destructor. More...
 
void insertVertex (const FieldVector< ctype, dimworld > &pos) override
 Insert a vertex into the coarse grid. More...
 
unsigned int insertionIndex (const typename FoamGrid< dimgrid, dimworld, ctype >::Traits::template Codim< 0 >::Entity &entity) const override
 Obtain an element's insertion index. More...
 
unsigned int insertionIndex (const typename FoamGrid< dimgrid, dimworld, ctype >::Traits::template Codim< dimgrid >::Entity &vertex) const override
 Obtain a vertex' insertion index. More...
 
unsigned int insertionIndex (const typename FoamGrid< dimgrid, dimworld, ctype >::LeafIntersection &intersection) const override
 Obtain a boundary's insertion index. More...
 

Protected Attributes

FoamGrid< dimgrid, dimworld, ctype > * grid_
 
bool factoryOwnsGrid_
 
std::vector< FoamGridEntityImp< 0, dimgrid, dimworld, ctype > * > vertexArray_
 Array containing all vertices. More...
 
unsigned int boundarySegmentCounter_ = 0
 Counter that creates the boundary segment indices. More...
 

Detailed Description

template<int dimgrid, int dimworld, class ct>
class Dune::GridFactoryBase< dimgrid, dimworld, ct >

Specialization of the generic GridFactory for FoamGrid<dimgrid, dimworld>

Constructor & Destructor Documentation

◆ GridFactoryBase() [1/2]

template<int dimgrid, int dimworld, class ct >
Dune::GridFactoryBase< dimgrid, dimworld, ct >::GridFactoryBase ( )
inline

Default constructor.

◆ GridFactoryBase() [2/2]

template<int dimgrid, int dimworld, class ct >
Dune::GridFactoryBase< dimgrid, dimworld, ct >::GridFactoryBase ( FoamGrid< dimgrid, dimworld, ctype > *  grid)
inline

Constructor for a given grid object.

If you already have your grid object constructed you can hand it over using this constructor.

If you construct your factory class using this constructor the pointer handed over to you by the method createGrid() is the one you supplied here.

◆ ~GridFactoryBase()

template<int dimgrid, int dimworld, class ct >
Dune::GridFactoryBase< dimgrid, dimworld, ct >::~GridFactoryBase ( )
inlineoverride

Destructor.

Member Function Documentation

◆ insertionIndex() [1/3]

template<int dimgrid, int dimworld, class ct >
unsigned int Dune::GridFactoryBase< dimgrid, dimworld, ct >::insertionIndex ( const typename FoamGrid< dimgrid, dimworld, ctype >::LeafIntersection &  intersection) const
inlineoverride

Obtain a boundary's insertion index.

◆ insertionIndex() [2/3]

template<int dimgrid, int dimworld, class ct >
unsigned int Dune::GridFactoryBase< dimgrid, dimworld, ct >::insertionIndex ( const typename FoamGrid< dimgrid, dimworld, ctype >::Traits::template Codim< 0 >::Entity &  entity) const
inlineoverride

Obtain an element's insertion index.

◆ insertionIndex() [3/3]

template<int dimgrid, int dimworld, class ct >
unsigned int Dune::GridFactoryBase< dimgrid, dimworld, ct >::insertionIndex ( const typename FoamGrid< dimgrid, dimworld, ctype >::Traits::template Codim< dimgrid >::Entity &  vertex) const
inlineoverride

Obtain a vertex' insertion index.

◆ insertVertex()

template<int dimgrid, int dimworld, class ct >
void Dune::GridFactoryBase< dimgrid, dimworld, ct >::insertVertex ( const FieldVector< ctype, dimworld > &  pos)
inlineoverride

Insert a vertex into the coarse grid.

Member Data Documentation

◆ boundarySegmentCounter_

template<int dimgrid, int dimworld, class ct >
unsigned int Dune::GridFactoryBase< dimgrid, dimworld, ct >::boundarySegmentCounter_ = 0
protected

Counter that creates the boundary segment indices.

◆ factoryOwnsGrid_

template<int dimgrid, int dimworld, class ct >
bool Dune::GridFactoryBase< dimgrid, dimworld, ct >::factoryOwnsGrid_
protected

◆ grid_

template<int dimgrid, int dimworld, class ct >
FoamGrid<dimgrid, dimworld, ctype>* Dune::GridFactoryBase< dimgrid, dimworld, ct >::grid_
protected

◆ vertexArray_

template<int dimgrid, int dimworld, class ct >
std::vector<FoamGridEntityImp<0, dimgrid, dimworld, ctype>*> Dune::GridFactoryBase< dimgrid, dimworld, ct >::vertexArray_
protected

Array containing all vertices.


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