dune-localfunctions 3.0-git
pyramidp2.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_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
4#define DUNE_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
5
6#include <dune/geometry/type.hh>
7
12
13namespace Dune
14{
15
18 template<class D, class R>
20 {
21 public:
27
31 {
32 gt.makePyramid();
33 }
34
37 const typename Traits::LocalBasisType& localBasis () const
38 {
39 return basis;
40 }
41
45 {
46 return coefficients;
47 }
48
52 {
53 return interpolation;
54 }
55
57 unsigned int size () const
58 {
59 return basis.size();
60 }
61
64 GeometryType type () const
65 {
66 return gt;
67 }
68
70 {
71 return new PyramidP2LocalFiniteElement(*this);
72 }
73
74 private:
76 PyramidP2LocalCoefficients coefficients;
78 GeometryType gt;
79 };
80
81}
82
83#endif
Definition brezzidouglasmarini1cube2d.hh:14
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
Definition pyramidp2.hh:20
const Traits::LocalInterpolationType & localInterpolation() const
Definition pyramidp2.hh:51
PyramidP2LocalFiniteElement * clone() const
Definition pyramidp2.hh:69
unsigned int size() const
Number of shape functions in this finite element.
Definition pyramidp2.hh:57
GeometryType type() const
Definition pyramidp2.hh:64
const Traits::LocalBasisType & localBasis() const
Definition pyramidp2.hh:37
const Traits::LocalCoefficientsType & localCoefficients() const
Definition pyramidp2.hh:44
PyramidP2LocalFiniteElement()
Definition pyramidp2.hh:30
LocalFiniteElementTraits< PyramidP2LocalBasis< D, R >, PyramidP2LocalCoefficients, PyramidP2LocalInterpolation< PyramidP2LocalBasis< D, R > > > Traits
Definition pyramidp2.hh:26
Quadratic Lagrange shape functions on the pyramid.
Definition pyramidp2localbasis.hh:30
Layout map for PyramidP2 elements.
Definition pyramidp2localcoefficients.hh:21
Definition pyramidp2localinterpolation.hh:12