Dune Core Modules (unstable)

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// 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
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11#include <dune/localfunctions/lagrange/lagrangeprism.hh>
12
14#include "hierarchicalprismp2/hierarchicalprismp2localinterpolation.hh"
15
16
17namespace Dune
18{
19
22 template<class D, class R>
24 {
25
26
27 public:
31 Impl::LagrangePrismLocalCoefficients<2>,
33
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 static constexpr GeometryType type ()
69 {
71 }
72
73 private:
74 HierarchicalPrismP2LocalBasis<D,R> basis;
75
77 Impl::LagrangePrismLocalCoefficients<2> coefficients;
78
80 };
81
82}
83
84#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Definition: hierarchicalprismp2.hh:24
static constexpr GeometryType type()
Definition: hierarchicalprismp2.hh:68
HierarchicalPrismP2LocalFiniteElement()
Definition: hierarchicalprismp2.hh:36
const Traits::LocalInterpolationType & localInterpolation() const
Definition: hierarchicalprismp2.hh:55
LocalFiniteElementTraits< HierarchicalPrismP2LocalBasis< D, R >, Impl::LagrangePrismLocalCoefficients< 2 >, HierarchicalPrismP2LocalInterpolation< HierarchicalPrismP2LocalBasis< D, R > > > Traits
Definition: hierarchicalprismp2.hh:32
const Traits::LocalBasisType & localBasis() const
Definition: hierarchicalprismp2.hh:41
unsigned int size() const
Number of shape functions in this finite element.
Definition: hierarchicalprismp2.hh:61
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: hierarchicalprismp2.hh:48
Definition: hierarchicalprismp2localinterpolation.hh:17
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:528
Hierarchical prism p2 shape functions for the simplex.
Dune namespace.
Definition: alignedallocator.hh:13
traits helper struct
Definition: localfiniteelementtraits.hh:13
LB LocalBasisType
Definition: localfiniteelementtraits.hh:16
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:20
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:24
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 (Nov 21, 23:30, 2024)