dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas2q2d.hh
Go to the documentation of this file.
1
#ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS2Q2DLOCALFINITEELEMENT_HH
2
#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS2Q2DLOCALFINITEELEMENT_HH
3
4
#include <dune/geometry/type.hh>
5
6
#include "../common/localfiniteelementtraits.hh"
7
#include "
raviartthomas2q2d/raviartthomas2q2dlocalbasis.hh
"
8
#include "
raviartthomas2q2d/raviartthomas2q2dlocalcoefficients.hh
"
9
#include "
raviartthomas2q2d/raviartthomas2q2dlocalinterpolation.hh
"
10
11
namespace
Dune
12
{
19
template
<
class
D,
class
R>
20
class
RT2Q2DLocalFiniteElement
21
{
22
23
public
:
24
typedef
LocalFiniteElementTraits<RT2Q2DLocalBasis<D,R>
,
RT2Q2DLocalCoefficients
,
25
RT2Q2DLocalInterpolation<RT2Q2DLocalBasis<D,R>
> >
Traits
;
26
28
RT2Q2DLocalFiniteElement
()
29
{
30
gt.makeQuadrilateral();
31
}
32
38
RT2Q2DLocalFiniteElement
(
int
s) : basis(s), interpolation(s)
39
{
40
gt.makeQuadrilateral();
41
}
42
43
const
typename
Traits::LocalBasisType
&
localBasis
()
const
44
{
45
return
basis;
46
}
47
48
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
49
{
50
return
coefficients;
51
}
52
53
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
54
{
55
return
interpolation;
56
}
57
58
GeometryType
type
()
const
59
{
60
return
gt;
61
}
62
63
private
:
64
RT2Q2DLocalBasis<D,R>
basis;
65
RT2Q2DLocalCoefficients
coefficients;
66
RT2Q2DLocalInterpolation<RT2Q2DLocalBasis<D,R>
> interpolation;
67
GeometryType gt;
68
};
69
}
70
#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS2Q2DLOCALFINITEELEMENT_HH
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1