KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::NedelecMapper< ScalarType, GV > Class Template Reference

Degrees of freedom manager for Nedelec edge elements. More...

#include <nedelecspace.hh>

Classes

class  Combiner
 A class implementing a matrix \( K \) mapping a subset of global degrees of freedom (those given by globalIndices()) to local degrees of freedom (shape functions). More...

Public Types

typedef ScalarType RT __attribute__((deprecated))
typedef ScalarType Scalar
typedef GV GridView
typedef GridView::Grid Grid
typedef GridView::IndexSet IndexSet
typedef bool ConstructorArgument
typedef RangeView< std::vector< size_t >::const_iterator > GlobalIndexRange
typedef std::pair< size_t, int > IndexPair
typedef std::vector< IndexPair >::const_iterator SortedIndexIterator
typedef RangeView< SortedIndexIterator > SortedIndexRange
typedef Grid::template Codim< 0 >::Entity Cell
typedef NedelecShapeFunctionSetContainer< typenameGrid::ctype, dim, Scalar >::value_type ShapeFunctionSet
typedef HcurlConverter< Grid > Converter
 A class mapping local shape function values and derivatives to global shape function values and derivatives.

Public Member Functions

 NedelecMapper (GridView const &gridView_, bool)
 Constructs a NedelecMapper for a given grid view. The second parameter is unused and only specified for interface consistency.
virtual ~NedelecMapper ()
ShapeFunctionSet const & shapefunctions (Cell const &cell) const
ShapeFunctionSet const & shapefunctions (size_t n) const
GlobalIndexRange initGlobalIndexRange () const
GlobalIndexRange globalIndices (Cell const &cell) const
GlobalIndexRange globalIndices (size_t n) const
SortedIndexRange sortedIndices (Cell const &cell) const
 Returns an immutable sequence of (global index, local index) pairs sorted in ascending global index order.
SortedIndexRange sortedIndices (size_t n) const
 Returns an immutable sequence of (global index, local index) pairs sorted in ascending global index order.
size_t size () const
Combiner combiner (Cell const &cell, size_t index) const
void update ()
 (Re)computes the internal data.

Static Public Member Functions

static SortedIndexRange initSortedIndexRange ()
 Returns an empty range just for initialization, since RangeView is not default constructible.

Static Public Attributes

static int const dim = Grid::dimension
static bool const globalSupport = false
 Whether the ansatz functions have global support (i.e. lead to dense matrices).
static int const continuity = -1

Detailed Description

template<class ScalarType, class GV>
class Kaskade::NedelecMapper< ScalarType, GV >

Degrees of freedom manager for Nedelec edge elements.

Template Parameters
ScalarTypescalar type
GVgrid view

Definition at line 523 of file nedelecspace.hh.

Member Typedef Documentation

◆ __attribute__

template<class ScalarType, class GV>
typedef ScalarType RT Kaskade::NedelecMapper< ScalarType, GV >::__attribute__((deprecated))

Definition at line 526 of file nedelecspace.hh.

◆ Cell

template<class ScalarType, class GV>
typedef Grid::template Codim<0>::Entity Kaskade::NedelecMapper< ScalarType, GV >::Cell

Definition at line 549 of file nedelecspace.hh.

◆ ConstructorArgument

template<class ScalarType, class GV>
typedef bool Kaskade::NedelecMapper< ScalarType, GV >::ConstructorArgument

Definition at line 541 of file nedelecspace.hh.

◆ Converter

template<class ScalarType, class GV>
typedef HcurlConverter<Grid> Kaskade::NedelecMapper< ScalarType, GV >::Converter

A class mapping local shape function values and derivatives to global shape function values and derivatives.

Definition at line 646 of file nedelecspace.hh.

◆ GlobalIndexRange

template<class ScalarType, class GV>
typedef RangeView<std::vector<size_t>::const_iterator> Kaskade::NedelecMapper< ScalarType, GV >::GlobalIndexRange

Definition at line 543 of file nedelecspace.hh.

◆ Grid

template<class ScalarType, class GV>
typedef GridView::Grid Kaskade::NedelecMapper< ScalarType, GV >::Grid

Definition at line 531 of file nedelecspace.hh.

◆ GridView

template<class ScalarType, class GV>
typedef GV Kaskade::NedelecMapper< ScalarType, GV >::GridView

Definition at line 530 of file nedelecspace.hh.

◆ IndexPair

template<class ScalarType, class GV>
typedef std::pair<size_t,int> Kaskade::NedelecMapper< ScalarType, GV >::IndexPair

Definition at line 545 of file nedelecspace.hh.

◆ IndexSet

template<class ScalarType, class GV>
typedef GridView::IndexSet Kaskade::NedelecMapper< ScalarType, GV >::IndexSet

Definition at line 532 of file nedelecspace.hh.

◆ Scalar

template<class ScalarType, class GV>
typedef ScalarType Kaskade::NedelecMapper< ScalarType, GV >::Scalar

Definition at line 527 of file nedelecspace.hh.

◆ ShapeFunctionSet

template<class ScalarType, class GV>
typedef NedelecShapeFunctionSetContainer<typenameGrid::ctype,dim,Scalar>::value_type Kaskade::NedelecMapper< ScalarType, GV >::ShapeFunctionSet

Definition at line 550 of file nedelecspace.hh.

◆ SortedIndexIterator

