Dune Core Modules (2.8.0)

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