Dune Core Modules (2.8.0)

raviartthomas0cube3d.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_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
4#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "raviartthomas0cube3d/raviartthomas0cube3dall.hh"
10
11namespace Dune
12{
21 template<class D, class R>
23 {
24 public:
29
31 {}
32
34 basis(s),
35 interpolation(s)
36 {}
37
38 const typename Traits::LocalBasisType& localBasis () const
39 {
40 return basis;
41 }
42
43 const typename Traits::LocalCoefficientsType& localCoefficients () const
44 {
45 return coefficients;
46 }
47
48 const typename Traits::LocalInterpolationType& localInterpolation () const
49 {
50 return interpolation;
51 }
52
54 unsigned int size () const
55 {
56 return basis.size();
57 }
58
59 static constexpr GeometryType type ()
60 {
62 }
63
64 private:
65 RT0Cube3DLocalBasis<D,R> basis;
66 RT0Cube3DLocalCoefficients coefficients;
67 RT0Cube3DLocalInterpolation<RT0Cube3DLocalBasis<D,R> > interpolation;
68 };
69}
70#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:123
Lowest order Raviart-Thomas shape functions on the reference hexahedron.
Definition: raviartthomas0cube3dall.hh:28
Layout map for RT0 elements on quadrilaterals.
Definition: raviartthomas0cube3dall.hh:213
Zero order Raviart-Thomas shape functions on cubes.
Definition: raviartthomas0cube3d.hh:23
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas0cube3d.hh:54
Lowest order Raviart-Thomas shape functions on the reference hexahedron.
Definition: raviartthomas0cube3dall.hh:155
constexpr GeometryType hexahedron
GeometryType representing a hexahedron.
Definition: type.hh:546
Dune namespace.
Definition: alignedallocator.hh:11
traits helper struct
Definition: localfiniteelementtraits.hh:11
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
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)