Dune Core Modules (unstable)

raviartthomas02d.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_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
6#define DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11#include "raviartthomas02d/raviartthomas02dlocalbasis.hh"
12#include "raviartthomas02d/raviartthomas02dlocalcoefficients.hh"
13#include "raviartthomas02d/raviartthomas02dlocalinterpolation.hh"
14
15namespace Dune
16{
17
26 template<class D, class R>
27 class
29 {
30 public:
32 RT02DLocalInterpolation<RT02DLocalBasis<D,R> > > Traits;
33
36 {}
37
43 RT02DLocalFiniteElement (std::bitset<3> s) :
44 basis(s),
45 interpolation(s)
46 {}
47
48 const typename Traits::LocalBasisType& localBasis () const
49 {
50 return basis;
51 }
52
53 const typename Traits::LocalCoefficientsType& localCoefficients () const
54 {
55 return coefficients;
56 }
57
58 const typename Traits::LocalInterpolationType& localInterpolation () const
59 {
60 return interpolation;
61 }
62
63 unsigned int size () const
64 {
65 return 3;
66 }
67
68 static constexpr GeometryType type ()
69 {
71 }
72
73 private:
74 RT02DLocalBasis<D,R> basis;
75 RT02DLocalCoefficients coefficients;
76 RT02DLocalInterpolation<RT02DLocalBasis<D,R> > interpolation;
77 };
78
79}
80
81#endif
Definition: raviartthomas02dlocalcoefficients.hh:25
Zero order Raviart-Thomas shape functions on triangles.
Definition: raviartthomas02d.hh:29
RT02DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas02d.hh:35
RT02DLocalFiniteElement(std::bitset< 3 > s)
Constructor with explicitly given edge orientations.
Definition: raviartthomas02d.hh:43
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:504
Dune namespace.
Definition: alignedallocator.hh:13
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75
traits helper struct
Definition: localfiniteelementtraits.hh:13
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 (Jul 15, 22:36, 2024)