|
dune-fem 2.12-git
|
An \(hp\)-adaptive Dune::Fem::DofMapper. More...
#include <dune/fem/space/hpdg/blockmapper.hh>

Classes | |
| struct | Reserve |
| struct | Resize |
Public Types | |
| using | ThisType = DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys > |
| using | BaseType = AdaptiveDofMapper< DiscontinuousGalerkinBlockMapperTraits< GridPart, LocalKeys > > |
| using | SizeType = typename BaseType::SizeType |
| size type | |
| using | GlobalKeyType = typename BaseType::GlobalKeyType |
| global key type | |
| using | GridPartType = GridPart |
| grid part type | |
| using | ElementType = typename BaseType::ElementType |
| element type | |
| using | LocalKeysType = LocalKeys |
| basis function sets type | |
| using | KeyType = typename LocalKeysType::KeyType |
| key type | |
| using | DofManagerType = DofManager< GridType > |
| dof manager type | |
| typedef DofMapperTraits | Traits |
| typedef Traits::DofMapperType | DofMapperType |
| type of the DofMapper implementation | |
| typedef ElementType | EntityType |
Public Member Functions | |
| bool | consecutive () const |
| return true if compress will affect data | |
| SizeType | oldOffSet (const int block) const |
| return old offsets for given block | |
| SizeType | offSet (const int block) const |
| return current offsets for given block | |
| SizeType | numBlocks () const |
| return number of supported blocks | |
| void | update () |
| update DoF mapping after grid modification | |
| bool | contains (const int codim) const |
| returns true if DoFs for given codimension exist | |
| bool | fixedDataSize (const int codim) const |
| Check, whether the data in a codimension has fixed size. | |
| template<class Functor > | |
| void | mapEach (const ElementType &element, Functor f) const |
| map each local DoF number to a global key | |
| template<class Entity , class Functor > | |
| void | mapEachEntityDof (const Entity &entity, Functor f) const |
| map each local DoF number to a global key | |
Construction | |
| template<class Function > | |
| DiscontinuousGalerkinBlockMapper (const GridPartType &gridPart, const LocalKeysType &localKeys, const KeyType &value, Function function) | |
| DiscontinuousGalerkinBlockMapper (const GridPartType &gridPart, const LocalKeysType &localKeys, const KeyType &value) | |
Copying and assignment | |
| DiscontinuousGalerkinBlockMapper (const ThisType &)=delete | |
| copy constructor | |
| DiscontinuousGalerkinBlockMapper (ThisType &&)=default | |
| move constructor | |
| ThisType & | operator= (const ThisType &)=delete |
| assignment operator | |
| ThisType & | operator= (ThisType &&)=default |
| move assignment operator | |
Adaptation interface | |
| template<class Element > | |
| std::enable_if<(std::is_same< Element, ElementType >::value||std::is_same< Element, GridElementType >::value), constKeyType & >::type | key (const Element &element) const |
| get key currently assigned to an entity | |
| void | mark (const KeyType &key, const ElementType &element) |
| set key to be assigned to an entity after next call to adapt() | |
| KeyType | getMark (const ElementType &element) const |
| get key to be assigned to an entity after next call to adapt() | |
| template<class Function > | |
| bool | adapt (Function function) |
| please doc me | |
| bool | adapt () |
| please doc me | |
Protected Member Functions | |
| const Implementation & | asImp () const |
| Implementation & | asImp () |
Static Protected Member Functions | |
| static const Implementation & | asImp (const ThisType &other) |
| static Implementation & | asImp (ThisType &other) |
| static const DofMapperTraits ::DofMapperType & | asImp (const ThisType &other) |
| static DofMapperTraits ::DofMapperType & | asImp (ThisType &other) |
Friends | |
| class | DataHandle< DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys > > |
Public interface for adaptation managers | |
| const DofManagerType & | dofManager () const |
| return DOF manager | |
| void | insertEntity (const GridElementType &gridElement) |
| add DOFs for element | |
| void | removeEntity (const GridElementType &gridElement) |
| mark DOFs for removal | |
| void | insertNewEntity (const GridElementType &gridElement) |
| add DOFs for new element | |
| void | resize () |
| bool | compress () |
| compress DOF mapping | |
| template<class Traits > | |
| void | write (OutStreamInterface< Traits > &) |
| this mapper has no I/O capabilities | |
| template<class Traits > | |
| void | read (InStreamInterface< Traits > &) |
| this mapper has no I/O capabilities | |
| void | backup () const |
| this mapper has no I/O capabilities | |
| void | restore () |
| this mapper has no I/O capabilities | |
Interface methods | |
| SizeType | size () const |
| return number of dofs | |
| int | maxNumDofs () const |
| return upper bound for number of dofs | |
| SizeType | numDofs (const ElementType &element) const |
| return number of dofs for given element | |
| template<class Entity > | |
| SizeType | numEntityDofs (const Entity &entity) const |
| return number of dofs for given element | |
| void | onSubEntity (const ElementType &element, int i, int c, std::vector< bool > &indices) const |
| void | onSubEntity (const ElementType &element, int i, int c, std::vector< char > &indices) const |
| template<class Function > | |
| void | mapEach (const ElementType &element, Function function) const |
| map local dof to global key | |
| template<class Entity , class Function > | |
| void | mapEachEntityDof (const Entity &entity, Function function) const |
| map local dof to global key | |
| SizeType | numberOfHoles (const int block) const |
| return number of holes during compression | |
| GlobalKeyType | oldIndex (const int hole, const int block) const |
| return old index of given hole during compression | |
| GlobalKeyType | newIndex (const int hole, const int block) const |
| return new index of given hole during compression | |
| static constexpr bool | contains (const int codim) |
| return true if dofs are associated to codimension | |
| static constexpr bool | fixedDataSize (int codim) |
| return true if number of dofs is fixed for given codimension | |
| static constexpr bool | consecutive () |
| return true (this mapper yields a consecutive DOF numbering) | |
| static constexpr SizeType | oldOffSet (const int block) |
| return 0 (this mapper has no offset) | |
| static constexpr SizeType | offSet (const int block) |
| return 0 (this mapper has no offset) | |
| static constexpr SizeType | numBlocks () |
| return 1 (this mapper has one block) | |
Detailed Description
struct Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >
An \(hp\)-adaptive Dune::Fem::DofMapper.
- Template Parameters
-
GridPart a Dune::Fem::GridPart type LocalKeys see documentation below
- Note
- The second template parameter is required to provide the following member methods: struct LocalKeys{// type of key// type of datausing DataType = ImplementationDefined;// return maximum number of dofs associated with an entitystd::size_t maxBlocks () const;// return maximum number of dofs for given type and key// map key to data type// map data to key type};typename LocalKeysType::KeyType KeyTypekey typeDefinition blockmapper.hh:120
Member Typedef Documentation
◆ BaseType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::BaseType = AdaptiveDofMapper< DiscontinuousGalerkinBlockMapperTraits< GridPart, LocalKeys > > |
◆ DofManagerType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::DofManagerType = DofManager< GridType > |
dof manager type
◆ DofMapperType
|
inherited |
type of the DofMapper implementation
◆ ElementType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::ElementType = typename BaseType::ElementType |
element type
◆ EntityType
|
inherited |
◆ GlobalKeyType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::GlobalKeyType = typename BaseType::GlobalKeyType |
global key type
◆ GridPartType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::GridPartType = GridPart |
grid part type
◆ KeyType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::KeyType = typename LocalKeysType::KeyType |
key type
◆ LocalKeysType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::LocalKeysType = LocalKeys |
basis function sets type
◆ SizeType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::SizeType = typename BaseType::SizeType |
size type
◆ ThisType
| using Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::ThisType = DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys > |
◆ Traits
|
inherited |
Constructor & Destructor Documentation
◆ DiscontinuousGalerkinBlockMapper() [1/4]
|
inline |
◆ DiscontinuousGalerkinBlockMapper() [2/4]
|
inline |
◆ DiscontinuousGalerkinBlockMapper() [3/4]
|
delete |
copy constructor
◆ DiscontinuousGalerkinBlockMapper() [4/4]
|
default |
move constructor
Member Function Documentation
◆ adapt() [1/2]
|
inline |
please doc me
◆ adapt() [2/2]
| bool Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::adapt | ( | Function | function | ) |
please doc me
◆ asImp() [1/6]
|
inlineprotectedinherited |
◆ asImp() [2/6]
|
inlineprotectedinherited |
◆ asImp() [3/6]
|
inlinestaticprotectedinherited |
◆ asImp() [4/6]
|
inlinestaticprotectedinherited |
◆ asImp() [5/6]
|
inlinestaticprotectedinherited |
◆ asImp() [6/6]
|
inlinestaticprotectedinherited |
◆ backup()
|
inline |
this mapper has no I/O capabilities
◆ compress()
| bool Dune::Fem::hpDG::DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys >::compress | ( | ) |
compress DOF mapping
◆ consecutive() [1/2]
|
inlinestaticconstexpr |
return true (this mapper yields a consecutive DOF numbering)
◆ consecutive() [2/2]
|
inlineinherited |
return true if compress will affect data
◆ contains() [1/2]
|
inlinestaticconstexpr |
return true if dofs are associated to codimension
◆ contains() [2/2]
|
inlineinherited |
returns true if DoFs for given codimension exist
- Parameters
-
[in] codim codimension to check
- Returns
- true if DoFs for codimension exist
◆ dofManager()
|
inline |
return DOF manager
◆ fixedDataSize() [1/2]
|
inlineinherited |
Check, whether the data in a codimension has fixed size.
◆ fixedDataSize() [2/2]
|
inlinestaticconstexpr |
return true if number of dofs is fixed for given codimension
◆ getMark()
|
inline |
get key to be assigned to an entity after next call to adapt()
◆ insertEntity()
|
inline |
add DOFs for element
◆ insertNewEntity()
|
inline |
add DOFs for new element
◆ key()
|
inline |
get key currently assigned to an entity
◆ mapEach() [1/2]
|
inline |
map local dof to global key
◆ mapEach() [2/2]
|
inlineinherited |
map each local DoF number to a global key
- Parameters
-
[in] element element, the DoFs belong to [in] f functor to call for each DoF
The functor has to be a copyable object satisfying the following interface:
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.
◆ mapEachEntityDof() [1/2]
|
inline |
map local dof to global key
◆ mapEachEntityDof() [2/2]
|
inlineinherited |
map each local DoF number to a global key
- Parameters
-
[in] entity entity, the DoFs belong to [in] f functor to call for each DoF
The functor has to be a copyable object satisfying the following interface:
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.
◆ mark()
|
inline |
set key to be assigned to an entity after next call to adapt()
◆ maxNumDofs()
|
inline |
return upper bound for number of dofs
◆ newIndex()
|
inline |
return new index of given hole during compression
◆ numberOfHoles()
|
inline |
return number of holes during compression
◆ numBlocks() [1/2]
|
inlinestaticconstexpr |
return 1 (this mapper has one block)
◆ numBlocks() [2/2]
|
inlineinherited |
return number of supported blocks
◆ numDofs()
|
inline |
return number of dofs for given element
◆ numEntityDofs()
|
inline |
return number of dofs for given element
◆ offSet() [1/2]
|
inlinestaticconstexpr |
return 0 (this mapper has no offset)
◆ offSet() [2/2]
|
inlineinherited |
return current offsets for given block
◆ oldIndex()
|
inline |
return old index of given hole during compression
◆ oldOffSet() [1/2]
|
inlinestaticconstexpr |
return 0 (this mapper has no offset)
◆ oldOffSet() [2/2]
|
inlineinherited |
return old offsets for given block
◆ onSubEntity() [1/2]
|
inline |
◆ onSubEntity() [2/2]
|
inline |
◆ operator=() [1/2]
|
delete |
assignment operator
◆ operator=() [2/2]
|
default |
move assignment operator
◆ read()
|
inline |
this mapper has no I/O capabilities
◆ removeEntity()
|
inline |
mark DOFs for removal
◆ resize()
|
inline |
◆ restore()
|
inline |
this mapper has no I/O capabilities
◆ size()
|
inline |
return number of dofs
◆ update()
|
inlineinherited |
update DoF mapping after grid modification
Adaptive DoF mappers are considered to be always up to date and this method does nothing.
◆ write()
|
inline |
this mapper has no I/O capabilities
Friends And Related Symbol Documentation
◆ DataHandle< DiscontinuousGalerkinBlockMapper< GridPart, LocalKeys > >
|
friend |
The documentation for this struct was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8