dune-localfunctions  2.4.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 
61  unsigned int size () const
62  {
63  return basis.size();
64  }
65 
68  GeometryType type () const
69  {
70  return gt;
71  }
72 
74  {
75  return new PyramidP1LocalFiniteElement(*this);
76  }
77 
78  private:
80  PyramidP1LocalCoefficients coefficients;
82  GeometryType gt;
83  };
84 
85 }
86 
87 #endif
GeometryType type() const
Definition: pyramidp1.hh:68
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pyramidp1.hh:55
traits helper struct
Definition: localfiniteelementtraits.hh:10
PyramidP1LocalFiniteElement()
Definition: pyramidp1.hh:33
PyramidP1LocalFiniteElement * clone() const
Definition: pyramidp1.hh:73
First-order Lagrangian finite element on a prism.
Definition: pyramidp1.hh:21
unsigned int size() const
Number of shape functions in this finite element.
Definition: pyramidp1.hh:61
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pyramidp1.hh:48
Layout map for PyramidP1 elements.
Definition: pyramidp1localcoefficients.hh:20
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
Linear Lagrange shape functions on the pyramid.
Definition: pyramidp1localbasis.hh:24
LocalFiniteElementTraits< PyramidP1LocalBasis< D, R >, PyramidP1LocalCoefficients, PyramidP1LocalInterpolation< PyramidP1LocalBasis< D, R > > > Traits
Definition: pyramidp1.hh:27
const Traits::LocalBasisType & localBasis() const
Definition: pyramidp1.hh:41
Definition: pyramidp1localinterpolation.hh:12