dune-pdelab  2.5-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...
 
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...
 
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...
 

Member Typedef Documentation

◆ Traits

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

◆ MimeticLocalFiniteElementMap()

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

◆ find()

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

◆ fixedSize()

bool Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::fixedSize
deleteinherited

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

◆ hasDOFs()

bool Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::hasDOFs ( int  codim) const
deleteinherited

return if FiniteElementMap has degrees of freedom for given codimension

◆ maxLocalSize()

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::maxLocalSize
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()

std::size_t Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::size ( GeometryType  gt) const
deleteinherited

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:
Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > >, MimeticLocalFiniteElementMap< IIS, D, R, dim > >::fixedSize
bool fixedSize() const=delete
a FiniteElementMap is fixedSize iif the size of the local functions space for each GeometryType is fi...
Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > >, MimeticLocalFiniteElementMap< IIS, D, R, dim > >::size
std::size_t size(GeometryType gt) const=delete
if the FiniteElementMap is fixedSize, the size methods computes the number of DOFs for given Geometry...
Dune::PDELab::MimeticLocalFiniteElementMap::find
const Traits::FiniteElementType & find(const EntityType &e) const
get local basis functions for entity
Definition: mimeticfem.hh:36