Dune Core Modules (2.8.0)

hierarchicalp2withelementbubble.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_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
4#define DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
10
11
12namespace Dune
13{
14
17 template<class D, class R, int dim>
19 {
20
21 static_assert(dim==2, "HierarchicalP2WithElementBubbleLocalFiniteElement only implemented for dim==2.");
22
23 public:
28 HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim> > > Traits;
29
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 static constexpr GeometryType type ()
65 {
67 }
68
69 private:
70 HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim> basis_;
71
73
74 HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim> > interpolation_;
75 };
76
77}
78
79#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:123
Definition: hierarchicalp2withelementbubble.hh:19
LocalFiniteElementTraits< HierarchicalSimplexP2WithElementBubbleLocalBasis< D, R, dim >, HierarchicalSimplexP2WithElementBubbleLocalCoefficients< dim >, HierarchicalSimplexP2WithElementBubbleLocalInterpolation< HierarchicalSimplexP2WithElementBubbleLocalBasis< D, R, dim > > > Traits
Definition: hierarchicalp2withelementbubble.hh:28
unsigned int size() const
Number of shape functions in this finite element.
Definition: hierarchicalp2withelementbubble.hh:57
const Traits::LocalBasisType & localBasis() const
Definition: hierarchicalp2withelementbubble.hh:37
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: hierarchicalp2withelementbubble.hh:44
const Traits::LocalInterpolationType & localInterpolation() const
Definition: hierarchicalp2withelementbubble.hh:51
static constexpr GeometryType type()
Definition: hierarchicalp2withelementbubble.hh:64
HierarchicalP2WithElementBubbleLocalFiniteElement()
Definition: hierarchicalp2withelementbubble.hh:32
The local finite element needed for the Zou-Kornhuber estimator for Signorini problems.
Definition: hierarchicalsimplexp2withelementbubble.hh:412
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:516
Hierarchical 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 (Nov 12, 23:30, 2024)