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

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

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

Public Types

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

Public Member Functions

 BDM1Simplex2DLocalFiniteElementMap (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...
 
bool hasDOFs (int codim) const=delete
 return if FiniteElementMap has degrees of freedom for given codimension 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>())
std::size_t size (GeometryType gt) const=delete
 if the FiniteElementMap is fixedSize, the size methods computes the number of DOFs for given GeometryType. More...
 

Static Public Member Functions

static constexpr bool fixedSize ()
 
static constexpr bool hasDOFs (int codim)
 
static constexpr std::size_t size (GeometryType gt)
 
static constexpr std::size_t maxLocalSize ()
 

Static Public Attributes

static constexpr int dimension = GV::dimension
 The dimension of the finite elements returned by this map. More...
 

Detailed Description

template<typename GV, typename D, typename R>
class Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >

wrap up element from local functions

Member Typedef Documentation

◆ Traits

template<typename GV , typename D , typename R >
typedef LocalFiniteElementMapTraits<FE> Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::Traits

export type of the signature

Constructor & Destructor Documentation

◆ BDM1Simplex2DLocalFiniteElementMap()

template<typename GV , typename D , typename R >
Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::BDM1Simplex2DLocalFiniteElementMap ( const GV &  gv_)
inline

Use when Imp has a standard constructor.

Member Function Documentation

◆ find()

template<typename GV , typename D , typename R >
template<class EntityType >
const Traits::FiniteElementType& Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::find ( const EntityType &  e) const
inline

get local basis functions for entity

◆ fixedSize()

template<typename GV , typename D , typename R >
static constexpr bool Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::fixedSize ( )
inlinestaticconstexpr

◆ hasDOFs() [1/2]

template<typename GV , typename D , typename R >
static constexpr bool Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::hasDOFs ( int  codim)
inlinestaticconstexpr

◆ hasDOFs() [2/2]

bool Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< Dune::BDM1Simplex2DLocalFiniteElement< D, R > > , BDM1Simplex2DLocalFiniteElementMap< GV, D, R > >::hasDOFs ( int  codim) const
deleteinherited

return if FiniteElementMap has degrees of freedom for given codimension

◆ maxLocalSize()

template<typename GV , typename D , typename R >
static constexpr std::size_t Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::maxLocalSize ( )
inlinestaticconstexpr

◆ size() [1/2]

template<typename GV , typename D , typename R >
static constexpr std::size_t Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::size ( GeometryType  gt)
inlinestaticconstexpr

◆ size() [2/2]

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< Dune::BDM1Simplex2DLocalFiniteElement< D, R > > , BDM1Simplex2DLocalFiniteElementMap< GV, D, R > >::size ( GeometryType  gt) const
deleteinherited

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

Member Data Documentation

◆ dimension

template<typename GV , typename D , typename R >
constexpr int Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap< GV, D, R >::dimension = GV::dimension
staticconstexpr

The dimension of the finite elements returned by this map.


The documentation for this class was generated from the following file:
Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap::fixedSize
static constexpr bool fixedSize()
Definition: bdm1simplex2dfem.hh:64
Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap::size
static constexpr std::size_t size(GeometryType gt)
Definition: bdm1simplex2dfem.hh:74
Dune::PDELab::BDM1Simplex2DLocalFiniteElementMap::find
const Traits::FiniteElementType & find(const EntityType &e) const
get local basis functions for entity
Definition: bdm1simplex2dfem.hh:59