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

A degrees of freedom manager for FEFunctionSpace s of piecewise polynomials of order Order. More...

#include <lagrangespace.hh>

Inheritance diagram for Kaskade::DiscontinuousLagrangeMapper< ScalarType, GV >:
Kaskade::UniformScalarMapper< DiscontinuousLagrangeMapperImplementation< ScalarType, GV > >

Classes

struct  Element

Public Types

typedef GV GridView
typedef int ConstructorArgument
template<int m>
using Element_t = FunctionSpaceElement<FEFunctionSpace<Self>,m>
 Type of the FunctionSpaceElement, associated to the FEFunctionSpace.
typedef DiscontinuousLagrangeMapperImplementation< ScalarType, GV >::Grid Grid
using Cell
typedef DiscontinuousLagrangeMapperImplementation< ScalarType, GV >::ShapeFunctionSet ShapeFunctionSet
typedef DiscontinuousLagrangeMapperImplementation< ScalarType, GV >::Converter Converter
typedef DiscontinuousLagrangeMapperImplementation< ScalarType, GV >::Combiner Combiner
typedef DiscontinuousLagrangeMapperImplementation< ScalarType, 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

 DiscontinuousLagrangeMapper (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 = -1
static bool const globalSupport
 Whether the ansatz functions have global support (i.e. lead to dense matrices).

Protected Attributes

DiscontinuousLagrangeMapperImplementation< ScalarType, GV > implementation

Detailed Description

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

A degrees of freedom manager for FEFunctionSpace s of piecewise polynomials of order Order.

Template Parameters
ScalarTypescalar type
GVgrid view

Definition at line 311 of file lagrangespace.hh.

Member Typedef Documentation

◆ Cell

◆ Combiner

◆ ConstructorArgument

template<class ScalarType, class GV>
typedef int Kaskade::DiscontinuousLagrangeMapper< ScalarType, GV >::ConstructorArgument

Definition at line 320 of file lagrangespace.hh.

◆ Converter

◆ Element_t

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

Type of the FunctionSpaceElement, associated to the FEFunctionSpace.

Template Parameters
mnumber of components

Definition at line 330 of file lagrangespace.hh.

◆ GlobalIndexRange

Definition at line 228 of file scalarspace.hh.

◆ Grid

◆ GridView

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

Definition at line 319 of file lagrangespace.hh.

◆ IndexPair

Definition at line 215 of file scalarspace.hh.

◆ IndexSet

Definition at line 214 of file scalarspace.hh.

◆ Scalar

◆ ShapeFunctionSet

◆ SortedIndexRange

Definition at line 229 of file scalarspace.hh.

Constructor & Destructor Documentation

◆ DiscontinuousLagrangeMapper()

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

Definition at line 339 of file lagrangespace.hh.

Member Function Documentation

◆ combiner()

Combiner Kaskade::UniformScalarMapper< DiscontinuousLagrangeMapperImplementation< ScalarType, GV >, ScalarSpaceDetail::Empty >::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()

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()

◆ initGlobalIndexRange()

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

Definition at line 261 of file scalarspace.hh.

◆ initSortedIndexRange()

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< DiscontinuousLagrangeMapperImplementation< ScalarType, GV >, ScalarSpaceDetail::Empty >::lowerShapeFunctions ( Cell const & cell) const
inlineinherited

Definition at line 357 of file scalarspace.hh.

◆ maxOrder()

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< DiscontinuousLagrangeMapperImplementation< ScalarType, GV >, ScalarSpaceDetail::Empty >::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()

Definition at line 339 of file scalarspace.hh.

◆ size()

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()

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< DiscontinuousLagrangeMapperImplementation< ScalarType, GV >, ScalarSpaceDetail::Empty >::unrestrictedToRestrictedIndex ( size_t unrestrictedIndex)
inlineinherited

Definition at line 379 of file scalarspace.hh.

◆ update()

(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 ScalarType, class GV>
int const Kaskade::DiscontinuousLagrangeMapper< ScalarType, GV >::continuity = -1
static

Definition at line 321 of file lagrangespace.hh.

◆ globalSupport

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

Definition at line 234 of file scalarspace.hh.

◆ implementation


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