Dune Core Modules (unstable)

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// 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_LOCALFUNCTIONS_RAVIARTTHOMAS_RAVIARTTHOMAS03D_HH
6#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_RAVIARTTHOMAS03D_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11#include "raviartthomas03d/raviartthomas03dlocalbasis.hh"
12#include "raviartthomas03d/raviartthomas03dlocalcoefficients.hh"
13#include "raviartthomas03d/raviartthomas03dlocalinterpolation.hh"
14
15namespace Dune
16{
17
26 template<class D, class R>
27 class
29 {
30 public:
32 RT03DLocalInterpolation<RT03DLocalBasis<D,R> > > Traits;
33
36 {}
37
43 RT03DLocalFiniteElement (std::bitset<4> 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 4;
66 }
67
68 static constexpr GeometryType type ()
69 {
71 }
72
73 private:
74 RT03DLocalBasis<D,R> basis;
75 RT03DLocalCoefficients coefficients;
76 RT03DLocalInterpolation<RT03DLocalBasis<D,R> > interpolation;
77 };
78
79}
80
81#endif
Definition: raviartthomas03dlocalcoefficients.hh:25
Zero order Raviart-Thomas shape functions on tetrahedra.
Definition: raviartthomas03d.hh:29
RT03DLocalFiniteElement(std::bitset< 4 > s)
Constructor with explicitly given face orientations.
Definition: raviartthomas03d.hh:43
RT03DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas03d.hh:35
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:516
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 (Dec 21, 23:30, 2024)