dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas02d.hh
Go to the documentation of this file.
1
#ifndef DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
2
#define DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
3
4
#include <dune/geometry/type.hh>
5
6
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
7
#include "
raviartthomas02d/raviartthomas02dlocalbasis.hh
"
8
#include "
raviartthomas02d/raviartthomas02dlocalcoefficients.hh
"
9
#include "
raviartthomas02d/raviartthomas02dlocalinterpolation.hh
"
10
11
namespace
Dune
12
{
13
14
template
<
class
D,
class
R>
15
class
RT02DLocalFiniteElement
16
{
17
public
:
18
typedef
LocalFiniteElementTraits<RT02DLocalBasis<D,R>
,
RT02DLocalCoefficients
,
19
RT02DLocalInterpolation<RT02DLocalBasis<D,R>
> >
Traits
;
20
21
RT02DLocalFiniteElement
()
22
{
23
gt.makeTriangle();
24
}
25
26
RT02DLocalFiniteElement
(
int
s) : basis(s), interpolation(s)
27
{
28
gt.makeTriangle();
29
}
30
31
const
typename
Traits::LocalBasisType
&
localBasis
()
const
32
{
33
return
basis;
34
}
35
36
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
37
{
38
return
coefficients;
39
}
40
41
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
42
{
43
return
interpolation;
44
}
45
46
GeometryType
type
()
const
47
{
48
return
gt;
49
}
50
51
private
:
52
RT02DLocalBasis<D,R>
basis;
53
RT02DLocalCoefficients
coefficients;
54
RT02DLocalInterpolation<RT02DLocalBasis<D,R>
> interpolation;
55
GeometryType gt;
56
};
57
58
}
59
60
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1