dune-localfunctions  2.4
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 
13 namespace Dune
14 {
15 
21  template<class D, class R, int dim>
23  {
24  public:
29 
33  {
34  gt.makeSimplex(dim);
35  }
36 
39  const typename Traits::LocalBasisType& localBasis () const
40  {
41  return basis;
42  }
43 
47  {
48  return coefficients;
49  }
50 
54  {
55  return interpolation;
56  }
57 
59  unsigned int size () const
60  {
61  return basis.size();
62  }
63 
66  GeometryType type () const
67  {
68  return gt;
69  }
70 
72  {
73  return new DualP1LocalFiniteElement(*this);
74  }
75 
76  private:
78  DualP1LocalCoefficients<dim> coefficients;
80  GeometryType gt;
81  };
82 
83 
84 
85 }
86 
87 #endif
Dual Lagrange shape functions on the simplex.
Definition: dualp1localbasis.hh:24
DualP1LocalFiniteElement * clone() const
Definition: dualp1.hh:71
DualP1LocalFiniteElement()
Definition: dualp1.hh:32
unsigned int size() const
Number of shape functions in this finite element.
Definition: dualp1.hh:59
The local dual p1 finite element on simplices.
Definition: dualp1.hh:22
GeometryType type() const
Definition: dualp1.hh:66
LocalFiniteElementTraits< DualP1LocalBasis< D, R, dim >, DualP1LocalCoefficients< dim >, DualP1LocalInterpolation< dim, DualP1LocalBasis< D, R, dim > > > Traits
Definition: dualp1.hh:28
const Traits::LocalBasisType & localBasis() const
Definition: dualp1.hh:39
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: dualp1.hh:46
traits helper struct
Definition: localfiniteelementtraits.hh:10
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
Local coefficients for dual simplex P1 elements.
Definition: dualp1localcoefficients.hh:20
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
const Traits::LocalInterpolationType & localInterpolation() const
Definition: dualp1.hh:53
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
Definition: dualp1localinterpolation.hh:11