dune-localfunctions  2.5.0
hierarchicalp2withelementbubble.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_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
4 #define DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
10 
11 
12 namespace Dune
13 {
14 
17  template<class D, class R, int dim>
19  {
20 
21  static_assert(dim==2, "HierarchicalP2WithElementBubbleLocalFiniteElement only implemented for dim==2.");
22 
23  public:
29 
33  {
34  gt_.makeTriangle();
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  {
74  }
75 
76  private:
78 
79  HierarchicalSimplexP2WithElementBubbleLocalCoefficients<dim> coefficients_;
80 
82 
83  GeometryType gt_;
84  };
85 
86 }
87 
88 #endif
Definition: hierarchicalp2withelementbubble.hh:18
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
const Traits::LocalInterpolationType & localInterpolation() const
Definition: hierarchicalp2withelementbubble.hh:53
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:15
LocalFiniteElementTraits< HierarchicalSimplexP2WithElementBubbleLocalBasis< D, R, dim >, HierarchicalSimplexP2WithElementBubbleLocalCoefficients< dim >, HierarchicalSimplexP2WithElementBubbleLocalInterpolation< HierarchicalSimplexP2WithElementBubbleLocalBasis< D, R, dim > > > Traits
Definition: hierarchicalp2withelementbubble.hh:21
const Traits::LocalBasisType & localBasis() const
Definition: hierarchicalp2withelementbubble.hh:39
traits helper struct
Definition: localfiniteelementtraits.hh:10
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: hierarchicalp2withelementbubble.hh:46
HierarchicalP2WithElementBubbleLocalFiniteElement()
Definition: hierarchicalp2withelementbubble.hh:32
Definition: hierarchicalsimplexp2withelementbubble.hh:22
Definition: hierarchicalsimplexp2withelementbubble.hh:452
HierarchicalP2WithElementBubbleLocalFiniteElement * clone() const
Definition: hierarchicalp2withelementbubble.hh:71
Hierarchical p2 shape functions for the simplex.
unsigned int size() const
Number of shape functions in this finite element.
Definition: hierarchicalp2withelementbubble.hh:59
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
The local finite element needed for the Zou-Kornhuber estimator for Signorini problems.
Definition: hierarchicalsimplexp2withelementbubble.hh:410
GeometryType type() const
Definition: hierarchicalp2withelementbubble.hh:66
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14