dune-localfunctions 3.0-git
raviartthomas4cube2d.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_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
4#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
5
6#include <dune/geometry/type.hh>
7
8#include "../common/localfiniteelementtraits.hh"
12
13namespace Dune
14{
25 template<class D, class R>
27 {
28
29 public:
34
37 {
38 gt.makeQuadrilateral();
39 }
40
46 RT4Cube2DLocalFiniteElement (int s) : basis(s), interpolation(s)
47 {
48 gt.makeQuadrilateral();
49 }
50
51 const typename Traits::LocalBasisType& localBasis () const
52 {
53 return basis;
54 }
55
57 {
58 return coefficients;
59 }
60
62 {
63 return interpolation;
64 }
65
67 unsigned int size () const
68 {
69 return basis.size();
70 }
71
72 GeometryType type () const
73 {
74 return gt;
75 }
76
77 private:
79 RT4Cube2DLocalCoefficients coefficients;
81 GeometryType gt;
82 };
83}
84#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
Definition brezzidouglasmarini1cube2d.hh:14
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
Second order Raviart-Thomas shape functions on cubes.
Definition raviartthomas4cube2d.hh:27
GeometryType type() const
Definition raviartthomas4cube2d.hh:72
LocalFiniteElementTraits< RT4Cube2DLocalBasis< D, R >, RT4Cube2DLocalCoefficients, RT4Cube2DLocalInterpolation< RT4Cube2DLocalBasis< D, R > > > Traits
Definition raviartthomas4cube2d.hh:33
unsigned int size() const
Number of shape functions in this finite element.
Definition raviartthomas4cube2d.hh:67
const Traits::LocalCoefficientsType & localCoefficients() const
Definition raviartthomas4cube2d.hh:56
const Traits::LocalInterpolationType & localInterpolation() const
Definition raviartthomas4cube2d.hh:61
const Traits::LocalBasisType & localBasis() const
Definition raviartthomas4cube2d.hh:51
RT4Cube2DLocalFiniteElement(int s)
Make set number s, where 0 <= s < 16.
Definition raviartthomas4cube2d.hh:46
RT4Cube2DLocalFiniteElement()
Standard constructor.
Definition raviartthomas4cube2d.hh:36
Second order Raviart-Thomas shape functions on the reference quadrilateral.
Definition raviartthomas4cube2dlocalbasis.hh:27
Layout map for Raviart-Thomas-4 elements on quadrilaterals.
Definition raviartthomas4cube2dlocalcoefficients.hh:21
Second order Raviart-Thomas shape functions on the reference triangle.
Definition raviartthomas4cube2dlocalinterpolation.hh:23