dune-pdelab  2.4.1
Public Types | Public Member Functions | List of all members
Dune::PDELab::RTLocalFiniteElementMap< GV, FE, Imp, Variants > Class Template Reference

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

Inheritance diagram for Dune::PDELab::RTLocalFiniteElementMap< GV, FE, Imp, Variants >:
Inheritance graph

Public Types

typedef LocalFiniteElementMapTraits< FE > Traits
 export type of the signature More...
 

Public Member Functions

 RTLocalFiniteElementMap (const GV &gv_)
 Use when Imp has a standard constructor. More...
 
template<class EntityType >
const Traits::FiniteElementTypefind (const EntityType &e) const
 get local basis functions for entity More...
 
std::size_t maxLocalSize () const
 compute an upper bound for the local number of DOFs. 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
 a FiniteElementMap is fixedSize iif the size of the local functions space for each GeometryType is fixed. More...
 
std::size_t size (GeometryType gt) const
 if the FiniteElementMap is fixedSize, the size methods computes the number of DOFs for given GeometryType. More...
 

Detailed Description

template<typename GV, typename FE, typename Imp, std::size_t Variants>
class Dune::PDELab::RTLocalFiniteElementMap< GV, FE, Imp, Variants >

wrap up element from local functions

Member Typedef Documentation

template<typename GV, typename FE, typename Imp, std::size_t Variants>
typedef LocalFiniteElementMapTraits<FE> Dune::PDELab::RTLocalFiniteElementMap< GV, FE, Imp, Variants >::Traits

export type of the signature

Constructor & Destructor Documentation

template<typename GV, typename FE, typename Imp, std::size_t Variants>
Dune::PDELab::RTLocalFiniteElementMap< GV, FE, Imp, Variants >::RTLocalFiniteElementMap ( const GV &  gv_)
inline

Use when Imp has a standard constructor.

Member Function Documentation

template<typename GV, typename FE, typename Imp, std::size_t Variants>
template<class EntityType >
const Traits::FiniteElementType& Dune::PDELab::RTLocalFiniteElementMap< GV, FE, Imp, Variants >::find ( const EntityType &  e) const
inline

get local basis functions for entity

bool Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< FE > , Imp >::fixedSize ( ) const
inlineinherited

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

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< FE > , Imp >::maxLocalSize ( ) const
inlineinherited

compute an upper bound for the local number of DOFs.

this upper bound is used to avoid reallocations in std::vectors used during the assembly.

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< FE > , Imp >::size ( GeometryType  gt) const
inlineinherited

if the FiniteElementMap is fixedSize, the size methods computes the number of DOFs for given GeometryType.


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