dune-localfunctions  2.3.1
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  gt.makePyramid();
36  }
37 
38 
41  const typename Traits::LocalBasisType& localBasis () const
42  {
43  return basis;
44  }
45 
49  {
50  return coefficients;
51  }
52 
56  {
57  return interpolation;
58  }
59 
62  GeometryType type () const
63  {
64  return gt;
65  }
66 
68  {
69  return new PyramidP1LocalFiniteElement(*this);
70  }
71 
72  private:
74  PyramidP1LocalCoefficients coefficients;
76  GeometryType gt;
77  };
78 
79 }
80 
81 #endif
LocalFiniteElementTraits< PyramidP1LocalBasis< D, R >, PyramidP1LocalCoefficients, PyramidP1LocalInterpolation< PyramidP1LocalBasis< D, R > > > Traits
Definition: pyramidp1.hh:27
const Traits::LocalBasisType & localBasis() const
Definition: pyramidp1.hh:41
traits helper struct
Definition: localfiniteelementtraits.hh:10
Layout map for PyramidP1 elements.
Definition: pyramidp1localcoefficients.hh:20
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pyramidp1.hh:55
PyramidP1LocalFiniteElement()
Definition: pyramidp1.hh:33
Linear Lagrange shape functions on the pyramid.
Definition: pyramidp1localbasis.hh:24
PyramidP1LocalFiniteElement * clone() const
Definition: pyramidp1.hh:67
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pyramidp1.hh:48
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
Definition: pyramidp1localinterpolation.hh:12
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
First-order Lagrangian finite element on a prism.
Definition: pyramidp1.hh:21
GeometryType type() const
Definition: pyramidp1.hh:62