dune-localfunctions
2.6-git
dune
localfunctions
lagrange
p23d
p23dlocalcoefficients.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_P2_3DLOCALCOEFFICIENTS_HH
4
#define DUNE_P2_3DLOCALCOEFFICIENTS_HH
5
6
#include <cstddef>
7
#include <vector>
8
9
#include <
dune/localfunctions/common/localkey.hh
>
10
11
namespace
Dune
12
{
13
20
class
P23DLocalCoefficients
21
{
22
public
:
24
P23DLocalCoefficients
() : li(10)
25
{
26
// Vertex shape functions
27
li[0] =
LocalKey
(0,3,0);
28
li[1] =
LocalKey
(1,3,0);
29
li[2] =
LocalKey
(2,3,0);
30
li[3] =
LocalKey
(3,3,0);
31
32
// Edge bubbles
33
li[4] =
LocalKey
(0,2,0);
34
li[5] =
LocalKey
(2,2,0);
35
li[6] =
LocalKey
(1,2,0);
36
li[7] =
LocalKey
(3,2,0);
37
li[8] =
LocalKey
(4,2,0);
38
li[9] =
LocalKey
(5,2,0);
39
}
40
42
std::size_t
size
()
const
43
{
44
return
10;
45
}
46
48
const
LocalKey
&
localKey
(std::size_t i)
const
49
{
50
return
li[i];
51
}
52
53
private
:
54
std::vector<LocalKey> li;
55
};
56
57
}
58
59
#endif
localkey.hh
Dune::P23DLocalCoefficients
Layout map for P23D elements.
Definition:
p23dlocalcoefficients.hh:20
Dune::P23DLocalCoefficients::localKey
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition:
p23dlocalcoefficients.hh:48
Dune::P23DLocalCoefficients::size
std::size_t size() const
number of coefficients
Definition:
p23dlocalcoefficients.hh:42
Dune::P23DLocalCoefficients::P23DLocalCoefficients
P23DLocalCoefficients()
Standard constructor.
Definition:
p23dlocalcoefficients.hh:24
Dune::LocalKey
Describe position of one degree of freedom.
Definition:
localkey.hh:20
Dune
Definition:
brezzidouglasmarini1cube2dlocalbasis.hh:15
Generated by
1.8.17