DUNE-FEM (unstable)

Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype > Class Template Reference

A grid part with an index set specially designed for adaptive calculations including indices for intersections. More...

#include <dune/fem/gridpart/adaptiveleafgridpart.hh>

Public Types

typedef IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > Traits
 Type definitions.
 
typedef Traits::GridPartType GridPartType
 Grid implementation type.
 
typedef Traits::IndexSetType IndexSetType
 The leaf index set of the grid implementation.
 
typedef Traits::IntersectionIteratorType IntersectionIteratorType
 type of intersection iterator
 
typedef IntersectionIteratorType::Intersection IntersectionType
 type of intersection
 
typedef Traits::CommunicationType CommunicationType
 Collective communication.
 
typedef DofManager< GridTypeDofManagerType
 type of DofManager
 
typedef BoundaryIdProvider< GridTypeBoundaryIdProviderType
 type of boundary id provider specialized for each grid type
 
typedef GridType Grid
 type of Grid implementation
 
typedef IndexSetType IndexSet
 Index set implementation.
 
typedef CommunicationType Communication
 Collective communication.
 
typedef Traits::TwistUtilityType TwistUtilityType
 Twist utility type.
 
typedef IntersectionIteratorType IntersectionIterator
 type of IntersectionIterator
 
typedef IntersectionType Intersection
 type of Intersection
 

Public Member Functions

 IntersectionAdaptiveLeafGridPart (GridType &grid)
 Constructor.
 
 IntersectionAdaptiveLeafGridPart (GridType &grid, const NoIndexSetType &noIndexSet)
 copy constructor (for construction from IndexSet, no public use)
 
 IntersectionAdaptiveLeafGridPart (const IntersectionAdaptiveLeafGridPart &other)=default
 copy constructor
 
const IndexSetTypeindexSet () const
 Returns reference to index set of the underlying grid.
 
IndexSetTypeindexSet ()
 Returns reference to index set of the underlying grid.
 
Codim< codim >::IteratorType begin () const
 Begin iterator on the leaf level.
 
Codim< codim >::template Partition< pitype >::IteratorType begin () const
 Begin iterator on the leaf level.
 
Codim< codim >::IteratorType end () const
 Begin iterator on the leaf level.
 
Codim< codim >::template Partition< pitype >::IteratorType end () const
 End iterator on the leaf level.
 
IntersectionIteratorType ibegin (const ElementType &entity) const
 ibegin of corresponding intersection iterator for given entity
 
IntersectionIteratorType ibegin (const typename Codim< 0 >::EntityType &entity) const
 ibegin of corresponding intersection iterator for given entity
 
IntersectionIteratorType iend (const ElementType &entity) const
 iend of corresponding intersection iterator for given entity
 
IntersectionIteratorType iend (const typename Codim< 0 >::EntityType &entity) const
 iend of corresponding intersection iterator for given entity
 
decltype(auto) communicate (CommDataHandleIF< DataHandle, Data > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for this grid part
 
void communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for grid part
 
const GridTypegrid () const
 Returns const reference to the underlying grid.
 
GridTypegrid ()
 Returns reference to 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
 
const CommunicationTypecomm () const
 obtain collective communication object
 
Traits::template Codim< EntitySeed::codimension >::EntityType entity (const EntitySeed &seed) const
 
const Entityconvert (const Entity &entity) const
 
int boundaryId (const IntersectionType &intersection) const
 
int level () const
 Level of the grid part.
 
int sequence () const
 return sequence number to update structures depending on the grid part More...
 

Static Public Attributes

static const PartitionIteratorType indexSetPartitionType
 Maximum Partition type, the index set provides indices for.
 

Detailed Description

template<class Grid, PartitionIteratorType idxpitype>
class Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >

A grid part with an index set specially designed for adaptive calculations including indices for intersections.

The underlying index set is defined also for codimension -1 (intersections).

Member Function Documentation

◆ boundaryId()

int Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::boundaryId ( const IntersectionType intersection) const
inlineinherited

obtain entity pointer from entity seed

◆ convert()

const Entity & Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::convert ( const Entity entity) const
inlineinherited

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.

Note
The default implementation does nothing but return the same entity

◆ entity()

Traits::template Codim< EntitySeed::codimension >::EntityType Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::entity ( const EntitySeed seed) const
inlineinherited

obtain entity pointer from entity seed

Template Parameters
EntitySeedentity seed from which to create entity

The default implementation simply forwards to the corresponding method on the grid.

◆ sequence()

int Dune::Fem::GridPartInterface< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::sequence ( ) const
inlineinherited

return sequence number to update structures depending on the grid part

Note
The default returns DofManager< Grid > :: sequence ()

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)