dune-pdelab  2.5-dev
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dune::PDELab::Pk1dLocalFiniteElementMap< D, R > Class Template Reference

FiniteElementMap for the Pk basis in 1d. More...

#include <dune/pdelab/finiteelementmap/pk1d.hh>

Inheritance diagram for Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >:
Inheritance graph

Public Types

typedef LocalFiniteElementMapTraits< Pk1dLocalFiniteElement< D, R > > Traits
 export type of the signature More...
 

Public Member Functions

 Pk1dLocalFiniteElementMap (std::size_t k)
 
bool hasDOFs (int codim) const
 
std::size_t size (GeometryType gt) const
 
std::size_t maxLocalSize () const
 
const Traits::FiniteElementTypefind (const EntityType &e) const
 get local basis functions for entity More...
 
Size calculation

The FiniteElementMap provides different methods to compute the size of the GridFunctionSpace (if possible) without iterating the grid. The approach is as follows (pseudo code):

computeNumberOfDofs(GridView, FEM):
if(FEM.fixedSize()):
sum(FEM.size(gt)*GridView.size(gt) for gt in GeometryTypes)
else
sum(FEM.find(E).basis().size() for E in GridView.entities<0>())
bool fixedSize () const=delete
 a FiniteElementMap is fixedSize iif the size of the local functions space for each GeometryType is fixed. More...
 

Static Public Member Functions

static constexpr bool fixedSize ()
 

Detailed Description

template<class D, class R>
class Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >

FiniteElementMap for the Pk basis in 1d.

Note
k is a runtime variable.
Template Parameters
DType to represent domain.
RType to represent range.

Member Typedef Documentation

◆ Traits

export type of the signature

Constructor & Destructor Documentation

◆ Pk1dLocalFiniteElementMap()

template<class D , class R >
Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >::Pk1dLocalFiniteElementMap ( std::size_t  k)
inline

Member Function Documentation

◆ find()

const Traits::FiniteElementType& Dune::PDELab::SimpleLocalFiniteElementMap< Pk1dLocalFiniteElement< D, R > , dim_ >::find ( const EntityType &  e) const
inlineinherited

get local basis functions for entity

◆ fixedSize() [1/2]

template<class D , class R >
static constexpr bool Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >::fixedSize ( )
inlinestatic

◆ fixedSize() [2/2]

a FiniteElementMap is fixedSize iif the size of the local functions space for each GeometryType is fixed.

◆ hasDOFs()

template<class D , class R >
bool Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >::hasDOFs ( int  codim) const
inline

◆ maxLocalSize()

template<class D , class R >
std::size_t Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >::maxLocalSize ( ) const
inline

◆ size()

template<class D , class R >
std::size_t Dune::PDELab::Pk1dLocalFiniteElementMap< D, R >::size ( GeometryType  gt) const
inline

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