Dune Core Modules (2.6.0)

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