DUNE PDELab (2.8)

hierarchicalprismp2.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_HIERARCHICAL_PRISM_P2_LOCALFINITEELEMENT_HH
4#define DUNE_HIERARCHICAL_PRISM_P2_LOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include <dune/localfunctions/lagrange/lagrangeprism.hh>
10
12#include "hierarchicalprismp2/hierarchicalprismp2localinterpolation.hh"
13
14
15namespace Dune
16{
17
20 template<class D, class R>
22 {
23
24
25 public:
29 Impl::LagrangePrismLocalCoefficients<2>,
31
35 {}
36
39 const typename Traits::LocalBasisType& localBasis () const
40 {
41 return basis;
42 }
43
47 {
48 return coefficients;
49 }
50
54 {
55 return interpolation;
56 }
57
59 unsigned int size () const
60 {
61 return basis.size();
62 }
63
66 static constexpr GeometryType type ()
67 {
69 }
70
71 private:
72 HierarchicalPrismP2LocalBasis<D,R> basis;
73
75 Impl::LagrangePrismLocalCoefficients<2> coefficients;
76
78 };
79
80}
81
82#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:123
Definition: hierarchicalprismp2.hh:22
static constexpr GeometryType type()
Definition: hierarchicalprismp2.hh:66
HierarchicalPrismP2LocalFiniteElement()
Definition: hierarchicalprismp2.hh:34
const Traits::LocalInterpolationType & localInterpolation() const
Definition: hierarchicalprismp2.hh:53
LocalFiniteElementTraits< HierarchicalPrismP2LocalBasis< D, R >, Impl::LagrangePrismLocalCoefficients< 2 >, HierarchicalPrismP2LocalInterpolation< HierarchicalPrismP2LocalBasis< D, R > > > Traits
Definition: hierarchicalprismp2.hh:30
const Traits::LocalBasisType & localBasis() const
Definition: hierarchicalprismp2.hh:39
unsigned int size() const
Number of shape functions in this finite element.
Definition: hierarchicalprismp2.hh:59
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: hierarchicalprismp2.hh:46
Definition: hierarchicalprismp2localinterpolation.hh:16
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:540
Hierarchical prism p2 shape functions for the simplex.
Dune namespace.
Definition: alignedallocator.hh:11
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.111.3 (Dec 21, 23:30, 2024)