dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/padaptivespace/mapper.hh>

Inheritance diagram for Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder >:
Inheritance graph

Public Types

typedef PAdaptiveLagrangeMapperTraits< GridPart, polOrder > Traits
 
typedef Traits::GridPartType GridPartType
 type of the grid part More...
 
typedef Traits::CompiledLocalKeyVectorType CompiledLocalKeyVectorType
 type of compiled local keys vector More...
 
enum  
 
enum  
 
enum  
 
typedef Traits::ElementType ElementType
 type of entities (codim 0) More...
 
typedef GridPartType::GridType GridType
 type of the underlying grid More...
 
typedef GridPartType::IndexSetType IndexSetType
 type of the index set More...
 
typedef Traits::GlobalKeyType GlobalKeyType
 type of global key More...
 
typedef GridType::ctype FieldType
 type of coordinates within the grid More...
 
typedef CompiledLocalKeyVectorType::value_type::value_type CompiledLocalKeyType
 compiled local key type More...
 
typedef DofManager< GridTypeDofManagerType
 type of the DoF manager More...
 
typedef EntityDofStorage EntityDofStorageType
 
typedef PolynomOrderStorage PolynomOrderStorageType
 
typedef PersistentContainer< GridType, EntityDofStorageTypeDofContainerType
 
typedef PersistentContainer< GridType, PolynomOrderStorageTypePolyOrderContainerType
 
typedef BaseType::SizeType SizeType
 type of size integer More...
 
typedef Traits::DofMapperType DofMapperType
 type of the DofMapper implementation More...
 
typedef ElementType EntityType
 

Public Member Functions

 PAdaptiveLagrangeMapper (const GridPartType &gridPart, CompiledLocalKeyVectorType &compiledLocalKeys)
 constructor More...
 
 PAdaptiveLagrangeMapper (const ThisType &other, CompiledLocalKeyVectorType &compiledLocalKeys)
 sort of copy constructor More...
 
int polynomOrder (const ElementType &entity) const
 
void setPolynomOrder (const ElementType &entity, const int polOrd)
 
DofContainerTypedofContainer (const std::size_t codim) const
 
const CompiledLocalKeyTypecompiledLocalKey (const int polOrd, const GeometryType type) const
 
int size () const
 return overall number of degrees of freedom More...
 
void mapEach (const ElementType &element, Functor f) const
 
int mapToGlobal (const ElementType &entity, const int localDof) const
 
void mapEachEntityDof (const Entity &entity, Functor f) const
 map each local DoF number to a global key More...
 
int maxNumDofs () const
 obtain maximal number of DoFs on one entity More...
 
int numDofs (const ElementType &entity) const
 obtain number of DoFs on an entity More...
 
int numEntityDofs (const Entity &entity) const
 obtain number of DoFs actually belonging to an entity More...
 
bool contains (int codim) const
 Check, whether any DoFs are associated with a codimension. More...
 
bool fixedDataSize (int codim) const
 Check, whether the data in a codimension has fixed size. More...
 
int oldIndex (const int hole, const int block) const
 
int newIndex (const int hole, const int block) const
 
int numberOfHoles (const int block) const
 
int numBlocks () const
 
int oldOffSet (const int block) const
 
int offSet (const int block) const
 
bool consecutive () const
 
void resizeContainers ()
 
void insertEntity (const ElementType &entity)
 
unsigned int insertEntityDofs (const ElementType &entity)
 
void removeEntity (const ElementType &entity)
 
void resize ()
 
void adapt ()
 adjust mapper to newly set polynomial orders More...
 
unsigned int insertFather (const ElementType &entity)
 
bool considerHierarchy () const
 return true if elements can be refined more than once during adaptation More...
 
size_t insertAllUsed ()
 return number of DoFs currently used for space More...
 
void printDofs () const
 
void printEntityDofs (const ElementType &entity) const
 
void setUnused ()
 reset all used flags of all DoF entries More...
 
bool compress ()
 
void backup () const
 
void restore ()
 
void read (InStream &in)
 
void write (OutStream &out)
 

Static Public Attributes

static const bool discontinuousMapper
 
static const int dimension
 dimension of the grid More...
 
static const int highestDimension
 highest codimension used to attach dofs More...
 
static const int polynomialOrder
 order of the Lagrange polynoms More...
 

Protected Member Functions

const PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperTypeasImp () const
 
PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperTypeasImp ()
 

Static Protected Member Functions

static const PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperTypeasImp (const ThisType &other)
 
static PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperTypeasImp (ThisType &other)
 

Member Typedef Documentation

typedef CompiledLocalKeyVectorType :: value_type :: value_type Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::CompiledLocalKeyType
inherited

compiled local key type

template<class GridPart , int polOrder>
typedef Traits :: CompiledLocalKeyVectorType Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder >::CompiledLocalKeyVectorType

type of compiled local keys vector

typedef PersistentContainer< GridType, EntityDofStorageType > Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::DofContainerType
inherited

type of the DoF manager

type of the DofMapper implementation

type of entities (codim 0)

typedef EntityDofStorage Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::EntityDofStorageType
inherited
typedef ElementType Dune::Fem::DofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::EntityType
inherited
typedef GridType::ctype Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::FieldType
inherited

type of coordinates within the grid

type of global key

template<class GridPart , int polOrder>
typedef Traits::GridPartType Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder >::GridPartType

type of the grid part

typedef GridPartType::GridType Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::GridType
inherited

type of the underlying grid

