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

A degrees of freedom manager for globally continuous FEFunctionSpace s of piecewise polynomials. More...

#include <hierarchicspace.hh>

Inheritance diagram for Kaskade::ContinuousHierarchicMapper< Scalar, GV >:
Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >

Classes

struct  Element

Public Types

typedef GV GridView
typedef int ConstructorArgument
template<int m>
using Element_t = FunctionSpaceElement<FEFunctionSpace<Self>,m>
typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Grid Grid
using Cell
typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::ShapeFunctionSet ShapeFunctionSet
typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Converter Converter
typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Combiner Combiner
typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Scalar Scalar
typedef GridView::IndexSet IndexSet
typedef std::pair< size_t, int > IndexPair
typedef RangeView< GlobalIndexIterator > GlobalIndexRange
typedef RangeView< SortedIndexIterator > SortedIndexRange

Public Member Functions

 ContinuousHierarchicMapper (GridView const &gridView, int order)
GridView const & gridView () const
 Returns the grid view used.
int maxOrder () const
 Returns the maximal polynomial order of shape functions encountered in any cell.
GlobalIndexRange initGlobalIndexRange () const
 Returns an empty range just for initialization purposes, since RangeView is not default constructible.
GlobalIndexRange globalIndices (Cell const &cell) const
 Returns an immutable sequence containing the global indices of the shape functions associated to this cell.
SortedIndexRange sortedIndices (Cell const &cell) const
 Returns an immutable sequence of (global index, local index) pairs sorted in ascending global index order.
size_t size () const
 Returns the number of global degrees of freedom managed.
ShapeFunctionSet const & shapefunctions (Cell const &cell, bool contained=false) const
 Returns the set of shape functions defined on this cell.
ShapeFunctionSet & shapefunctions_non_const (Cell const &cell)
ShapeFunctionSet const & lowerShapeFunctions (Cell const &cell) const
Combiner combiner (Cell const &cell, size_t index) const
 Returns a combiner for the given leaf cell.
std::pair< bool, size_t > unrestrictedToRestrictedIndex (size_t unrestrictedIndex)
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 continuity = 0
static bool const globalSupport
 Whether the ansatz functions have global support (i.e. lead to dense matrices).

Protected Attributes

ContinuousHierarchicMapperImplementation< Scalar, GV > implementation

Detailed Description

template<class Scalar, class GV>
class Kaskade::ContinuousHierarchicMapper< Scalar, GV >

A degrees of freedom manager for globally continuous FEFunctionSpace s of piecewise polynomials.

Template Parameters
Scalarscalar type
GVgrid view

Definition at line 392 of file hierarchicspace.hh.

Member Typedef Documentation

◆ Cell

using Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::Cell
inherited

Definition at line 208 of file scalarspace.hh.

◆ Combiner

typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Combiner Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::Combiner
inherited

Definition at line 211 of file scalarspace.hh.

◆ ConstructorArgument

template<class Scalar, class GV>
typedef int Kaskade::ContinuousHierarchicMapper< Scalar, GV >::ConstructorArgument

Definition at line 401 of file hierarchicspace.hh.

◆ Converter

typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Converter Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::Converter
inherited

Definition at line 210 of file scalarspace.hh.

◆ Element_t

template<class Scalar, class GV>
template<int m>
using Kaskade::ContinuousHierarchicMapper< Scalar, GV >::Element_t = FunctionSpaceElement<FEFunctionSpace<Self>,m>

Definition at line 405 of file hierarchicspace.hh.

◆ GlobalIndexRange

typedef RangeView<GlobalIndexIterator> Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::GlobalIndexRange
inherited

Definition at line 228 of file scalarspace.hh.

◆ Grid

typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Grid Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::Grid
inherited

Definition at line 207 of file scalarspace.hh.

◆ GridView

template<class Scalar, class GV>
typedef GV Kaskade::ContinuousHierarchicMapper< Scalar, GV >::GridView

Definition at line 400 of file hierarchicspace.hh.

◆ IndexPair

typedef std::pair<size_t,int> Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::IndexPair
inherited

Definition at line 215 of file scalarspace.hh.

◆ IndexSet

typedef GridView::IndexSet Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::IndexSet
inherited

Definition at line 214 of file scalarspace.hh.

◆ Scalar

typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::Scalar Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::Scalar
inherited

Definition at line 212 of file scalarspace.hh.

◆ ShapeFunctionSet

