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

A local to global mapper implementation for scalar hierarchic bases. More...

#include <hierarchicspace.hh>

Detailed Description

template<class Scalar_, class GV, bool restricted>
class Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >

A local to global mapper implementation for scalar hierarchic bases.

Template Parameters
ScalarTypethe scalar type
GVthe grid view type

Definition at line 50 of file hierarchicspace.hh.

Classes

class  Combiner
 

Public Types

typedef Scalar_ RT
 
typedef Scalar_ Scalar
 
typedef GV GridView
 
typedef GridView::Grid Grid
 
typedef GridView::IndexSet IndexSet
 
typedef Grid::template Codim< 0 >::Entity Cell
 
typedef HierarchicShapeFunctionSetContainer< typenameGrid::ctype, dim, Scalar, restricted >::value_type ShapeFunctionSet
 
typedef ScalarConverter< Cell, ScalarConverter
 

Public Member Functions

 HierarchicMapperImplementationBase (GridView const &gridView_, int order)
 
void update ()
 This is called on grid modifications and can be overwritten if internal data needs to be recomputed on refinement or coarsening. 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...
 
ShapeFunctionSet const & emptyShapeFunctionSet () const
 
IndexSet const & indexSet () const
 
GridView const & gridView () const
 
size_t size (Dune::GeometryType gt) const
 
int order () const
 Returns the nominal order of the shape function set. More...
 

Static Public Attributes

static constexpr int dim = Grid::dimension
 

Member Typedef Documentation

◆ Cell

template<class Scalar_ , class GV , bool restricted>
typedef Grid::template Codim<0>::Entity Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::Cell

Definition at line 58 of file hierarchicspace.hh.

◆ Converter

template<class Scalar_ , class GV , bool restricted>
typedef ScalarConverter<Cell,Scalar> Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::Converter

A class mapping local shape function values and gradients to global shape function values and gradients. For scalar hierarchic shape functions this is easy, only the gradients are affected by the affine transformation from the reference element to an actual cell.

Definition at line 128 of file hierarchicspace.hh.

◆ Grid

template<class Scalar_ , class GV , bool restricted>
typedef GridView::Grid Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::Grid

Definition at line 56 of file hierarchicspace.hh.

◆ GridView

template<class Scalar_ , class GV , bool restricted>
typedef GV Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::GridView

Definition at line 55 of file hierarchicspace.hh.

◆ IndexSet

template<class Scalar_ , class GV , bool restricted>
typedef GridView::IndexSet Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::IndexSet

Definition at line 57 of file hierarchicspace.hh.

◆ RT

template<class Scalar_ , class GV , bool restricted>
typedef Scalar_ Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::RT

Definition at line 53 of file hierarchicspace.hh.

◆ Scalar

template<class Scalar_ , class GV , bool restricted>
typedef Scalar_ Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::Scalar

Definition at line 54 of file hierarchicspace.hh.

◆ ShapeFunctionSet

template<class Scalar_ , class GV , bool restricted>
typedef HierarchicShapeFunctionSetContainer<typenameGrid::ctype,dim,Scalar,restricted>::value_type Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::ShapeFunctionSet

Definition at line 63 of file hierarchicspace.hh.

Constructor & Destructor Documentation

◆ HierarchicMapperImplementationBase()

template<class Scalar_ , class GV , bool restricted>
Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::HierarchicMapperImplementationBase ( GridView const &  gridView_,
int  order 
)
inline
Parameters
indexSetmust contain a subset (or all) of the cells in the grid.
order.

Definition at line 69 of file hierarchicspace.hh.

Member Function Documentation

◆ emptyShapeFunctionSet()

template<class Scalar_ , class GV , bool restricted>
ShapeFunctionSet const & Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::emptyShapeFunctionSet ( ) const
inline

Definition at line 101 of file hierarchicspace.hh.

◆ gridView()

template<class Scalar_ , class GV , bool restricted>
GridView const & Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::gridView ( ) const
inline

Definition at line 108 of file hierarchicspace.hh.

◆ indexSet()

template<class Scalar_ , class GV , bool restricted>
IndexSet const & Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::indexSet ( ) const
inline

◆ inSupport()

template<class Scalar_ , class GV , bool restricted>
bool Kaskade::HierarchicMapperImplementationBase< Scalar_, 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 87 of file hierarchicspace.hh.

◆ order()

template<class Scalar_ , class GV , bool restricted>
int Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::order ( ) const
inline

Returns the nominal order of the shape function set.

Definition at line 119 of file hierarchicspace.hh.

◆ size()

template<class Scalar_ , class GV , bool restricted>
size_t Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::size ( Dune::GeometryType  gt) const
inline

Definition at line 111 of file hierarchicspace.hh.

◆ subIndex()

template<class Scalar_ , class GV , bool restricted>
IndexSet::IndexType Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::subIndex ( Cell const &  cell,
int  subentity,
int  codim 
) const
inline

Returns the index of the specified subentity.

Definition at line 95 of file hierarchicspace.hh.

◆ update()

template<class Scalar_ , class GV , bool restricted>
void Kaskade::HierarchicMapperImplementationBase< Scalar_, 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 79 of file hierarchicspace.hh.

Member Data Documentation

◆ dim

template<class Scalar_ , class GV , bool restricted>
constexpr int Kaskade::HierarchicMapperImplementationBase< Scalar_, GV, restricted >::dim = Grid::dimension
staticconstexpr

Definition at line 61 of file hierarchicspace.hh.


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