dune-localfunctions 3.0-git
pyramidp1.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_PYRAMID_P1_LOCALFINITEELEMENT_HH
5#define DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
6
7#include <dune/geometry/type.hh>
8
10
14
15namespace Dune
16{
17
20 template<class D, class R>
22 {
23 public:
28
29
30
34 {
35 gt.makePyramid();
36 }
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 GeometryType type () const
69 {
70 return gt;
71 }
72
74 {
75 return new PyramidP1LocalFiniteElement(*this);
76 }
77
78 private:
80 PyramidP1LocalCoefficients coefficients;
82 GeometryType gt;
83 };
84
85}
86
87#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
First-order Lagrangian finite element on a prism.
Definition pyramidp1.hh:22
LocalFiniteElementTraits< PyramidP1LocalBasis< D, R >, PyramidP1LocalCoefficients, PyramidP1LocalInterpolation< PyramidP1LocalBasis< D, R > > > Traits
Definition pyramidp1.hh:27
unsigned int size() const
Number of shape functions in this finite element.
Definition pyramidp1.hh:61
const Traits::LocalBasisType & localBasis() const
Definition pyramidp1.hh:41
PyramidP1LocalFiniteElement * clone() const
Definition pyramidp1.hh:73
GeometryType type() const
Definition pyramidp1.hh:68
const Traits::LocalInterpolationType & localInterpolation() const
Definition pyramidp1.hh:55
PyramidP1LocalFiniteElement()
Definition pyramidp1.hh:33
const Traits::LocalCoefficientsType & localCoefficients() const
Definition pyramidp1.hh:48
Linear Lagrange shape functions on the pyramid.
Definition pyramidp1localbasis.hh:27
Layout map for PyramidP1 elements.
Definition pyramidp1localcoefficients.hh:21
Definition pyramidp1localinterpolation.hh:14