dune-foamgrid 2.8.0
|
Specialization of the generic GridFactory for FoamGrid<dimgrid, dimworld> More...
#include <dune/foamgrid/foamgrid/foamgridfactory.hh>
Public Types | |
using | GridPtrType = std::unique_ptr< FoamGrid< dimgrid, dimworld, ctype > > |
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... | |
Specialization of the generic GridFactory for FoamGrid<dimgrid, dimworld>
using Dune::GridFactoryBase< dimgrid, dimworld, ct >::GridPtrType = std::unique_ptr<FoamGrid<dimgrid, dimworld,ctype> > |
|
inline |
Default constructor.
|
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.
|
inlineoverride |
Destructor.
|
inlineoverride |
Obtain a boundary's insertion index.
|
inlineoverride |
Obtain an element's insertion index.
|
inlineoverride |
Obtain a vertex' insertion index.
|
inlineoverride |
Insert a vertex into the coarse grid.
|
protected |
Counter that creates the boundary segment indices.
|
protected |
|
protected |
|
protected |
Array containing all vertices.