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

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

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

Public Types

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

Public Member Functions

 RT0Cube3DLocalFiniteElementMap (const GV &gv)
 Use when Imp has a standard constructor. More...
 
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...
 
std::size_t maxLocalSize () const=delete
 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=delete
 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=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
 The dimension of the finite elements returned by this map. More...
 

Detailed Description

template<typename GV, typename D, typename R>
class Dune::PDELab::RT0Cube3DLocalFiniteElementMap< 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::RT0Cube3DLocalFiniteElementMap< GV, D, R >::Traits

export type of the signature

Constructor & Destructor Documentation

◆ RT0Cube3DLocalFiniteElementMap()

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

Use when Imp has a standard constructor.

Member Function Documentation

◆ find()

const Traits::FiniteElementType& Dune::PDELab::RTLocalFiniteElementMap< GV, Dune::RT0Cube3DLocalFiniteElement< D, R > , RT0Cube3DLocalFiniteElementMap< GV, D, R > , Variants >::find ( const EntityType &  e) const
inlineinherited

get local basis functions for entity

◆ fixedSize() [1/2]

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

◆ fixedSize() [2/2]

bool Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< Dune::RT0Cube3DLocalFiniteElement< D, R > > , RT0Cube3DLocalFiniteElementMap< GV, D, R > >::fixedSize ( ) const
deleteinherited

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

◆ hasDOFs() [1/2]

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

◆ hasDOFs() [2/2]

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

return if FiniteElementMap has degrees of freedom for given codimension

◆ maxLocalSize() [1/2]

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

◆ maxLocalSize() [2/2]

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< Dune::RT0Cube3DLocalFiniteElement< D, R > > , RT0Cube3DLocalFiniteElementMap< GV, D, R > >::maxLocalSize ( ) const
deleteinherited

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.

◆ size() [1/2]

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

◆ size() [2/2]

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< LocalFiniteElementMapTraits< Dune::RT0Cube3DLocalFiniteElement< D, R > > , RT0Cube3DLocalFiniteElementMap< 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

constexpr int Dune::PDELab::RTLocalFiniteElementMap< GV, Dune::RT0Cube3DLocalFiniteElement< D, R > , RT0Cube3DLocalFiniteElementMap< GV, D, R > , Variants >::dimension
staticinherited

The dimension of the finite elements returned by this map.


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