template<class ScalarType, class GV>
typedef std::vector<IndexPair>::const_iterator Kaskade::NedelecMapper< ScalarType, GV >::SortedIndexIterator

Definition at line 546 of file nedelecspace.hh.

◆ SortedIndexRange

template<class ScalarType, class GV>
typedef RangeView<SortedIndexIterator> Kaskade::NedelecMapper< ScalarType, GV >::SortedIndexRange

Definition at line 547 of file nedelecspace.hh.

Constructor & Destructor Documentation

◆ NedelecMapper()

template<class ScalarType, class GV>
Kaskade::NedelecMapper< ScalarType, GV >::NedelecMapper ( GridView const & gridView_,
bool  )
inline

Constructs a NedelecMapper for a given grid view. The second parameter is unused and only specified for interface consistency.

Definition at line 556 of file nedelecspace.hh.

◆ ~NedelecMapper()

template<class ScalarType, class GV>
virtual Kaskade::NedelecMapper< ScalarType, GV >::~NedelecMapper ( )
inlinevirtual

Definition at line 570 of file nedelecspace.hh.

Member Function Documentation

◆ combiner()

template<class ScalarType, class GV>
Combiner Kaskade::NedelecMapper< ScalarType, GV >::combiner ( Cell const & cell,
size_t index ) const
inline

Returns a combiner for the given cell.

Parameters
cellthe grid cell for which the combiner is requested
indexthe index of the cell

Definition at line 744 of file nedelecspace.hh.

◆ globalIndices() [1/2]

template<class ScalarType, class GV>
GlobalIndexRange Kaskade::NedelecMapper< ScalarType, GV >::globalIndices ( Cell const & cell) const
inline

Returns a const sequence containing the global indices of the shape functions associated to this cell. Global indices start at 0 and are consecutive.

Definition at line 598 of file nedelecspace.hh.

Referenced by globalIndices().

◆ globalIndices() [2/2]

template<class ScalarType, class GV>
GlobalIndexRange Kaskade::NedelecMapper< ScalarType, GV >::globalIndices ( size_t n) const
inline

Returns a const sequence containing the global indices of the shape functions associated to this cell. Global indices start at 0 and are consecutive.

Definition at line 608 of file nedelecspace.hh.

◆ initGlobalIndexRange()

template<class ScalarType, class GV>
GlobalIndexRange Kaskade::NedelecMapper< ScalarType, GV >::initGlobalIndexRange ( ) const
inline

Returns an empty range just for initialization purposes, since RangeView is not default constructible.

Definition at line 588 of file nedelecspace.hh.

◆ initSortedIndexRange()

template<class ScalarType, class GV>
SortedIndexRange Kaskade::NedelecMapper< ScalarType, GV >::initSortedIndexRange ( )
inlinestatic

Returns an empty range just for initialization, since RangeView is not default constructible.

Definition at line 616 of file nedelecspace.hh.

◆ shapefunctions() [1/2]

template<class ScalarType, class GV>
ShapeFunctionSet const & Kaskade::NedelecMapper< ScalarType, GV >::shapefunctions ( Cell const & cell) const
inline

Definition at line 572 of file nedelecspace.hh.

Referenced by update().

◆ shapefunctions() [2/2]

template<class ScalarType, class GV>
ShapeFunctionSet const & Kaskade::NedelecMapper< ScalarType, GV >::shapefunctions ( size_t n) const
inline

Definition at line 578 of file nedelecspace.hh.

◆ size()

template<class ScalarType, class GV>
size_t Kaskade::NedelecMapper< ScalarType, GV >::size ( ) const
inline

Returns the number of global degrees of freedom managed.

Definition at line 641 of file nedelecspace.hh.

Referenced by Kaskade::NedelecMapper< ScalarType, GV >::Combiner::Combiner().

◆ sortedIndices() [1/2]

template<class ScalarType, class GV>
SortedIndexRange Kaskade::NedelecMapper< ScalarType, GV >::sortedIndices ( Cell const & cell) const
inline

Returns an immutable sequence of (global index, local index) pairs sorted in ascending global index order.

Definition at line 625 of file nedelecspace.hh.

Referenced by sortedIndices().

◆ sortedIndices() [2/2]

template<class ScalarType, class GV>
SortedIndexRange Kaskade::NedelecMapper< ScalarType, GV >::sortedIndices ( size_t n) const
inline

Returns an immutable sequence of (global index, local index) pairs sorted in ascending global index order.

Definition at line 633 of file nedelecspace.hh.

◆ update()

template<class ScalarType, class GV>
void Kaskade::NedelecMapper< ScalarType, GV >::update ( )
inline

(Re)computes the internal data.

This has to be called after grid modifications.

Definition at line 755 of file nedelecspace.hh.

Referenced by NedelecMapper().

Member Data Documentation

◆ continuity

template<class ScalarType, class GV>
int const Kaskade::NedelecMapper< ScalarType, GV >::continuity = -1
static

Definition at line 542 of file nedelecspace.hh.

◆ dim

template<class ScalarType, class GV>
int const Kaskade::NedelecMapper< ScalarType, GV >::dim = Grid::dimension
static

◆ globalSupport

template<class ScalarType, class GV>
bool const Kaskade::NedelecMapper< ScalarType, GV >::globalSupport = false
static

Whether the ansatz functions have global support (i.e. lead to dense matrices).

Definition at line 539 of file nedelecspace.hh.


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