dune-pdelab  2.4-dev
Public Types | Public Member Functions | List of all members
Dune::PDELab::MimeticLocalFiniteElementMap< IIS, D, R, dim > Class Template Reference

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

Inheritance diagram for Dune::PDELab::MimeticLocalFiniteElementMap< IIS, D, R, dim >:
Inheritance graph

Public Types

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

Public Member Functions

 MimeticLocalFiniteElementMap (const IIS &iis_, Dune::GeometryType::BasicType basicType)
 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...
 

Member Typedef Documentation

template<typename IIS , typename D , typename R , int dim>
typedef Dune::PDELab::LocalFiniteElementMapTraits<FE> Dune::PDELab::MimeticLocalFiniteElementMap< IIS, D, R, dim >::Traits

export type of the signature

Constructor & Destructor Documentation

template<typename IIS , typename D , typename R , int dim>
Dune::PDELab::MimeticLocalFiniteElementMap< IIS, D, R, dim >::MimeticLocalFiniteElementMap ( const IIS &  iis_,
Dune::GeometryType::BasicType  basicType 
)
inline

Use when Imp has a standard constructor.

Member Function Documentation

template<typename IIS , typename D , typename R , int dim>
template<class EntityType >
const Traits::FiniteElementType& Dune::PDELab::MimeticLocalFiniteElementMap< IIS, D, R, dim >::find ( const EntityType &  e) const
inline

get local basis functions for entity

bool Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::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< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::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< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::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: