dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static 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
 

Public Member Functions

 MimeticLocalFiniteElementMap (const IIS &iis_, Dune::GeometryType::BasicType basicType)
 Use when Imp has a standard constructor.
 
template<class EntityType >
const Traits::FiniteElementTypefind (const EntityType &e) const
 get local basis functions for entity
 

Static Public Member Functions

static constexpr bool hasDOFs (int codim)=delete
 return if FiniteElementMap has degrees of freedom for given codimension
 
static constexpr std::size_t maxLocalSize ()=delete
 compute an upper bound for the local number of DOFs.
 

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>())
static constexpr bool fixedSize()=delete
a FiniteElementMap is fixedSize iif the size of the local functions space for each GeometryType is fi...
static constexpr std::size_t size(GeometryType gt)=delete
if the FiniteElementMap is fixedSize, the size methods computes the number of DOFs for given Geometry...
const Traits::FiniteElementType & find(const EntityType &e) const
get local basis functions for entity
Definition mimeticfem.hh:36
static constexpr int dimension
 dimension of the domain this FEM is defined on.
 
static constexpr bool fixedSize ()=delete
 a FiniteElementMap is fixedSize iif the size of the local functions space for each GeometryType is fixed.
 
static constexpr std::size_t size (GeometryType gt)=delete
 if the FiniteElementMap is fixedSize, the size methods computes the number of DOFs for given GeometryType.
 

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()

static constexpr bool Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::fixedSize ( )
staticconstexprdeleteinherited

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

◆ hasDOFs()

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

return if FiniteElementMap has degrees of freedom for given codimension

◆ maxLocalSize()

static constexpr std::size_t Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::maxLocalSize ( )
staticconstexprdeleteinherited

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()

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

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

Member Data Documentation

◆ dimension

constexpr int Dune::PDELab::LocalFiniteElementMapInterface< Dune::PDELab::LocalFiniteElementMapTraits< MimeticLocalFiniteElement< D, R, dim > > , MimeticLocalFiniteElementMap< IIS, D, R, dim > >::dimension
staticconstexprinherited

dimension of the domain this FEM is defined on.


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