typedef ContinuousHierarchicMapperImplementation< Scalar, GV >::ShapeFunctionSet Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::ShapeFunctionSet
inherited

Definition at line 209 of file scalarspace.hh.

◆ SortedIndexRange

typedef RangeView<SortedIndexIterator> Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::SortedIndexRange
inherited

Definition at line 229 of file scalarspace.hh.

Constructor & Destructor Documentation

◆ ContinuousHierarchicMapper()

template<class Scalar, class GV>
Kaskade::ContinuousHierarchicMapper< Scalar, GV >::ContinuousHierarchicMapper ( GridView const & gridView,
int order )
inline

Definition at line 413 of file hierarchicspace.hh.

Member Function Documentation

◆ combiner()

Combiner Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::combiner ( Cell const & cell,
size_t index ) const
inlineinherited

Returns a combiner for the given leaf cell.

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

Definition at line 370 of file scalarspace.hh.

◆ globalIndices()

GlobalIndexRange Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::globalIndices ( Cell const & cell) const
inlineinherited

Returns an immutable sequence containing the global indices of the shape functions associated to this cell.

Global indices start at 0 and are consecutive - in the range returned here, an unordered subset is contained.

Definition at line 274 of file scalarspace.hh.

◆ gridView()

GridView const & Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::gridView ( ) const
inlineinherited

Returns the grid view used.

Definition at line 244 of file scalarspace.hh.

Referenced by Kaskade::ContinuousHierarchicMapper< Scalar, GV >::ContinuousHierarchicMapper().

◆ initGlobalIndexRange()

GlobalIndexRange Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::initGlobalIndexRange ( ) const
inlineinherited

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

Definition at line 261 of file scalarspace.hh.

◆ initSortedIndexRange()

SortedIndexRange Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::initSortedIndexRange ( )
inlinestaticinherited

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

Definition at line 294 of file scalarspace.hh.

◆ lowerShapeFunctions()

ShapeFunctionSet const & Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::lowerShapeFunctions ( Cell const & cell) const
inlineinherited

Definition at line 357 of file scalarspace.hh.

◆ maxOrder()

int Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::maxOrder ( ) const
inlineinherited

Returns the maximal polynomial order of shape functions encountered in any cell.

Definition at line 252 of file scalarspace.hh.

◆ shapefunctions()

ShapeFunctionSet const & Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::shapefunctions ( Cell const & cell,
bool contained = false ) const
inlineinherited

Returns the set of shape functions defined on this cell.

Parameters
cellthe codim 0 entity of the grid for wich the shape functions are to be retrieved
containedif true, the method may assume that the cell is contained in the index set of the space. (The other case occurs during interpolation between different grids).

Definition at line 331 of file scalarspace.hh.

◆ shapefunctions_non_const()

ShapeFunctionSet & Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::shapefunctions_non_const ( Cell const & cell)
inlineinherited

Definition at line 339 of file scalarspace.hh.

◆ size()

size_t Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::size ( ) const
inlineinherited

Returns the number of global degrees of freedom managed.

Note that this does not correspond directly to the number of coefficients in a FE function (if the FE function has more than one component).

Definition at line 323 of file scalarspace.hh.

◆ sortedIndices()

SortedIndexRange Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::sortedIndices ( Cell const & cell) const
inlineinherited

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

Definition at line 303 of file scalarspace.hh.

◆ unrestrictedToRestrictedIndex()

std::pair< bool, size_t > Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::unrestrictedToRestrictedIndex ( size_t unrestrictedIndex)
inlineinherited

Definition at line 379 of file scalarspace.hh.

◆ update()

void Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::update ( )
inlineinherited

(Re)computes the internal data.

This has to be called after grid modifications and on construction.

Definition at line 389 of file scalarspace.hh.

Member Data Documentation

◆ continuity

template<class Scalar, class GV>
int const Kaskade::ContinuousHierarchicMapper< Scalar, GV >::continuity = 0
static

Definition at line 402 of file hierarchicspace.hh.

◆ globalSupport

bool const Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::globalSupport
staticinherited

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

Definition at line 234 of file scalarspace.hh.

◆ implementation

ContinuousHierarchicMapperImplementation< Scalar, GV > Kaskade::UniformScalarMapper< ContinuousHierarchicMapperImplementation< Scalar, GV >, boost::compressed_pair< bool, int > >::implementation
protectedinherited

Definition at line 528 of file scalarspace.hh.


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