dune-localfunctions  2.4
qk.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_LOCALFUNCTIONS_QK_LOCALFINITEELEMENT_HH
5 #define DUNE_LOCALFUNCTIONS_QK_LOCALFINITEELEMENT_HH
6 
8 #include "qk/qklocalbasis.hh"
10 
11 namespace Dune
12 {
21  template<class D, class R, int d, int k>
23 
27 
28  public:
29 
33 
37  {
38  gt.makeCube(d);
39  }
40 
43  const typename Traits::LocalBasisType& localBasis () const
44  {
45  return basis;
46  }
47 
51  {
52  return coefficients;
53  }
54 
58  {
59  return interpolation;
60  }
61 
63  unsigned int size () const
64  {
65  return basis.size();
66  }
67 
70  GeometryType type () const
71  {
72  return gt;
73  }
74 
76  {
77  return new QkLocalFiniteElement(*this);
78  }
79 
80  private:
81  LocalBasis basis;
82  LocalCoefficients coefficients;
83  LocalInterpolation interpolation;
84  GeometryType gt;
85  };
86 
87 }
88 
89 #endif
const Traits::LocalInterpolationType & localInterpolation() const
Definition: qk.hh:57
General Lagrange finite element for cubes with arbitrary dimension and polynomial order...
Definition: qk.hh:22
QkLocalFiniteElement * clone() const
Definition: qk.hh:75
Attaches a shape function to an entity.
Definition: qklocalcoefficients.hh:24
LocalFiniteElementTraits< LocalBasis, QkLocalCoefficients< k, d >, LocalInterpolation > Traits
Definition: qk.hh:32
GeometryType type() const
Definition: qk.hh:70
unsigned int size() const
Number of shape functions in this finite element.
Definition: qk.hh:63
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: qk.hh:50
traits helper struct
Definition: localfiniteelementtraits.hh:10
unsigned int size() const
number of shape functions
Definition: qklocalbasis.hh:78
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
const Traits::LocalBasisType & localBasis() const
Definition: qk.hh:43
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
Lagrange shape functions of order k on the reference cube.
Definition: qklocalbasis.hh:32
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
QkLocalFiniteElement()
Definition: qk.hh:36