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

#include <lagrangespace.hh>

Detailed Description

template<class ScalarType, class GV, class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
class Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >

Definition at line 381 of file lagrangespace.hh.

Inheritance diagram for Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >:
Kaskade::LagrangeMapperImplementation< ScalarType, GV, std::is_same< ScalarSpaceDetail::AllShapeFunctions, ScalarSpaceDetail::RestrictToBoundary >::value > Kaskade::ScalarSpaceDetail::AllShapeFunctions

Public Types

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

Public Member Functions

 ContinuousLagrangeMapperImplementation (GV const &gridView, int order, ShapeFunctionFilter shapeFunctionFilter=ShapeFunctionFilter())
 
int dofOnEntity (Dune::GeometryType gt) const
 Returns the number of degrees of freedom (global ansatz functions) uniquely associated to the given subentity type. More...
 
template<class ShapeFunction , class Data >
void entityIndex (Cell const &cell, ShapeFunction const &sf, int n, Dune::GeometryType &gt, int &subentity, int &codim, int &indexInSubentity, Data &data) const
 Returns the geometry type, subentity number in cell and subentity codimension for the subentity to which the dof is associated. More...
 
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
 
ShapeFunctionSet const & shapeFunctions (Cell const &cell) const
 
ShapeFunctionSet const & lowerShapeFunctions (Cell const &cell) const
 
ShapeFunctionSet const & emptyShapeFunctionSet () const
 
int order () const
 
template<class Data , class GridView , class Cell >
void treatBoundary (Data &, GridView const &, Cell const &, int, int) const
 

Static Public Attributes

static int const dim
 

Member Typedef Documentation

◆ Cell

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
using Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::Cell = typename Base::Cell

Definition at line 391 of file lagrangespace.hh.

◆ Converter

typedef ScalarConverter<Cell,Scalar> Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::Converter
inherited

Definition at line 163 of file lagrangespace.hh.

◆ ctype

using Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::ctype = typename Grid::ctype
inherited

Definition at line 60 of file lagrangespace.hh.

◆ Grid

typedef GridView::Grid Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::Grid
inherited

Definition at line 56 of file lagrangespace.hh.

◆ GridView

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
typedef GV Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::GridView

Definition at line 390 of file lagrangespace.hh.

◆ IndexSet

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
typedef GV::IndexSet Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::IndexSet

Definition at line 388 of file lagrangespace.hh.

◆ Scalar

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
typedef ScalarType Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::Scalar

Definition at line 389 of file lagrangespace.hh.

◆ ShapeFunctionSet

using Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::ShapeFunctionSet = typename LagrangeShapeFunctionSetContainer<ctype,dim,Scalar,restricted>::value_type
inherited

Definition at line 64 of file lagrangespace.hh.

Constructor & Destructor Documentation

◆ ContinuousLagrangeMapperImplementation()

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::ContinuousLagrangeMapperImplementation ( GV const &  gridView,
int  order,
ShapeFunctionFilter  shapeFunctionFilter = ShapeFunctionFilter() 
)
inline

Definition at line 393 of file lagrangespace.hh.

Member Function Documentation

◆ dofOnEntity()

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
int Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::dofOnEntity ( Dune::GeometryType  gt) const
inline

Returns the number of degrees of freedom (global ansatz functions) uniquely associated to the given subentity type.

Definition at line 403 of file lagrangespace.hh.

◆ emptyShapeFunctionSet()

ShapeFunctionSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::emptyShapeFunctionSet ( ) const
inlineinherited

Definition at line 154 of file lagrangespace.hh.

◆ entityIndex()

template<class ScalarType , class GV , class ShapeFunctionFilter = ScalarSpaceDetail::AllShapeFunctions>
template<class ShapeFunction , class Data >
void Kaskade::ContinuousLagrangeMapperImplementation< ScalarType, GV, ShapeFunctionFilter >::entityIndex ( Cell const &  cell,
ShapeFunction const &  sf,
int  n,
Dune::GeometryType &  gt,
int &  subentity,
int &  codim,
int &  indexInSubentity,
Data &  data 
) const
inline

Returns the geometry type, subentity number in cell and subentity codimension for the subentity to which the dof is associated.

Here we have a continuous discretization, where all dofs are associated to the entities on which the shape function node is located.

Parameters
[out]gtthe geometry type of the subentity on which the shape function lies
[out]subentitythe number of the subentity on which the shape function lies
[out]codimthe codimension of the subentity on which the shape function lies
[out]indexInSubentity
[out]data

Definition at line 437 of file lagrangespace.hh.

◆ gridView()

GridView const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::gridView ( ) const
inlineinherited

Definition at line 111 of file lagrangespace.hh.

◆ indexSet()

IndexSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::indexSet ( ) const
inlineinherited

The index set obtained from gridView().

Definition at line 79 of file lagrangespace.hh.

◆ inSupport()

bool Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::inSupport ( Cell const &  cell) const
inlineinherited

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

ShapeFunctionSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::lowerShapeFunctions ( Cell const &  cell) const
inlineinherited

Definition at line 149 of file lagrangespace.hh.

◆ order()

int Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::order ( ) const
inlineinherited

Definition at line 160 of file lagrangespace.hh.

◆ shapeFunctions()

ShapeFunctionSet const & Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::shapeFunctions ( Cell const &  cell) const
inlineinherited

Definition at line 136 of file lagrangespace.hh.

◆ size()

size_t Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::size ( Dune::GeometryType  gt) const
inlineinherited

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

IndexSet::IndexType Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::subIndex ( Cell const &  cell,
int  subentity,
int  codim 
) const
inlineinherited

Returns the index of the specified subentity.

Definition at line 105 of file lagrangespace.hh.

◆ treatBoundary()

template<class Data , class GridView , class Cell >
void Kaskade::ScalarSpaceDetail::AllShapeFunctions::treatBoundary ( Data &  ,
GridView const &  ,
Cell const &  ,
int  ,
int   
) const
inlineinherited

◆ update()

void Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::update ( )
inlineinherited

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

int const Kaskade::LagrangeMapperImplementation< ScalarType, GV, restricted >::dim
staticinherited

Definition at line 62 of file lagrangespace.hh.


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