Dune Core Modules (2.6.0)

raviartthomas0cube2d.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_CUBE2D_LOCALFINITEELEMENT_HH
4#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "raviartthomas0cube2d/raviartthomas0cube2dall.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 RT0Cube2DLocalBasis<D,R> basis;
66 RT0Cube2DLocalCoefficients coefficients;
67 RT0Cube2DLocalInterpolation<RT0Cube2DLocalBasis<D,R> > interpolation;
68 };
69}
70#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Lowest order Raviart-Thomas shape functions on the reference quadrilateral.
Definition: raviartthomas0cube2dall.hh:27
Layout map for RT0 elements on quadrilaterals.
Definition: raviartthomas0cube2dall.hh:189
Zero order Raviart-Thomas shape functions on rectangles.
Definition: raviartthomas0cube2d.hh:23
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas0cube2d.hh:54
Lowest order Raviart-Thomas shape functions on the reference quadrilateral.
Definition: raviartthomas0cube2dall.hh:137
constexpr GeometryType quadrilateral
GeometryType representing a quadrilateral (a square).
Definition: type.hh:745
Dune namespace.
Definition: alignedallocator.hh:10
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 (Oct 13, 22:30, 2024)