Dune Core Modules (2.8.0)

raviartthomas03d.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_LOCALFUNCTIONS_RAVIARTTHOMAS_RAVIARTTHOMAS03D_HH
4#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_RAVIARTTHOMAS03D_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "raviartthomas03d/raviartthomas03dlocalbasis.hh"
10#include "raviartthomas03d/raviartthomas03dlocalcoefficients.hh"
11#include "raviartthomas03d/raviartthomas03dlocalinterpolation.hh"
12
13namespace Dune
14{
15
24 template<class D, class R>
25 class
27 {
28 public:
30 RT03DLocalInterpolation<RT03DLocalBasis<D,R> > > Traits;
31
34 {}
35
41 RT03DLocalFiniteElement (std::bitset<4> 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 4;
64 }
65
66 static constexpr GeometryType type ()
67 {
69 }
70
71 private:
72 RT03DLocalBasis<D,R> basis;
73 RT03DLocalCoefficients coefficients;
74 RT03DLocalInterpolation<RT03DLocalBasis<D,R> > interpolation;
75 };
76
77}
78
79#endif
Layout map for RT0 elements.
Definition: raviartthomas03dlocalcoefficients.hh:22
Zero order Raviart-Thomas shape functions on tetrahedra.
Definition: raviartthomas03d.hh:27
RT03DLocalFiniteElement(std::bitset< 4 > s)
Constructor with explicitly given face orientations.
Definition: raviartthomas03d.hh:41
RT03DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas03d.hh:33
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:130
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:528
Dune namespace.
Definition: alignedallocator.hh:11
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 (Nov 13, 23:29, 2024)