Dune Core Modules (2.6.0)

raviartthomas12d.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_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
4 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
8 #include "../common/localfiniteelementtraits.hh"
9 #include "raviartthomas12d/raviartthomas12dlocalbasis.hh"
10 #include "raviartthomas12d/raviartthomas12dlocalcoefficients.hh"
11 #include "raviartthomas12d/raviartthomas12dlocalinterpolation.hh"
12 
13 namespace Dune
14 {
15 
24  template<class D, class R>
25  class
27  {
28 
29  public:
32 
35  {}
36 
43  basis(s),
44  interpolation(s)
45  {}
46 
47  const typename Traits::LocalBasisType& localBasis () const
48  {
49  return basis;
50  }
51 
52  const typename Traits::LocalCoefficientsType& localCoefficients () const
53  {
54  return coefficients;
55  }
56 
57  const typename Traits::LocalInterpolationType& localInterpolation () const
58  {
59  return interpolation;
60  }
61 
63  unsigned int size () const
64  {
65  return basis.size();
66  }
67 
68  static constexpr GeometryType type ()
69  {
71  }
72 
73  private:
74  RT12DLocalBasis<D,R> basis;
75  RT12DLocalCoefficients coefficients;
76  RT12DLocalInterpolation<RT12DLocalBasis<D,R> > interpolation;
77  };
78 }
79 
80 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Layout map for Raviart-Thomas-1 elements on the reference triangle.
Definition: raviartthomas12dlocalcoefficients.hh:21
First order Raviart-Thomas shape functions on triangles.
Definition: raviartthomas12d.hh:27
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas12d.hh:63
RT12DLocalFiniteElement(int s)
Make set number s, where 0 <= s < 8.
Definition: raviartthomas12d.hh:42
RT12DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas12d.hh:34
First order Raviart-Thomas shape functions on the reference quadrilateral.
Definition: raviartthomas12dlocalinterpolation.hh:23
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.80.0 (May 2, 22:35, 2024)