Dune Core Modules (2.6.0)

pyramidp2localcoefficients.hh
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_PYRAMID_P2_LOCALCOEFFICIENTS_HH
4#define DUNE_PYRAMID_P2_LOCALCOEFFICIENTS_HH
5
6#include <cstddef>
7#include <vector>
8
9#include <dune/localfunctions/common/localkey.hh>
10
11namespace Dune
12{
13
21 {
22 public:
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 li[4] = LocalKey(4,3,0);
32
33 // Edge shape functions
34 li[5] = LocalKey(0,2,0);
35 li[6] = LocalKey(1,2,0);
36 li[7] = LocalKey(2,2,0);
37 li[8] = LocalKey(3,2,0);
38 li[9] = LocalKey(4,2,0);
39 li[10] = LocalKey(5,2,0);
40 li[11] = LocalKey(6,2,0);
41 li[12] = LocalKey(7,2,0);
42
43 // base face shape function
44 li[13] = LocalKey(0,1,0);
45 }
46
48 std::size_t size () const
49 {
50 return 14;
51 }
52
54 const LocalKey& localKey (std::size_t i) const
55 {
56 return li[i];
57 }
58
59 private:
60 std::vector<LocalKey> li;
61 };
62
63}
64
65#endif
Describe position of one degree of freedom.
Definition: localkey.hh:21
Layout map for PyramidP2 elements.
Definition: pyramidp2localcoefficients.hh:21
PyramidP2LocalCoefficients()
Standard constructor.
Definition: pyramidp2localcoefficients.hh:24
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: pyramidp2localcoefficients.hh:54
std::size_t size() const
number of coefficients
Definition: pyramidp2localcoefficients.hh:48
Dune namespace.
Definition: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)