Element specialization of FoamGridEntityImp for 1d grids. Element is a grid entity of topological codimension 0 and dimension dimgrid.
More...
#include <dune/foamgrid/foamgrid/foamgridelements.hh>
|
| FoamGridEntityImp (FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v0, FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v1, int level, unsigned int id) |
|
| FoamGridEntityImp (FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v0, FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v1, int level, unsigned int id, FoamGridEntityImp *father) |
|
| FoamGridEntityImp (int level, unsigned int id) |
|
bool | isLeaf () const |
|
unsigned int | nSons () const |
|
bool | mightVanish () const |
|
bool | isNew () const |
|
GeometryType | type () const |
|
bool | hasFather () const |
|
int | corners () const |
| Number of corners (==2) More...
|
|
FieldVector< ctype, dimworld > | corner (int i) const |
|
PartitionType | partitionType () const |
|
FieldVector< ctype, 1 > | 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 |
|
|
std::array< FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *, 2 > | vertex_ |
|
std::array< FoamGridEntityImp< dimgrid-1, dimgrid, dimworld, ctype > *, 2 > | facet_ |
|
std::array< FoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > *, 2 > | sons_ |
| links to refinements of this edge More...
|
|
unsigned int | nSons_ |
| The number of refined edges (0 or 2). More...
|
|
FoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > * | father_ |
| Pointer to father element. More...
|
|
int | refinementIndex_ |
|
MarkState | markState_ |
|
bool | isNew_ |
|
std::shared_ptr< VirtualFunction< FieldVector< ctype, dimgrid >, FieldVector< ctype, dimworld > > > | 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...
|
|
template<int dimworld, class ctype>
class Dune::FoamGridEntityImp< 1, 1, dimworld, ctype >
Element specialization of FoamGridEntityImp for 1d grids. Element is a grid entity of topological codimension 0 and dimension dimgrid.
◆ MarkState
template<int dimworld, class ctype >
The different ways to mark an element for grid changes.
Enumerator |
---|
DO_NOTHING | |
COARSEN | |
REFINE | |
IS_COARSENED | |
◆ FoamGridEntityImp() [1/3]
template<int dimworld, class ctype >
Dune::FoamGridEntityImp< 1, 1, dimworld, ctype >::FoamGridEntityImp |
( |
FoamGridEntityImp< 0, dimgrid, dimworld, ctype > * |
v0, |
|
|
FoamGridEntityImp< 0, dimgrid, dimworld, ctype > * |
v1, |
|
|
int |
level, |
|
|
unsigned int |
id |
|
) |
| |
|
inline |
◆ FoamGridEntityImp() [2/3]
template<int dimworld, class ctype >
Dune::FoamGridEntityImp< 1, 1, dimworld, ctype >::FoamGridEntityImp |
( |
FoamGridEntityImp< 0, dimgrid, dimworld, ctype > * |
v0, |
|
|
FoamGridEntityImp< 0, dimgrid, dimworld, ctype > * |
v1, |
|
|
int |
level, |
|
|
unsigned int |
id, |
|
|
FoamGridEntityImp< 1, 1, dimworld, ctype > * |
father |
|
) |
| |
|
inline |
◆ FoamGridEntityImp() [3/3]
template<int dimworld, class ctype >
◆ corner()
template<int dimworld, class ctype >
◆ corners()
template<int dimworld, class ctype >
◆ globalToLocal()
template<int dimworld, class ctype >
FieldVector<ctype, 1> Dune::FoamGridEntityImp< 1, 1, dimworld, ctype >::globalToLocal |
( |
const FieldVector< ctype, dimworld > & |
coord | ) |
const |
|
inline |
Compute local cordinates from global ones.
- Parameters
-
coord | The global coordinates. |
- Returns
- The corresponding local coordinates within the element.
◆ hasFather()
template<int dimworld, class ctype >
◆ isLeaf()
template<int dimworld, class ctype >
- Todo:
- Implement this method!
◆ isNew()
template<int dimworld, class ctype >
◆ level()
int Dune::FoamGridEntityBase::level |
( |
| ) |
const |
|
inlineinherited |
◆ mightVanish()
template<int dimworld, class ctype >
◆ nSons()
template<int dimworld, class ctype >
◆ partitionType()
template<int dimworld, class ctype >
◆ subLeafIndex()
template<int dimworld, class ctype >
Return leaf index of sub entity with codim = cc and local number i.
◆ subLevelIndex()
template<int dimworld, class ctype >
Return level index of sub entity with codim = cc and local number i.
◆ type()
template<int dimworld, class ctype >
◆ coarseningBlocked_
template<int dimworld, class ctype >
This flag is set by postGrow() if the element looses its right to coarsen because it contains a bifurcation facet without father.
◆ elementParametrization_
template<int dimworld, class ctype >
std::shared_ptr<VirtualFunction<FieldVector<ctype, dimgrid>, FieldVector<ctype, dimworld> > > Dune::FoamGridEntityImp< 1, 1, dimworld, ctype >::elementParametrization_ |
The element parametrization.
◆ facet_
template<int dimworld, class ctype >
◆ father_
template<int dimworld, class ctype >
Pointer to father element.
◆ growthInsertionIndex_
template<int dimworld, class ctype >
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.
◆ id_
unsigned int Dune::FoamGridEntityBase::id_ |
|
inherited |
◆ isNew_
template<int dimworld, class ctype >
◆ leafIndex_
unsigned int Dune::FoamGridEntityBase::leafIndex_ |
|
inherited |
◆ level_
int Dune::FoamGridEntityBase::level_ |
|
inherited |
◆ levelIndex_
unsigned int Dune::FoamGridEntityBase::levelIndex_ |
|
inherited |
◆ markState_
template<int dimworld, class ctype >
◆ nSons_
template<int dimworld, class ctype >
The number of refined edges (0 or 2).
◆ refinementIndex_
template<int dimworld, class ctype >
◆ sons_
template<int dimworld, class ctype >
links to refinements of this edge
◆ vertex_
template<int dimworld, class ctype >
◆ willVanish_
bool Dune::FoamGridEntityBase::willVanish_ |
|
inherited |
Whether this entity will vanish due to coarsening.
The documentation for this class was generated from the following file: