Dune Core Modules (2.6.0)

prismp2localcoefficients.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_PRISM_P2_LOCALCOEFFICIENTS_HH
4#define DUNE_PRISM_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 li[5] = LocalKey(5,3,0);
33
34 // Edge shape functions
35 li[6] = LocalKey(0,2,0);
36 li[7] = LocalKey(1,2,0);
37 li[8] = LocalKey(2,2,0);
38 li[9] = LocalKey(3,2,0);
39 li[10] = LocalKey(4,2,0);
40 li[11] = LocalKey(5,2,0);
41 li[12] = LocalKey(6,2,0);
42 li[13] = LocalKey(7,2,0);
43 li[14] = LocalKey(8,2,0);
44
45 // Quadrilateral sides shape functions
46 li[15] = LocalKey(0,1,0);
47 li[16] = LocalKey(1,1,0);
48 li[17] = LocalKey(2,1,0);
49 }
50
52 std::size_t size () const
53 {
54 return 18;
55 }
56
58 const LocalKey& localKey (std::size_t i) const
59 {
60 return li[i];
61 }
62
63 private:
64 std::vector<LocalKey> li;
65 };
66
67}
68
69#endif
Describe position of one degree of freedom.
Definition: localkey.hh:21
Layout map for PrismP2 elements.
Definition: prismp2localcoefficients.hh:21
PrismP2LocalCoefficients()
Standard constructor.
Definition: prismp2localcoefficients.hh:24
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: prismp2localcoefficients.hh:58
std::size_t size() const
number of coefficients
Definition: prismp2localcoefficients.hh:52
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)