dune-localfunctions  2.6-git
pyramidp1.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 
4 #ifndef DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
5 #define DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
6 
7 #include <dune/geometry/type.hh>
8 
10 
14 
15 namespace Dune
16 {
17 
20  template<class D, class R>
22  {
23  public:
28 
29 
30 
34  {}
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  static constexpr GeometryType type ()
67  {
68  return GeometryTypes::pyramid;
69  }
70 
71  private:
73  PyramidP1LocalCoefficients coefficients;
75  };
76 
77 }
78 
79 #endif
Layout map for PyramidP1 elements.
Definition: pyramidp1localcoefficients.hh:20
unsigned int size() const
Number of shape functions in this finite element.
Definition: pyramidp1.hh:59
traits helper struct
Definition: localfiniteelementtraits.hh:10
const Traits::LocalBasisType & localBasis() const
Definition: pyramidp1.hh:39
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
First-order Lagrangian finite element on a prism.
Definition: pyramidp1.hh:21
Linear Lagrange shape functions on the pyramid.
Definition: pyramidp1localbasis.hh:26
PyramidP1LocalFiniteElement()
Definition: pyramidp1.hh:33
Definition: pyramidp1localinterpolation.hh:12
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pyramidp1.hh:53
static constexpr GeometryType type()
Definition: pyramidp1.hh:66
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:15
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pyramidp1.hh:46
LocalFiniteElementTraits< PyramidP1LocalBasis< D, R >, PyramidP1LocalCoefficients, PyramidP1LocalInterpolation< PyramidP1LocalBasis< D, R > > > Traits
Definition: pyramidp1.hh:27
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14