Dune Core Modules (2.6.0)

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#ifndef DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
4#define DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "raviartthomas02d/raviartthomas02dlocalbasis.hh"
10#include "raviartthomas02d/raviartthomas02dlocalcoefficients.hh"
11#include "raviartthomas02d/raviartthomas02dlocalinterpolation.hh"
12
13namespace Dune
14{
15
24 template<class D, class R>
25 class
27 {
28 public:
30 RT02DLocalInterpolation<RT02DLocalBasis<D,R> > > Traits;
31
34 {}
35
41 RT02DLocalFiniteElement (std::bitset<3> s) :
42 basis(s),
43 interpolation(s)
44 {}
45
46 const typename Traits::LocalBasisType& localBasis () const
47 {
48 return basis;
49 }
50
51 const typename Traits::LocalCoefficientsType& localCoefficients () const
52 {
53 return coefficients;
54 }
55
56 const typename Traits::LocalInterpolationType& localInterpolation () const
57 {
58 return interpolation;
59 }
60
61 unsigned int size () const
62 {
63 return 3;
64 }
65
66 static constexpr GeometryType type ()
67 {
69 }
70
71 private:
72 RT02DLocalBasis<D,R> basis;
73 RT02DLocalCoefficients coefficients;
74 RT02DLocalInterpolation<RT02DLocalBasis<D,R> > interpolation;
75 };
76
77}
78
79#endif
Layout map for RT0 elements.
Definition: raviartthomas02dlocalcoefficients.hh:22
Zero order Raviart-Thomas shape functions on triangles.
Definition: raviartthomas02d.hh:27
RT02DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas02d.hh:33
RT02DLocalFiniteElement(std::bitset< 3 > s)
Constructor with explicitly given edge orientations.
Definition: raviartthomas02d.hh:41
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
constexpr GeometryType triangle
GeometryType representing a triangle.
Definition: type.hh:739
Dune namespace.
Definition: alignedallocator.hh:10
traits helper struct
Definition: localfiniteelementtraits.hh:11
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 (Dec 26, 23:30, 2024)