KASKADE 7 development version
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted > Class Template Reference

A local to global mapper for scalar Lagrange bases. More...

#include <lagrangespace.hh>

Detailed Description

template<class ScalarType, class GV, bool restricted = false>
class Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >

A local to global mapper for scalar Lagrange bases.

This is to be used as a policy object for the UniformScalarMapper.

Template Parameters
ScalarTypeThe underlying field type (usually double).
GVThe grid view on which the FE space is defined.
restricted

Definition at line 50 of file lagrangespace.hh.

Inheritance diagram for Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >:
Kaskade::DiscontinuousLagrangeMapperImplementation< ScalarType, GV >

Classes

class  Combiner
 A class implementing a matrix \( K \in \R^{n\times m}\) mapping a subset of \( m \) global degrees of freedom (those given by globalIndices()) to \( n \) local degrees of freedom (shape functions). More...
 

Public Types

typedef ScalarType Scalar
 
typedef GV GridView
 
typedef GridView::Grid Grid
 
typedef GridView::IndexSet IndexSet
 
using Cell = Kaskade::Cell< GridView >
 
using ctype = typename Grid::ctype
 
using ShapeFunctionSet = typename LagrangeShapeFunctionSetContainer< ctype, dim, Scalar, restricted >::value_type
 
typedef ScalarConverter< Cell, ScalarConverter
 

Public Member Functions

void update ()
 This is called on grid modifications and can be overwritten if internal data needs to be recomputed on refinement or coarsening. More...
 
IndexSet const & indexSet () const
 The index set obtained from gridView(). More...
 
size_t size (Dune::GeometryType gt) const
 The number of entities of given geometry type in our support. More...
 
bool inSupport (Cell const &cell) const
 Tells whether the given cell is contained in the support. More...
 
IndexSet::IndexType subIndex (Cell const &cell, int subentity, int codim) const
 Returns the index of the specified subentity. More...
 
GridView const & gridView () const
 
 LagrangeMapperImplementation (GridView const &gridView_, int order_)
 
ShapeFunctionSet const & shapeFunctions (Cell const &cell) const
 
ShapeFunctionSet const & lowerShapeFunctions (Cell const &cell) const
 
ShapeFunctionSet const & emptyShapeFunctionSet () const
 
int order () const
 

Static Public Attributes

static int const dim = Grid::dimension
 

Member Typedef Documentation

◆ Cell

template<class ScalarType , class GV , bool restricted = false>
using Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::Cell = Kaskade::Cell<GridView>

Definition at line 58 of file lagrangespace.hh.

◆ Converter

template<class ScalarType , class GV , bool restricted = false>
typedef ScalarConverter<Cell,Scalar> Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::Converter

Definition at line 163 of file lagrangespace.hh.

◆ ctype

template<class ScalarType , class GV , bool restricted = false>
using Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::ctype = typename Grid::ctype

Definition at line 60 of file lagrangespace.hh.

◆ Grid

template<class ScalarType , class GV , bool restricted = false>
typedef GridView::Grid Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::Grid

Definition at line 56 of file lagrangespace.hh.

◆ GridView

template<class ScalarType , class GV , bool restricted = false>
typedef GV Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::GridView

Definition at line 55 of file lagrangespace.hh.

◆ IndexSet

template<class ScalarType , class GV , bool restricted = false>
typedef GridView::IndexSet Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::IndexSet

Definition at line 57 of file lagrangespace.hh.

◆ Scalar

template<class ScalarType , class GV , bool restricted = false>
typedef ScalarType Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::Scalar

Definition at line 53 of file lagrangespace.hh.

◆ ShapeFunctionSet

template<class ScalarType , class GV , bool restricted = false>
using Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::ShapeFunctionSet = typename LagrangeShapeFunctionSetContainer<ctype,dim,Scalar,restricted>::value_type

Definition at line 64 of file lagrangespace.hh.

Constructor & Destructor Documentation

◆ LagrangeMapperImplementation()

template<class ScalarType , class GV , bool restricted = false>
Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::LagrangeMapperImplementation ( GridView const &  gridView_,
int  order_ 
)
inline
Parameters
indexSet_must contain a subset (or all) of the cells in the grid.
order_.

Definition at line 117 of file lagrangespace.hh.

Member Function Documentation

◆ emptyShapeFunctionSet()

template<class ScalarType , class GV , bool restricted = false>
ShapeFunctionSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::emptyShapeFunctionSet ( ) const
inline

Definition at line 154 of file lagrangespace.hh.

◆ gridView()

template<class ScalarType , class GV , bool restricted = false>
GridView const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::gridView ( ) const
inline

Definition at line 111 of file lagrangespace.hh.

◆ indexSet()

template<class ScalarType , class GV , bool restricted = false>
IndexSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::indexSet ( ) const
inline

◆ inSupport()

template<class ScalarType , class GV , bool restricted = false>
bool Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::inSupport ( Cell const &  cell) const
inline

Tells whether the given cell is contained in the support.

The default implementation realizes global support, i.e., all cells are contained.

Definition at line 97 of file lagrangespace.hh.

◆ lowerShapeFunctions()

template<class ScalarType , class GV , bool restricted = false>
ShapeFunctionSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::lowerShapeFunctions ( Cell const &  cell) const
inline

Definition at line 149 of file lagrangespace.hh.

◆ order()

template<class ScalarType , class GV , bool restricted = false>
int Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::order ( ) const
inline

◆ shapeFunctions()

template<class ScalarType , class GV , bool restricted = false>
ShapeFunctionSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::shapeFunctions ( Cell const &  cell) const
inline

Definition at line 136 of file lagrangespace.hh.

◆ size()

template<class ScalarType , class GV , bool restricted = false>
size_t Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::size ( Dune::GeometryType  gt) const
inline

The number of entities of given geometry type in our support.

The default implementation just repoththrts the total number of entities in the grid view, which corresponds to global support.

Definition at line 87 of file lagrangespace.hh.

◆ subIndex()

template<class ScalarType , class GV , bool restricted = false>
IndexSet::IndexType Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::subIndex ( Cell const &  cell,
int  subentity,
int  codim 
) const
inline

Returns the index of the specified subentity.

Definition at line 105 of file lagrangespace.hh.

◆ update()

template<class ScalarType , class GV , bool restricted = false>
void Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::update ( )
inline

This is called on grid modifications and can be overwritten if internal data needs to be recomputed on refinement or coarsening.

The default implementation provided here does nothing.

Definition at line 72 of file lagrangespace.hh.

Member Data Documentation

◆ dim

template<class ScalarType , class GV , bool restricted = false>
int const Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::dim = Grid::dimension
static

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