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