Dune Core Modules (2.6.0)

qk.hh
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 
7 #include "qk/qklocalinterpolation.hh"
8 #include "qk/qklocalbasis.hh"
9 #include "qk/qklocalcoefficients.hh"
10 
11 namespace Dune
12 {
21  template<class D, class R, int d, int k>
23 
27 
28  public:
29 
33 
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  static constexpr GeometryType type ()
69  {
70  return GeometryTypes::cube(d);
71  }
72 
73  private:
74  LocalBasis basis;
75  LocalCoefficients coefficients;
76  LocalInterpolation interpolation;
77  };
78 
79 }
80 
81 #endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Lagrange shape functions of order k on the reference cube.
Definition: qklocalbasis.hh:35
unsigned int size() const
number of shape functions
Definition: qklocalbasis.hh:109
Attaches a shape function to an entity.
Definition: qklocalcoefficients.hh:24
General Lagrange finite element for cubes with arbitrary dimension and polynomial order.
Definition: qk.hh:22
LocalFiniteElementTraits< LocalBasis, QkLocalCoefficients< k, d >, LocalInterpolation > Traits
Definition: qk.hh:32
QkLocalFiniteElement()
Definition: qk.hh:36
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: qk.hh:48
unsigned int size() const
Number of shape functions in this finite element.
Definition: qk.hh:61
const Traits::LocalBasisType & localBasis() const
Definition: qk.hh:41
const Traits::LocalInterpolationType & localInterpolation() const
Definition: qk.hh:55
static constexpr GeometryType type()
Definition: qk.hh:68
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:705
Dune namespace.
Definition: alignedallocator.hh:10
traits helper struct
Definition: localfiniteelementtraits.hh:11
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 1, 22:29, 2024)