Dune Core Modules (2.6.0)

pyramidp2.hh
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_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
4 #define DUNE_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
8 #include <dune/localfunctions/common/localfiniteelementtraits.hh>
9 #include "pyramidp2/pyramidp2localbasis.hh"
10 #include "pyramidp2/pyramidp2localcoefficients.hh"
11 #include "pyramidp2/pyramidp2localinterpolation.hh"
12 
13 namespace Dune
14 {
15 
18  template<class D, class R>
20  {
21  public:
26  PyramidP2LocalInterpolation<PyramidP2LocalBasis<D,R> > > Traits;
27 
31  {}
32 
35  const typename Traits::LocalBasisType& localBasis () const
36  {
37  return basis;
38  }
39 
43  {
44  return coefficients;
45  }
46 
50  {
51  return interpolation;
52  }
53 
55  unsigned int size () const
56  {
57  return basis.size();
58  }
59 
62  static constexpr GeometryType type ()
63  {
65  }
66 
67  private:
69  PyramidP2LocalCoefficients coefficients;
70  PyramidP2LocalInterpolation<PyramidP2LocalBasis<D,R> > interpolation;
71  };
72 
73 }
74 
75 #endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Quadratic Lagrange shape functions on the pyramid.
Definition: pyramidp2localbasis.hh:30
Layout map for PyramidP2 elements.
Definition: pyramidp2localcoefficients.hh:21
Definition: pyramidp2.hh:20
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pyramidp2.hh:49
unsigned int size() const
Number of shape functions in this finite element.
Definition: pyramidp2.hh:55
const Traits::LocalBasisType & localBasis() const
Definition: pyramidp2.hh:35
static constexpr GeometryType type()
Definition: pyramidp2.hh:62
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pyramidp2.hh:42
PyramidP2LocalFiniteElement()
Definition: pyramidp2.hh:30
LocalFiniteElementTraits< PyramidP2LocalBasis< D, R >, PyramidP2LocalCoefficients, PyramidP2LocalInterpolation< PyramidP2LocalBasis< D, R > > > Traits
Definition: pyramidp2.hh:26
constexpr GeometryType pyramid
GeometryType representing a 3D pyramid.
Definition: type.hh:757
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
A unique label for each type of element that can occur in a grid.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 5, 22:29, 2024)