Dune Core Modules (2.9.1)

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// SPDX-FileCopyrightInfo: Copyright (C) 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_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
6#define DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
12
13
14namespace Dune
15{
16
19 template<class D, class R, int dim>
21 {
22
23 static_assert(dim==2, "HierarchicalP2WithElementBubbleLocalFiniteElement only implemented for dim==2.");
24
25 public:
30 HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim> > > Traits;
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 HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim> basis_;
73
75
76 HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim> > interpolation_;
77 };
78
79}
80
81#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:126
Definition: hierarchicalp2withelementbubble.hh:21
LocalFiniteElementTraits< HierarchicalSimplexP2WithElementBubbleLocalBasis< D, R, dim >, HierarchicalSimplexP2WithElementBubbleLocalCoefficients< dim >, HierarchicalSimplexP2WithElementBubbleLocalInterpolation< HierarchicalSimplexP2WithElementBubbleLocalBasis< D, R, dim > > > Traits
Definition: hierarchicalp2withelementbubble.hh:30
unsigned int size() const
Number of shape functions in this finite element.
Definition: hierarchicalp2withelementbubble.hh:59
const Traits::LocalBasisType & localBasis() const
Definition: hierarchicalp2withelementbubble.hh:39
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: hierarchicalp2withelementbubble.hh:46
const Traits::LocalInterpolationType & localInterpolation() const
Definition: hierarchicalp2withelementbubble.hh:53
static constexpr GeometryType type()
Definition: hierarchicalp2withelementbubble.hh:66
HierarchicalP2WithElementBubbleLocalFiniteElement()
Definition: hierarchicalp2withelementbubble.hh:34
The local finite element needed for the Zou-Kornhuber estimator for Signorini problems.
Definition: hierarchicalsimplexp2withelementbubble.hh:414
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:519
Hierarchical 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)