typedef GridPartType::IndexSetType Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::IndexSetType
inherited

type of the index set

typedef PolynomOrderStorage Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::PolynomOrderStorageType
inherited

type of size integer

template<class GridPart , int polOrder>
typedef PAdaptiveLagrangeMapperTraits< GridPart, polOrder > Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder >::Traits

Member Enumeration Documentation

anonymous enum
inherited
anonymous enum
inherited
anonymous enum
inherited

Constructor & Destructor Documentation

template<class GridPart , int polOrder>
Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder >::PAdaptiveLagrangeMapper ( const GridPartType gridPart,
CompiledLocalKeyVectorType compiledLocalKeys 
)
inline

constructor

template<class GridPart , int polOrder>
Dune::Fem::PAdaptiveLagrangeMapper< GridPart, polOrder >::PAdaptiveLagrangeMapper ( const ThisType other,
CompiledLocalKeyVectorType compiledLocalKeys 
)
inline

sort of copy constructor

Member Function Documentation

void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::adapt ( )
inlineinherited

adjust mapper to newly set polynomial orders

References Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::compress().

static const PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > > , PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > > , PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > > , PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType >::asImp ( ) const
inlineprotectedinherited
PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType & Dune::Fem::BartonNackmanInterface< DofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > > , PAdaptiveLagrangeMapperTraits< GridPart, polOrder >::DofMapperType >::asImp ( )
inlineprotectedinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::backup ( ) const
inlineinherited
const CompiledLocalKeyType& Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::compiledLocalKey ( const int  polOrd,
const GeometryType  type 
) const
inlineinherited
bool Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::compress ( )
inlineinherited
bool Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::consecutive ( ) const
inlineinherited

bool Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::considerHierarchy ( ) const
inlineinherited

return true if elements can be refined more than once during adaptation

bool Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::contains ( int  codim) const
inlineinherited

Check, whether any DoFs are associated with a codimension.

DofContainerType& Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::dofContainer ( const std::size_t  codim) const
inlineinherited
bool Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::fixedDataSize ( int  codim) const
inlineinherited

Check, whether the data in a codimension has fixed size.

size_t Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::insertAllUsed ( )
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::insertEntity ( const ElementType entity)
inlineinherited
unsigned int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::insertEntityDofs ( const ElementType entity)
inlineinherited
unsigned int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::insertFather ( const ElementType entity)
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::mapEach ( const ElementType element,
Functor  f 
) const
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::mapEachEntityDof ( const Entity &  entity,
Functor  f 
) const
inlineinherited

map each local DoF number to a global key

Parameters
[in]entityentity, the DoFs belong to
[in]ffunctor to call for each DoF

The functor has to be a copyable object satisfying the following interface:

struct Functor
{
// application operator
template< class GlobalKey >
void operator() ( const int localDoF, const GlobalKey &globalKey );
};

For each DoF to be mapped, this method will call the application operator once.

Note
There is no guarantee on the order, in which the functor is applied.
The global key has to be compatible with the Dof storage.

References Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::dofContainer(), Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::EntityDofStorage::entityDof(), and Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::numEntityDofs().

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::mapToGlobal ( const ElementType entity,
const int  localDof 
) const
inlineinherited
int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::maxNumDofs ( ) const
inlineinherited

obtain maximal number of DoFs on one entity

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::newIndex ( const int  hole,
const int  block 
) const
inlineinherited

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::numberOfHoles ( const int  block) const
inlineinherited

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::numBlocks ( ) const
inlineinherited

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::numDofs ( const ElementType entity) const
inlineinherited

obtain number of DoFs on an entity

Parameters
[in]elemententity of codimension 0
Returns
number of DoFs on the entity

References Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::compiledLocalKey(), Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::polynomOrder(), and Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::size().

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::numEntityDofs ( const Entity &  entity) const
inlineinherited

obtain number of DoFs actually belonging to an entity

In contrast to numDofs, this method returns the number of DoFs actually associated with an entity (usually a subentity). We have the following relation for an entity $E$ of codimension 0:

\[ \mathrm{numDofs}( E ) = \sum_{e \subset E} \mathrm{numEntityDofs}( e ), \]

where $\subset$ denotes the subentity relation.

Parameters
[in]entityentity of codimension
Returns
number of DoFs on the entity

References Dune::Fem::GenericAdaptiveDofMapper< TraitsImp >::dofContainer().

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::offSet ( const int  block) const
inlineinherited

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::oldIndex ( const int  hole,
const int  block 
) const
inlineinherited

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::oldOffSet ( const int  block) const
inlineinherited

int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::polynomOrder ( const ElementType entity) const
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::printDofs ( ) const
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::printEntityDofs ( const ElementType entity) const
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::read ( InStream &  in)
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::removeEntity ( const ElementType entity)
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::resize ( )
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::resizeContainers ( )
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::restore ( )
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::setPolynomOrder ( const ElementType entity,
const int  polOrd 
)
inlineinherited
void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::setUnused ( )
inlineinherited
int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::size ( ) const
inlineinherited

return overall number of degrees of freedom

void Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::write ( OutStream &  out)
inlineinherited

Member Data Documentation

const int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::dimension
staticinherited

dimension of the grid

const bool Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::discontinuousMapper
staticinherited
const int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::highestDimension
staticinherited

highest codimension used to attach dofs

const int Dune::Fem::GenericAdaptiveDofMapper< PAdaptiveLagrangeMapperTraits< GridPart, polOrder > >::polynomialOrder
staticinherited

order of the Lagrange polynoms


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