dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
pyramidp2.hh
Go to the documentation of this file.
1
// -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=2 sw=2 sts=2:
3
#ifndef DUNE_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
4
#define DUNE_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
pyramidp2/pyramidp2localbasis.hh
"
10
#include "
pyramidp2/pyramidp2localcoefficients.hh
"
11
#include "
pyramidp2/pyramidp2localinterpolation.hh
"
12
13
namespace
Dune
14
{
15
18
template
<
class
D,
class
R>
19
class
PyramidP2LocalFiniteElement
20
{
21
public
:
24
typedef
LocalFiniteElementTraits<PyramidP2LocalBasis<D,R>
,
25
PyramidP2LocalCoefficients
,
26
PyramidP2LocalInterpolation<PyramidP2LocalBasis<D,R>
> >
Traits
;
27
30
PyramidP2LocalFiniteElement
()
31
{
32
gt.makePyramid();
33
}
34
37
const
typename
Traits::LocalBasisType
&
localBasis
()
const
38
{
39
return
basis;
40
}
41
44
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
45
{
46
return
coefficients;
47
}
48
51
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
52
{
53
return
interpolation;
54
}
55
58
GeometryType
type
()
const
59
{
60
return
gt;
61
}
62
63
PyramidP2LocalFiniteElement
*
clone
()
const
64
{
65
return
new
PyramidP2LocalFiniteElement
(*
this
);
66
}
67
68
private
:
69
PyramidP2LocalBasis<D,R>
basis;
70
PyramidP2LocalCoefficients
coefficients;
71
PyramidP2LocalInterpolation<PyramidP2LocalBasis<D,R>
> interpolation;
72
GeometryType gt;
73
};
74
75
}
76
77
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1