|
dune-fem 2.12-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. | |
| typedef Traits::GridPartType | GridPartType |
| Type of the implementation. | |
| typedef Traits::GridType | GridType |
| type of Grid implementation | |
| typedef GridType | Grid |
| type of Grid implementation | |
| typedef Traits::IndexSetType | IndexSetType |
| Index set implementation. | |
| typedef IndexSetType | IndexSet |
| Index set implementation. | |
| typedef Traits::CommunicationType | CommunicationType |
| Collective communication. | |
| typedef CommunicationType | Communication |
| Collective communication. | |
| typedef Traits::TwistUtilityType | TwistUtilityType |
| Twist utility type. | |
| typedef Traits::IntersectionIteratorType | IntersectionIteratorType |
| type of IntersectionIterator | |
| typedef IntersectionIteratorType | IntersectionIterator |
| type of IntersectionIterator | |
| typedef IntersectionIteratorType::Intersection | IntersectionType |
| type of Intersection | |
| typedef IntersectionType | Intersection |
| type of Intersection | |
| typedef GridPartType | GridViewType |
| typedef GridType::ctype | ctype |
Public Member Functions | |
| const GridType & | grid () const |
| Returns const reference to the underlying grid. | |
| GridType & | grid () |
| Returns reference to the underlying grid. | |
| const IndexSetType & | indexSet () const |
| Returns reference to index set of the underlying grid. | |
| bool | isConforming () const |
| returns true if current grid part represents a conforming grid | |
| int | size (int codim) const |
| obtain number of entities in a given codimension | |
| int | size (const GeometryType &type) const |
| obtain number of entities with a given geometry type | |
| template<int codim> | |
| Codim< codim >::IteratorType | begin () const |
| obtain begin iterator for the interior-border partition | |
| template<int codim, PartitionIteratorType pitype> | |
| Codim< codim >::template Partition< pitype >::IteratorType | begin () const |
| obtain begin iterator for the given partition | |
| template<int codim> | |
| Codim< codim >::IteratorType | end () const |
| obtain end iterator for the interior-border partition | |
| template<int codim, PartitionIteratorType pitype> | |
| Codim< codim >::template Partition< pitype >::IteratorType | end () const |
| obtain end iterator for the given partition | |
| int | level () const |
| Level of the grid part. | |
| IntersectionIteratorType | ibegin (const typename Codim< 0 >::EntityType &entity) const |
| ibegin of corresponding intersection iterator for given entity | |
| IntersectionIteratorType | iend (const typename Codim< 0 >::EntityType &entity) const |
| iend of corresponding intersection iterator for given entity | |
| int | boundaryId (const IntersectionType &intersection) const |
| return boundary if given an intersection | |
| const CommunicationType & | comm () const |
| obtain collective communication object | |
| template<class DataHandleImp , class DataType > | |
| void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
| corresponding communication method for grid part | |
| template<class EntitySeed > | |
| Codim< EntitySeed::codimension >::EntityType | entity (const EntitySeed &seed) const |
| obtain entity pointer from entity seed | |
| 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. | |
| template<class EntityType > | |
| bool | contains (const EntityType &e) const |
| Return true if the given entity is contained in this grid view. | |
| int | overlapSize (int codim) const |
| int | ghostSize (int codim) const |
| int | sequence () const |
| return sequence number to update structures depending on the grid part | |
| const auto & | gridView () const |
Static Public Attributes | |
| static const PartitionIteratorType | indexSetPartitionType = Traits::indexSetPartitionType |
| Maximum Partition type, the index set provides indices for. | |
| static const InterfaceType | indexSetInterfaceType = Traits::indexSetInterfaceType |
| static constexpr int | dimension = GridType::dimension |
| static constexpr int | dimensionworld = GridType::dimensionworld |
| static constexpr bool | conforming = Traits::conforming |
Protected Member Functions | |
| GridPartInterface ()=default | |
| do not create explicit instances of this class | |
Detailed Description
class Dune::Fem::GridPartInterface< GridPartTraits >
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]).
Member Typedef Documentation
◆ Communication
| typedef CommunicationType Dune::Fem::GridPartInterface< GridPartTraits >::Communication |
Collective communication.
◆ CommunicationType
| typedef Traits::CommunicationType Dune::Fem::GridPartInterface< GridPartTraits >::CommunicationType |
Collective communication.
◆ ctype
| typedef GridType::ctype Dune::Fem::GridPartInterface< GridPartTraits >::ctype |
◆ Grid
| typedef GridType Dune::Fem::GridPartInterface< GridPartTraits >::Grid |
type of Grid implementation
◆ GridPartType
| typedef Traits::GridPartType Dune::Fem::GridPartInterface< GridPartTraits >::GridPartType |
Type of the implementation.
◆ GridType
| typedef Traits::GridType Dune::Fem::GridPartInterface< GridPartTraits >::GridType |
type of Grid implementation
◆ GridViewType
| typedef GridPartType Dune::Fem::GridPartInterface< GridPartTraits >::GridViewType |
◆ IndexSet
| typedef IndexSetType Dune::Fem::GridPartInterface< GridPartTraits >::IndexSet |
Index set implementation.
◆ IndexSetType
| typedef Traits::IndexSetType Dune::Fem::GridPartInterface< GridPartTraits >::IndexSetType |
Index set implementation.
◆ Intersection
| typedef IntersectionType Dune::Fem::GridPartInterface< GridPartTraits >::Intersection |
type of Intersection
◆ IntersectionIterator
| typedef IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionIterator |
type of IntersectionIterator
◆ IntersectionIteratorType
| typedef Traits::IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionIteratorType |
type of IntersectionIterator
◆ IntersectionType
| typedef IntersectionIteratorType::Intersection Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionType |
type of Intersection
◆ Traits
| typedef GridPartTraits Dune::Fem::GridPartInterface< GridPartTraits >::Traits |
Type of the Traits.
◆ TwistUtilityType
| typedef Traits::TwistUtilityType Dune::Fem::GridPartInterface< GridPartTraits >::TwistUtilityType |
Twist utility type.
Constructor & Destructor Documentation
◆ GridPartInterface()
|
protecteddefault |
do not create explicit instances of this class
Member Function Documentation
◆ begin() [1/2]
|
inline |
obtain begin iterator for the interior-border partition
- Template Parameters
-
codim codimension for which the iterator is requested
◆ begin() [2/2]
|
inline |
obtain begin iterator for the given partition
- Template Parameters
-
codim codimension for which the iterator is requested pitype requested partition iterator type
◆ boundaryId()
|
inline |
return boundary if given an intersection
◆ comm()
|
inline |
obtain collective communication object
◆ communicate()
|
inline |
corresponding communication method for grid part
◆ contains()
|
inline |
Return true if the given entity is contained in this grid view.
- Note
- If the input element e is not an element of the grid, then the result of contains() is undefined.
◆ convert()
|
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.
◆ end() [1/2]
|
inline |
obtain end iterator for the interior-border partition
- Template Parameters
-
codim codimension for which the iterator is requested
◆ end() [2/2]
|
inline |
obtain end iterator for the given partition
- Template Parameters
-
codim codimension for which the iterator is requested pitype requested partition iterator type
◆ entity()
|
inline |
obtain entity pointer from entity seed
◆ ghostSize()
|
inline |
◆ grid() [1/2]
|
inline |
Returns reference to the underlying grid.
◆ grid() [2/2]
|
inline |
Returns const reference to the underlying grid.
◆ gridView()
|
inline |
◆ ibegin()
|
inline |
ibegin of corresponding intersection iterator for given entity
◆ iend()
|
inline |
iend of corresponding intersection iterator for given entity
◆ indexSet()
|
inline |
Returns reference to index set of the underlying grid.
◆ isConforming()
|
inline |
returns true if current grid part represents a conforming grid
◆ level()
|
inline |
Level of the grid part.
◆ overlapSize()
|
inline |
◆ sequence()
|
inline |
return sequence number to update structures depending on the grid part
- Note
- The default returns DofManager< Grid > :: sequence ()
◆ size() [1/2]
|
inline |
obtain number of entities with a given geometry type
◆ size() [2/2]
|
inline |
obtain number of entities in a given codimension
Member Data Documentation
◆ conforming
|
staticconstexpr |
◆ dimension
|
staticconstexpr |
◆ dimensionworld
|
staticconstexpr |
◆ indexSetInterfaceType
|
static |
◆ indexSetPartitionType
|
static |
Maximum Partition type, the index set provides indices for.
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8