dune-fem
2.8-git
|
Interface for the GridPart classes A GridPart class allows to access only a specific subset of a grid's entities. A GridPart implementation provides the corresponding index set and a begin/end iterator pair for accessing those entities, the corresponding intersection iterators and a appropriate communication method. GridParts are used to parametrize spaces (see DiscreteFunctionSpaceDefault [in dune-fem]). More...
#include <dune/fem/gridpart/common/gridpart.hh>
Classes | |
struct | Codim |
Public Types | |
typedef GridPartTraits | Traits |
Type of the Traits. More... | |
typedef Traits::GridPartType | GridPartType |
Type of the implementation. More... | |
typedef Traits::GridType | GridType |
type of Grid implementation More... | |
typedef Traits::IndexSetType | IndexSetType |
Index set implementation. More... | |
typedef Traits::CollectiveCommunicationType | CollectiveCommunicationType |
Collective communication. More... | |
typedef Traits::TwistUtilityType | TwistUtilityType |
Twist utility type. More... | |
typedef Traits::IntersectionIteratorType | IntersectionIteratorType |
type of IntersectionIterator More... | |
typedef IntersectionIteratorType::Intersection | IntersectionType |
type of Intersection More... | |
typedef PoliciesType::GridViewType | GridViewType |
typedef GridType::ctype | ctype |
Public Member Functions | |
const GridType & | grid () const |
Returns const reference to the underlying grid. More... | |
GridType & | grid () |
Returns reference to the underlying grid. More... | |
const IndexSetType & | indexSet () const |
Returns reference to index set of the underlying grid. More... | |
template<int codim> | |
Codim< codim >::IteratorType | begin () const |
obtain begin iterator for the interior-border partition More... | |
template<int codim, PartitionIteratorType pitype> | |
Codim< codim >::template Partition< pitype >::IteratorType | begin () const |
obtain begin iterator for the given partition More... | |
template<int codim> | |
Codim< codim >::IteratorType | end () const |
obtain end iterator for the interior-border partition More... | |
template<int codim, PartitionIteratorType pitype> | |
Codim< codim >::template Partition< pitype >::IteratorType | end () const |
obtain end iterator for the given partition More... | |
int | level () const |
Level of the grid part. More... | |
IntersectionIteratorType | ibegin (const typename Codim< 0 >::EntityType &entity) const |
ibegin of corresponding intersection iterator for given entity More... | |
IntersectionIteratorType | iend (const typename Codim< 0 >::EntityType &entity) const |
iend of corresponding intersection iterator for given entity More... | |
int | boundaryId (const IntersectionType &intersection) const |
return boundary if given an intersection More... | |
const CollectiveCommunicationType & | comm () const |
obtain collective communication object More... | |
template<class DataHandleImp , class DataType > | |
void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
corresponding communication method for grid part More... | |
template<class EntitySeed > | |
Codim< EntitySeed::codimension >::EntityType | entity (const EntitySeed &seed) const |
obtain entity pointer from entity seed More... | |
template<class Entity > | |
const Entity & | convert (const Entity &entity) const |
convert the grid's entity to a grid part entity Usually the parameter is GridType :: Codim< codim > :: Entity and the return is Codim< codim > :: EntityType. In general these types are the same, but for overloaded entities on grid parts this can differ. More... | |
int | sequence () const |
return sequence number to update structures depending on the grid part More... | |
Static Public Attributes | |
static const PartitionIteratorType | indexSetPartitionType = Traits::indexSetPartitionType |
Maximum Partition type, the index set provides indices for. More... | |
static const InterfaceType | indexSetInterfaceType = Traits::indexSetInterfaceType |
static const int | dimension = GridType::dimension |
static const int | dimensionworld = GridType::dimensionworld |
Protected Member Functions | |
GridPartInterface ()=default | |
do not create explicit instances of this class More... | |
Interface for the GridPart classes A GridPart class allows to access only a specific subset of a grid's entities. A GridPart implementation provides the corresponding index set and a begin/end iterator pair for accessing those entities, the corresponding intersection iterators and a appropriate communication method. GridParts are used to parametrize spaces (see DiscreteFunctionSpaceDefault [in dune-fem]).
typedef Traits::CollectiveCommunicationType Dune::Fem::GridPartInterface< GridPartTraits >::CollectiveCommunicationType |
Collective communication.
typedef GridType::ctype Dune::Fem::GridPartInterface< GridPartTraits >::ctype |
typedef Traits::GridPartType Dune::Fem::GridPartInterface< GridPartTraits >::GridPartType |
Type of the implementation.
typedef Traits::GridType Dune::Fem::GridPartInterface< GridPartTraits >::GridType |
type of Grid implementation
typedef PoliciesType::GridViewType Dune::Fem::GridPartInterface< GridPartTraits >::GridViewType |
typedef Traits::IndexSetType Dune::Fem::GridPartInterface< GridPartTraits >::IndexSetType |
Index set implementation.
typedef Traits::IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionIteratorType |
type of IntersectionIterator
typedef IntersectionIteratorType::Intersection Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionType |
type of Intersection
typedef GridPartTraits Dune::Fem::GridPartInterface< GridPartTraits >::Traits |
Type of the Traits.
typedef Traits::TwistUtilityType Dune::Fem::GridPartInterface< GridPartTraits >::TwistUtilityType |
Twist utility type.
|
protecteddefault |
do not create explicit instances of this class
|
inline |
obtain begin iterator for the interior-border partition
codim | codimension for which the iterator is requested |
|
inline |
obtain begin iterator for the given partition
codim | codimension for which the iterator is requested |
pitype | requested partition iterator type |
|
inline |
return boundary if given an intersection
|
inline |
obtain collective communication object
|
inline |
corresponding communication method for grid part
|
inline |
convert the grid's entity to a grid part entity Usually the parameter is GridType :: Codim< codim > :: Entity and the return is Codim< codim > :: EntityType. In general these types are the same, but for overloaded entities on grid parts this can differ.
|
inline |
obtain end iterator for the interior-border partition
codim | codimension for which the iterator is requested |
|
inline |
obtain end iterator for the given partition
codim | codimension for which the iterator is requested |
pitype | requested partition iterator type |
|
inline |
obtain entity pointer from entity seed
|
inline |
Returns reference to the underlying grid.
|
inline |
Returns const reference to the underlying grid.
|
inline |
ibegin of corresponding intersection iterator for given entity
|
inline |
iend of corresponding intersection iterator for given entity
|
inline |
Returns reference to index set of the underlying grid.
|
inline |
Level of the grid part.
|
inline |
return sequence number to update structures depending on the grid part
|
static |
|
static |
|
static |
|
static |
Maximum Partition type, the index set provides indices for.