dune-localfunctions  2.3.0
pk3d.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_Pk3DLOCALFINITEELEMENT_HH
4 #define DUNE_Pk3DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 #include "pk3d/pk3dlocalbasis.hh"
12 
13 namespace Dune
14 {
15 
18  template<class D, class R, unsigned int k>
20  {
21  public:
27 
31  {
32  gt.makeTetrahedron();
33  }
34 
41  Pk3DLocalFiniteElement (const unsigned int vertexmap[4]) : coefficients(vertexmap)
42  {
43  gt.makeTetrahedron();
44  }
45 
48  const typename Traits::LocalBasisType& localBasis () const
49  {
50  return basis;
51  }
52 
56  {
57  return coefficients;
58  }
59 
63  {
64  return interpolation;
65  }
66 
69  GeometryType type () const
70  {
71  return gt;
72  }
73 
75  {
76  return new Pk3DLocalFiniteElement(*this);
77  }
78 
79  private:
81  Pk3DLocalCoefficients<k> coefficients;
83  GeometryType gt;
84  };
85 
86 }
87 
88 #endif
Pk3DLocalFiniteElement(const unsigned int vertexmap[4])
Definition: pk3d.hh:41
traits helper struct
Definition: localfiniteelementtraits.hh:10
Lagrange shape functions of arbitrary order on the reference tetrahedron.
Definition: pk3dlocalbasis.hh:25
const Traits::LocalBasisType & localBasis() const
Definition: pk3d.hh:48
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pk3d.hh:62
Definition: pk3d.hh:19
GeometryType type() const
Definition: pk3d.hh:69
LocalFiniteElementTraits< Pk3DLocalBasis< D, R, k >, Pk3DLocalCoefficients< k >, Pk3DLocalInterpolation< Pk3DLocalBasis< D, R, k > > > Traits
Definition: pk3d.hh:26
Pk3DLocalFiniteElement * clone() const
Definition: pk3d.hh:74
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
Please doc me!
Definition: pk3dlocalcoefficients.hh:22
Pk3DLocalFiniteElement()
Definition: pk3d.hh:30
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pk3d.hh:55
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
Definition: pk3dlocalinterpolation.hh:11