dune-localfunctions  2.3.1-rc1
raviartthomas0cube3d.hh
Go to the documentation of this file.
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 
6 #include <dune/geometry/type.hh>
7 
10 
11 namespace Dune
12 {
13  template<class D, class R>
15  {
16  public:
21 
23  {
24  gt.makeHexahedron();
25  }
26 
27  RT0Cube3DLocalFiniteElement (int s) : basis(s), interpolation(s)
28  {
29  gt.makeHexahedron();
30  }
31 
32  const typename Traits::LocalBasisType& localBasis () const
33  {
34  return basis;
35  }
36 
38  {
39  return coefficients;
40  }
41 
43  {
44  return interpolation;
45  }
46 
47  GeometryType type () const
48  {
49  return gt;
50  }
51 
52  private:
54  RT0Cube3DLocalCoefficients coefficients;
56  GeometryType gt;
57  };
58 }
59 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
GeometryType type() const
Definition: raviartthomas0cube3d.hh:47
const Traits::LocalInterpolationType & localInterpolation() const
Definition: raviartthomas0cube3d.hh:42
const Traits::LocalBasisType & localBasis() const
Definition: raviartthomas0cube3d.hh:32
traits helper struct
Definition: localfiniteelementtraits.hh:10
Lowest order Raviart-Thomas shape functions on the reference hexahedron.
Definition: raviartthomas0cube3dall.hh:118
RT0Cube3DLocalFiniteElement(int s)
Definition: raviartthomas0cube3d.hh:27
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
LocalFiniteElementTraits< RT0Cube3DLocalBasis< D, R >, RT0Cube3DLocalCoefficients, RT0Cube3DLocalInterpolation< RT0Cube3DLocalBasis< D, R > > > Traits
Definition: raviartthomas0cube3d.hh:20
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
RT0Cube3DLocalFiniteElement()
Definition: raviartthomas0cube3d.hh:22
Definition: raviartthomas0cube3d.hh:14
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: raviartthomas0cube3d.hh:37
Lowest order Raviart-Thomas shape functions on the reference hexahedron.
Definition: raviartthomas0cube3dall.hh:25
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
Layout map for RT0 elements on quadrilaterals.
Definition: raviartthomas0cube3dall.hh:182