Debian Codegraph @

dune/localfunctions/hierarchical/hierarchicalprismp2.hh

raw
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 // SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5 #ifndef DUNE_HIERARCHICAL_PRISM_P2_LOCALFINITEELEMENT_HH
6 #define DUNE_HIERARCHICAL_PRISM_P2_LOCALFINITEELEMENT_HH
7
8 #include <dune/geometry/type.hh>
9
10 #include <dune/localfunctions/common/localfiniteelementtraits.hh>
11 #include <dune/localfunctions/lagrange/lagrangeprism.hh>
12
13 #include "hierarchicalprismp2/hierarchicalprismp2localbasis.hh"
14 #include "hierarchicalprismp2/hierarchicalprismp2localinterpolation.hh"
15
16
17 namespace Dune
18 {
19
20 /** \todo Please doc me !
21 */
22 template<class D, class R>
23 class HierarchicalPrismP2LocalFiniteElement
24 {
25
26
27 public:
28 /** \todo Please doc me !
29 */
30 typedef LocalFiniteElementTraits<HierarchicalPrismP2LocalBasis<D,R>,
31 Impl::LagrangePrismLocalCoefficients<2>,
32 HierarchicalPrismP2LocalInterpolation<HierarchicalPrismP2LocalBasis<D,R> > > Traits;
33
34 /** \todo Please doc me !
35 */
36 HierarchicalPrismP2LocalFiniteElement ()
37 {}
38
39 /** \todo Please doc me !
40 */
41 const typename Traits::LocalBasisType& localBasis () const
42 {
43 return basis;
44 }
45
46 /** \todo Please doc me !
47 */
48 const typename Traits::LocalCoefficientsType& localCoefficients () const
49 {
50 return coefficients;
51 }
52
53 /** \todo Please doc me !
54 */
55 const typename Traits::LocalInterpolationType& localInterpolation () const
56 {
57 return interpolation;
58 }
59
60 /** \brief Number of shape functions in this finite element */
61 unsigned int size () const
62 {
63 return basis.size();
64 }
65
66 /** \todo Please doc me !
67 */
68 static constexpr GeometryType type ()
69 {
70 return GeometryTypes::prism;
71 }
72
73 private:
74 HierarchicalPrismP2LocalBasis<D,R> basis;
75
76 /** \todo Stupid, Pk local coefficients can't be parametrized */
77 Impl::LagrangePrismLocalCoefficients<2> coefficients;
78
79 HierarchicalPrismP2LocalInterpolation<HierarchicalPrismP2LocalBasis<D,R> > interpolation;
80 };
81
82 }
83
84 #endif