dune-foamgrid 2.8.0
|
Element specialization of FoamGridEntityImp for 2d grids. Element is a grid entity of topological codimension 0 and dimension dimgrid. More...
#include <dune/foamgrid/foamgrid/foamgridelements.hh>
Public Types | |
enum | MarkState { DO_NOTHING , COARSEN , REFINE , IS_COARSENED } |
The different ways to mark an element for grid changes. More... | |
Public Member Functions | |
FoamGridEntityImp (int level, unsigned int id) | |
int | corners () const |
GeometryType | type () const |
bool | hasFather () const |
bool | mightVanish () const |
bool | isLeaf () const |
bool | isNew () const |
unsigned int | nSons () const |
FieldVector< ctype, 2 > | globalToLocal (const FieldVector< ctype, dimworld > &coord) const |
Compute local cordinates from global ones. More... | |
int | subLevelIndex (int i, unsigned int codim) const |
Return level index of sub entity with codim = cc and local number i. More... | |
int | subLeafIndex (int i, unsigned int codim) const |
Return leaf index of sub entity with codim = cc and local number i. More... | |
int | level () const |
Public Attributes | |
int | refinementIndex_ |
index of the refined element in the father More... | |
unsigned int | nSons_ |
std::array< FoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > *, 4 > | sons_ |
std::array< FoamGridEntityImp< dimgrid-1, dimgrid, dimworld, ctype > *, 3 > | facet_ |
std::array< FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *, 3 > | vertex_ |
MarkState | markState_ |
Stores requests for refinement and coarsening. More... | |
bool | isNew_ |
This flag is set by adapt() if this element has been newly created. More... | |
FoamGridEntityImp< dimgrid, dimgrid,dimworld, ctype > * | father_ |
std::function< FieldVector< ctype, dimworld >(FieldVector< ctype, dimgrid >)> | elementParametrization_ |
The element parametrization. More... | |
bool | coarseningBlocked_ |
This flag is set by postGrow() if the element looses its right to coarsen because it contains a bifurcation facet without father. More... | |
int | growthInsertionIndex_ |
If this element was created in a growth step this will be the index of insertion So if this is the first element added to the growth queue by calling insertElement the index is 0 The index will be valid until postGrow is called. To all other times this shall be -1. More... | |
int | level_ |
level More... | |
unsigned int | levelIndex_ |
entity number More... | |
unsigned int | leafIndex_ |
unsigned int | id_ |
bool | willVanish_ |
Whether this entity will vanish due to coarsening. More... | |
Element specialization of FoamGridEntityImp for 2d grids. Element is a grid entity of topological codimension 0 and dimension dimgrid.
enum Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::MarkState |
|
inline |
|
inline |
|
inline |
Compute local cordinates from global ones.
coord | The global coordinates. |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
inline |
Return leaf index of sub entity with codim = cc and local number i.
|
inline |
Return level index of sub entity with codim = cc and local number i.
|
inline |
bool Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::coarseningBlocked_ |
This flag is set by postGrow() if the element looses its right to coarsen because it contains a bifurcation facet without father.
std::function<FieldVector<ctype, dimworld>(FieldVector<ctype, dimgrid>)> Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::elementParametrization_ |
The element parametrization.
std::array<FoamGridEntityImp<dimgrid-1, dimgrid, dimworld, ctype>*, 3> Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::facet_ |
FoamGridEntityImp<dimgrid, dimgrid ,dimworld, ctype>* Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::father_ |
int Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::growthInsertionIndex_ |
If this element was created in a growth step this will be the index of insertion So if this is the first element added to the growth queue by calling insertElement the index is 0 The index will be valid until postGrow is called. To all other times this shall be -1.
|
inherited |
bool Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::isNew_ |
This flag is set by adapt() if this element has been newly created.
|
inherited |
|
inherited |
level
|
inherited |
entity number
MarkState Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::markState_ |
Stores requests for refinement and coarsening.
unsigned int Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::nSons_ |
int Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::refinementIndex_ |
index of the refined element in the father
For red refinement this is either the index of corner, that is also a corner in the father element, within the father or 3 if no corner is also a corner in the father.
std::array<FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*, 4> Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::sons_ |
std::array<FoamGridEntityImp<0, dimgrid, dimworld, ctype>*, 3> Dune::FoamGridEntityImp< 2, 2, dimworld, ctype >::vertex_ |
|
inherited |
Whether this entity will vanish due to coarsening.