Dune Core Modules (2.6.0)

raviartthomas3cube2dlocalcoefficients.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_LOCALFUNCTIONS_RAVIARTTHOMAS3_CUBE2D_LOCALCOEFFICIENTS_HH
4 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS3_CUBE2D_LOCALCOEFFICIENTS_HH
5 
6 #include <cstddef>
7 #include <vector>
8 
9 #include "../../common/localkey.hh"
10 
11 namespace Dune
12 {
21  {
22 
23  public:
26  {
27  for (std::size_t i = 0; i < 4; i++)
28  {
29  li[4*i] = LocalKey(i,1,0);
30  li[4*i + 1] = LocalKey(i,1,1);
31  li[4*i + 2] = LocalKey(i,1,2);
32  li[4*i + 3] = LocalKey(i,1,3);
33  }
34 
35  for (std::size_t i=0; i<24; i++)
36  {
37  li[16 + i] = LocalKey(0,0,i);
38  }
39  }
40 
42  std::size_t size () const
43  {
44  return 40;
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 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS3_CUBE2D_LOCALCOEFFICIENTS_HH
Describe position of one degree of freedom.
Definition: localkey.hh:21
Layout map for Raviart-Thomas-3 elements on quadrilaterals.
Definition: raviartthomas3cube2dlocalcoefficients.hh:21
RT3Cube2DLocalCoefficients()
Standard constructor.
Definition: raviartthomas3cube2dlocalcoefficients.hh:25
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: raviartthomas3cube2dlocalcoefficients.hh:48
std::size_t size() const
number of coefficients
Definition: raviartthomas3cube2dlocalcoefficients.hh:42
Dune namespace.
Definition: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 26, 22:29, 2024)