dune-localfunctions 3.0-git
dualp1.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_DUAL_P1LOCALFINITEELEMENT_HH
4#define DUNE_DUAL_P1LOCALFINITEELEMENT_HH
5
6#include <dune/geometry/type.hh>
7
12
13namespace Dune
14{
15
31 template<class D, class R, int dim, bool faceDual=false>
33 {
34 public:
39
43 {
44 gt.makeSimplex(dim);
45 }
46
49 const typename Traits::LocalBasisType& localBasis () const
50 {
51 return basis;
52 }
53
57 {
58 return coefficients;
59 }
60
64 {
65 return interpolation;
66 }
67
69 unsigned int size () const
70 {
71 return basis.size();
72 }
73
76 GeometryType type () const
77 {
78 return gt;
79 }
80
82 {
83 return new DualP1LocalFiniteElement(*this);
84 }
85
86 private:
90 GeometryType gt;
91 };
92
93
94
95}
96
97#endif
Definition brezzidouglasmarini1cube2d.hh:14
traits helper struct
Definition localfiniteelementtraits.hh:11
LB LocalBasisType
Definition localfiniteelementtraits.hh:14
LC LocalCoefficientsType
Definition localfiniteelementtraits.hh:18
LI LocalInterpolationType
Definition localfiniteelementtraits.hh:22
The local dual p1 finite element on simplices.
Definition dualp1.hh:33
DualP1LocalFiniteElement()
Definition dualp1.hh:42
unsigned int size() const
Number of shape functions in this finite element.
Definition dualp1.hh:69
LocalFiniteElementTraits< DualP1LocalBasis< D, R, dim, faceDual >, DualP1LocalCoefficients< dim >, DualP1LocalInterpolation< dim, DualP1LocalBasis< D, R, dim, faceDual > > > Traits
Definition dualp1.hh:38
const Traits::LocalInterpolationType & localInterpolation() const
Definition dualp1.hh:63
GeometryType type() const
Definition dualp1.hh:76
const Traits::LocalBasisType & localBasis() const
Definition dualp1.hh:49
const Traits::LocalCoefficientsType & localCoefficients() const
Definition dualp1.hh:56
DualP1LocalFiniteElement * clone() const
Definition dualp1.hh:81
Dual Lagrange shape functions on the simplex.
Definition dualp1localbasis.hh:32
Local coefficients for dual simplex P1 elements.
Definition dualp1localcoefficients.hh:21
Definition dualp1localinterpolation.hh:12